Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: peltz@jaka.ece.uiuc.edu (Steve Peltz)
Subject: Alpha segfaults
Date: 1998/09/03	[thread overview]
Message-ID: <6sms4d$oam$1@vixen.cso.uiuc.edu> (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.



             reply	other threads:[~1998-09-03  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-03  4:00 Steve Peltz [this message]
1998-09-04  4:00 ` Alpha segfaults Greg Lindahl
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