From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,6ea049f803365db1 X-Google-Attributes: gid111c93,public From: peltz@jaka.ece.uiuc.edu (Steve Peltz) Subject: Re: Memory management problems Date: 1998/03/18 Message-ID: <6epino$a2a$1@jaka.ece.uiuc.edu>#1/1 X-Deja-AN: 335385220 References: <6ecl91$rtv$1@jaka.ece.uiuc.edu> <6emrfn$1vj9@crash.videotron.ab.ca> Organization: NovaNET Learning, Inc. Newsgroups: comp.os.linux.alpha In article <6emrfn$1vj9@crash.videotron.ab.ca>, Douglas Ridgway wrote: >Note that Linux by default allows memory overcommitting. So you can >for example have several processes which collectively malloc much more >than the total physical+swap available. If they never touch it, things Yes, I'm familiar with swap overcommitment. That doesn't appear to be what was happening, as I had plenty of swap space available for the amount of memory I was attempting to allocate. Indeed, the biggest problems I had occurred when attempting to mmap() (shared) a file; that shouldn't have any effect on swap space availability. In addition, init got hit, and I'd expect that it would have already touched every page it ever would shortly after the system comes up. You say "by default". Is there a way to change that, either on a per-process or system-wide basis?