Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Memory management problems
@ 1998-03-13  5:00 Steve Peltz
  1998-03-13  5:00 ` Arun Sharma
  1998-03-17  5:00 ` Douglas Ridgway
  0 siblings, 2 replies; 4+ messages in thread
From: Steve Peltz @ 1998-03-13  5:00 UTC (permalink / raw)



We're using RH 5.0 Linux for Alpha (kernel version 2.0.30), with 64MB.
I've been doing some tests to check out multi-threading, and I ran into
a problem: I create 50 threads, and they start pounding data out to disk,
then truncating the file every once in a while. When I run it, various
processes on the system start getting segfaults. I've got something like
250MB of swap, and in this case I'm not running anything that grabs a lot
of memory (had problems with that, as well).

Has anyone else seen anything like this, or is it likely we have bad
hardware?

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).



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Memory management problems
  1998-03-13  5:00 Memory management problems Steve Peltz
@ 1998-03-13  5:00 ` Arun Sharma
  1998-03-17  5:00 ` Douglas Ridgway
  1 sibling, 0 replies; 4+ messages in thread
From: Arun Sharma @ 1998-03-13  5:00 UTC (permalink / raw)



peltz@jaka.ece.uiuc.edu (Steve Peltz) writes:

> 
> 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).

My experience has been that Linux Intel is much more robust than Linux
Alpha. I see unrelated processes getting SIGABRT a lot of times and
the dreaded unaligned address traps.

But don't worry, Linux will get there.

	-Arun



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Memory management problems
  1998-03-13  5:00 Memory management problems Steve Peltz
  1998-03-13  5:00 ` Arun Sharma
@ 1998-03-17  5:00 ` Douglas Ridgway
  1998-03-18  5:00   ` Steve Peltz
  1 sibling, 1 reply; 4+ messages in thread
From: Douglas Ridgway @ 1998-03-17  5:00 UTC (permalink / raw)



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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Memory management problems
  1998-03-17  5:00 ` Douglas Ridgway
@ 1998-03-18  5:00   ` Steve Peltz
  0 siblings, 0 replies; 4+ messages in thread
From: Steve Peltz @ 1998-03-18  5:00 UTC (permalink / raw)



In article <6emrfn$1vj9@crash.videotron.ab.ca>,
Douglas Ridgway <ridgway@taiga.gmcl.com> 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?



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-03-18  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-13  5:00 Memory management problems Steve Peltz
1998-03-13  5:00 ` Arun Sharma
1998-03-17  5:00 ` Douglas Ridgway
1998-03-18  5:00   ` Steve Peltz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox