Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Alpha segfaults
@ 1998-09-03  4:00 Steve Peltz
  1998-09-04  4:00 ` Greg Lindahl
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Peltz @ 1998-09-03  4:00 UTC (permalink / raw)


Background: application with several processes, communicating through
several memory-mapped files (1 very large, 1 smaller for some processes,
1 additional one for some processes for debugging); one of the processes
is multi-threaded as well. Developed and in production on Digital Unix,
no known errors in over 2 years of production use. Heavily uses 64-bit
integer operations, so we're using an Alpha.

Ported to run on Linux (on the Alpha) with little problem; initially
using RH 5.0, but I've tracked kernel changes, and have been mostly
using 2.1.x kernels, along with newer versions of libc/pthreads.

The only real feature missing from Linux is memory-mapped semaphores,
but I can get by with using a single SysV semaphore to interlock my
own. That's not particularly important (but would be nice to have).

Initial problems were with pthreads - I can hang or panic the original
kernel in RH 5.0 (2.0.30?) very easily with a simple multi-threaded
program that pounds on the disk. In the production program, I was
having problems with random threads in the one multi-threads process
dying on segfault (typically while in a system call). I THINK I solved
that by upgrading to a newer version of pthreads - currently using the
glibc-2.0.7-19 RPM from RedHat. I also noticed that with later versions of
the kernel, even the older version of pthreads wouldn't kill the kernel,
so I know things improved there as well (currently running 2.1.115,
been tracking it since 2.1.95; also was tracking the 2.0 version through
2.0.34).

I use real-time priorities and lock memory. Running with 64MB, so am
limited to locking only 32MB, but we'll add memory if we can ever get this
to production quality (and I may patch the kernel if that limitation of
half the memory per process is still there - it's silly, since a second
process can also try to lock half the memory, and the system dies).

Currently, the problem I'm seeing is with random segmentation/bus faults
in processes, including processes that hadn't been giving problems at
all when I was having problems with threads (but that may have been
because the thread problems were killing things too soon), and processes
completely unrelated to my application (e.g. running a compile while
everything else is running).

I DON'T think it is hardware problems, but I'm not sure of any way to
reliably test memory. It LOOKS like it might be some problem in the
swapping mechanism (note: there's plenty of swap free) when memory usage
is high. I've not had any other problems, including data corruption
problems. However, if it is a memory problem, I'd love to find a way
to show it.

Any suggestions on what to test or look for? I'm not particularly familiar
with hacking the Linux kernel, but I'm willing to poke around (what I work
on is at the same level of complexity as the kernel, just different). At
the moment, we've put our plans for running this under Linux on hold
(and Digital Unix is too expensive for what we want this for).

Thanks for any insights.



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

* Re: Alpha segfaults
  1998-09-03  4:00 Alpha segfaults Steve Peltz
@ 1998-09-04  4:00 ` Greg Lindahl
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Lindahl @ 1998-09-04  4:00 UTC (permalink / raw)


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

> I DON'T think it is hardware problems, but I'm not sure of any way to
> reliably test memory.

Memory problems will often cause a kernel-recompile to segfault. It
would be nice to have a better test.

> It LOOKS like it might be some problem in the
> swapping mechanism (note: there's plenty of swap free) when memory usage
> is high.

I've always mistrusted the 2.0.X series x86 SMP kernels in this
regard; however, after I upgraded to 2.0.34 or so I stopped getting
lots of "can't get a free page" errors. (And yes, I had gobs of swap
free.) My machines were most likely to crash when a big process dumped core.

However, rumor has it that the 2.1.X series has much different memory
management. And I wrote some test programs to thrash lots of memory
and others to touch lots and then dump core, and I could never get
them to crash the machine.

-- g



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

end of thread, other threads:[~1998-09-04  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-03  4:00 Alpha segfaults Steve Peltz
1998-09-04  4:00 ` Greg Lindahl

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