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: ridgway@taiga.gmcl.com (Douglas Ridgway) Subject: Re: Memory management problems Date: 1998/03/17 Message-ID: <6emrfn$1vj9@crash.videotron.ab.ca>#1/1 X-Deja-AN: 335032012 References: <6ecl91$rtv$1@jaka.ece.uiuc.edu> Organization: Videotron Communications Ltd. Newsgroups: comp.os.linux.alpha Steve Peltz (peltz@jaka.ece.uiuc.edu) wrote: : I've noticed that Linux is nowhere near as robust as DU when doing things : like attempting to lock as much memory as possible; I also start to get : segfaults (once it killed init; now that was fun). 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 are fine. If they then try to touch everything, the kernel has a problem, and kills whatever process tries to swap in a page, which is not necessarily the process causing the problem It's sort of like musical chairs. This is surprising, but sometimes necessary, and is allowed by just about every OS in some shape or form. On Irix, it's called virtual swap. Do a web or DejaNews search, and you can find lots of discussion of this property. If you don't like it, well, I think there are some kernel patches out there, or, you can just touch pages as soon as you allocate them. I don't have very much experience with Linux Alpha, so this is based on the Linux Intel behavior. If it helps, doug.