* UP2000 crashes -- update
@ 1999-12-24 22:57 Konrad Podloucky
1999-12-25 6:43 ` Greg Lindahl
2000-01-17 4:25 ` Greg Lindahl
0 siblings, 2 replies; 9+ messages in thread
From: Konrad Podloucky @ 1999-12-24 22:57 UTC (permalink / raw)
To: RedHat AXP List
Hi, it's me again,
I found out that the guys using running that big number
crunching program on the UP2000, which regularly caused the
machine to commit suicide with "Too many files open", always set
the stack size to unlimited. Now I tried setting the limit to
16M et voilá: the sucker's running stable for days now...
Funnily on other Alphas (LX, SX) setting the stack size to
unlimited doesn't wreak havoc and I don't really see the
connection between that and too many open files. If somebody
could shed some light on this I'd be really grateful.
Another detail I found out: Usually when you tried to kill the
program (unlimited stack size this time) with a simple SIGTERM
the machine would immediately go beserk with "Too many files
open".
For me this still looks like a kernel problem on the UP2000, but
I don't have the expertise to say for certain. I'd be glad,
however to be proven wrong.
Konrad
________________________________________________________________
.~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
/V\ Running GNU/Linux 2.2.13 on an Alpha
// \\ GnuPG/PGP-key available by request
/( )\ Please boycott amazon.com! For details, see:
^^-^^ http://linuxtoday.com/story.php3?sn=13652
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: UP2000 crashes -- update
1999-12-24 22:57 UP2000 crashes -- update Konrad Podloucky
@ 1999-12-25 6:43 ` Greg Lindahl
1999-12-28 1:24 ` Richard Henderson
2000-01-17 4:25 ` Greg Lindahl
1 sibling, 1 reply; 9+ messages in thread
From: Greg Lindahl @ 1999-12-25 6:43 UTC (permalink / raw)
To: konrad, RedHat AXP List
> I found out that the guys using running that big number
> crunching program on the UP2000, which regularly caused the
> machine to commit suicide with "Too many files open", always set
> the stack size to unlimited. Now I tried setting the limit to
> 16M et voilá: the sucker's running stable for days now...
When it crashes, do you get these exceptions on the console and in
/var/log/messages:
RUC10_10.c0006.: Exception at [<fffffc0000317068>] (fffffc000031706c)
RUC10_10.c0006.: Exception at [<fffffc0000317068>] (fffffc000031706c)
RUC10_10.c0006.: Exception at [<fffffc0000317088>] (fffffc000031708c)
If you look in /var/log/messages it gives a better clue:
Dec 24 21:56:08 c21 kernel: RUC10_10.c0006.: Exception at
[setup_sigcontext+40/736] \
(fffffc0000316e2c)
Dec 24 21:56:08 c21 kernel: RUC10_10.c0006.: Exception at
[setup_sigcontext+48/736] \
(fffffc0000316e34)
Dec 24 21:56:08 c21 kernel: RUC10_10.c0006.: Exception at
[setup_sigcontext+64/736] \
(fffffc0000316e44)
Basically, setup_sigcontext is getting a pointer with illegal alignment.
I would guess that this frame sits on the stack?
Apparently the resulting memory clobber results in trashing the # of open
files. The files aren't actually opened; you can cd /proc ; ls */fds | wc -l
and see that they don't realy exist...
-- greg
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: UP2000 crashes -- update
1999-12-25 6:43 ` Greg Lindahl
@ 1999-12-28 1:24 ` Richard Henderson
1999-12-28 20:24 ` Greg Lindahl
1999-12-28 22:56 ` Greg Lindahl
0 siblings, 2 replies; 9+ messages in thread
From: Richard Henderson @ 1999-12-28 1:24 UTC (permalink / raw)
To: Greg Lindahl; +Cc: konrad, RedHat AXP List
On Fri, Dec 24, 1999 at 11:43:00PM -0700, Greg Lindahl wrote:
> Basically, setup_sigcontext is getting a pointer with illegal alignment.
Impossible.
return (void *)((sp - frame_size) & -32ul);
It is possible, however, to run out of stack space entirely.
> Apparently the resulting memory clobber results in ....
Uh, no, there is no resulting memory clobber.
Not saying that there isn't a problem, just that it isn't the
one you've described.
r~
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: UP2000 crashes -- update
1999-12-28 1:24 ` Richard Henderson
@ 1999-12-28 20:24 ` Greg Lindahl
1999-12-28 20:53 ` Konrad Podloucky
1999-12-28 22:56 ` Greg Lindahl
1 sibling, 1 reply; 9+ messages in thread
From: Greg Lindahl @ 1999-12-28 20:24 UTC (permalink / raw)
To: Richard Henderson; +Cc: konrad, RedHat AXP List
> > Basically, setup_sigcontext is getting a pointer with illegal alignment.
>
> Impossible.
I'm happy to be wrong if we find the bug ;-)
With 2.2.13 and 2.2.10, the code gives those exception messages and the
machine claims its out of fds. With 2.2.5-22, it gives the exception
messages and doesn't run out of fds. The code may be
running out of swap space. The code doesn't die with a SEGV under any of
these kernels, which is what's supposed to happen to programs that run out
of stack space -- and I think I've observed segvs under 2.2.5.
Perhaps that kernel routine doesn't check to see that the stack is
exhausted? Or does that exception always mean unaligned access? Or is it
just any exception and it guesses that it means unaligned access?
-- g
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: UP2000 crashes -- update
1999-12-28 20:24 ` Greg Lindahl
@ 1999-12-28 20:53 ` Konrad Podloucky
1999-12-28 20:57 ` Greg Lindahl
0 siblings, 1 reply; 9+ messages in thread
From: Konrad Podloucky @ 1999-12-28 20:53 UTC (permalink / raw)
To: Greg Lindahl; +Cc: RedHat AXP List, Richard Henderson
On 28-Dec-99 Greg Lindahl enlightened me with:
[...]
> With 2.2.13 and 2.2.10, the code gives those exception
> messages and the
> machine claims its out of fds. With 2.2.5-22, it gives the
> exception
> messages and doesn't run out of fds. The code may be
> running out of swap space. The code doesn't die with a SEGV
> under any of
> these kernels, which is what's supposed to happen to programs
> that run out
> of stack space -- and I think I've observed segvs under 2.2.5.
[...]
Now with limited stack size (32M) I still get the exceptions but
I haven't run out of fds since I started limiting the stack.
Konrad
________________________________________________________________
.~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
/V\ Running GNU/Linux 2.2.13 on an Alpha
// \\ GnuPG/PGP-key available by request
/( )\ Please boycott amazon.com! For details, see:
^^-^^ http://linuxtoday.com/story.php3?sn=13652
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: UP2000 crashes -- update
1999-12-28 20:53 ` Konrad Podloucky
@ 1999-12-28 20:57 ` Greg Lindahl
0 siblings, 0 replies; 9+ messages in thread
From: Greg Lindahl @ 1999-12-28 20:57 UTC (permalink / raw)
To: konrad; +Cc: RedHat AXP List, Richard Henderson
> Now with limited stack size (32M) I still get the exceptions but
> I haven't run out of fds since I started limiting the stack.
With all 3 kernels I tried, I was using large limits of 1-2GB, which is more
than I have physical memory.
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: UP2000 crashes -- update
@ 1999-12-28 21:02 Konrad Podloucky
0 siblings, 0 replies; 9+ messages in thread
From: Konrad Podloucky @ 1999-12-28 21:02 UTC (permalink / raw)
To: Konrad Podloucky; +Cc: Richard Henderson, RedHat AXP List, Greg Lindahl
Sorry, another thing:
Today I got tons of those exceptions when the job was killed.
(with SIGTERM) But the system did NOT run out of fds as it did
with unlimited stack size.
Dec 28 19:14:23 schosulan kernel: fleur_1.x: Exception at
[setup_sigcontext+712/736] (fffffc0000317d6c)
Konrad
________________________________________________________________
.~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
/V\ Running GNU/Linux 2.2.13 on an Alpha
// \\ GnuPG/PGP-key available by request
/( )\ Please boycott amazon.com! For details, see:
^^-^^ http://linuxtoday.com/story.php3?sn=13652
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: UP2000 crashes -- update
1999-12-28 1:24 ` Richard Henderson
1999-12-28 20:24 ` Greg Lindahl
@ 1999-12-28 22:56 ` Greg Lindahl
1 sibling, 0 replies; 9+ messages in thread
From: Greg Lindahl @ 1999-12-28 22:56 UTC (permalink / raw)
To: axp-list
> > Basically, setup_sigcontext is getting a pointer with illegal alignment.
>
> Impossible.
>
> return (void *)((sp - frame_size) & -32ul);
It's worth noting that it should be impossible to get an exception during
setup_sigcontext anyway:
frame = get_sigframe(ka, oldsp, sizeof(*frame));
if (verify_area(VERIFY_WRITE, frame, sizeof(*frame)))
goto give_sigsegv;
err |= setup_sigcontext(&frame->sc, regs, sw, set->sig[0], oldsp);
Yet I do.
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: UP2000 crashes -- update
1999-12-24 22:57 UP2000 crashes -- update Konrad Podloucky
1999-12-25 6:43 ` Greg Lindahl
@ 2000-01-17 4:25 ` Greg Lindahl
1 sibling, 0 replies; 9+ messages in thread
From: Greg Lindahl @ 2000-01-17 4:25 UTC (permalink / raw)
To: konrad, RedHat AXP List
> I found out that the guys using running that big number
> crunching program on the UP2000, which regularly caused the
> machine to commit suicide with "Too many files open", always set
> the stack size to unlimited. Now I tried setting the limit to
> 16M et voilá: the sucker's running stable for days now...
Luke Lonergan looked into this for us, and it turns out that it was only
programs compiled with particular versions of Digital Fortran that triggered
the kernel bug. When we upgraded to the latest and greatest, we can increase
our stack and open files and do whatever we like and nothing goes wrong.
-- g
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2000-01-17 4:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-24 22:57 UP2000 crashes -- update Konrad Podloucky
1999-12-25 6:43 ` Greg Lindahl
1999-12-28 1:24 ` Richard Henderson
1999-12-28 20:24 ` Greg Lindahl
1999-12-28 20:53 ` Konrad Podloucky
1999-12-28 20:57 ` Greg Lindahl
1999-12-28 22:56 ` Greg Lindahl
2000-01-17 4:25 ` Greg Lindahl
-- strict thread matches above, loose matches on Subject: below --
1999-12-28 21:02 Konrad Podloucky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox