From: ridgway@taiga.gmcl.com (Douglas Ridgway)
Subject: Re: Memory management problems
Date: 1998/03/17 [thread overview]
Message-ID: <6emrfn$1vj9@crash.videotron.ab.ca> (raw)
In-Reply-To: 6ecl91$rtv$1@jaka.ece.uiuc.edu
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.
next prev parent reply other threads:[~1998-03-17 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-03-13 5:00 Memory management problems Steve Peltz
1998-03-13 5:00 ` Arun Sharma
1998-03-17 5:00 ` Douglas Ridgway [this message]
1998-03-18 5:00 ` Steve Peltz
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox