From: Dave Moore <dtmoore@email.unc.edu>
To: axp-list@redhat.com
Subject: Re: Strange stack size problem
Date: Fri, 28 Apr 2000 21:17:13 -0400 [thread overview]
Message-ID: <390A3819.70C88C67@email.unc.edu> (raw)
In-Reply-To: 3909E616.D2FE7664@altatech.com
Hi,
Forgive me if this is a naive suggestion and your question is actually
deeper, but here goes:
I had a similar problem with a "too small" stack on an IBM SP2 (ugly
statically allocated FORTRAN code), and although it took me a long time to
figure it out (the docs were sketchy), it turned out that the maximum stack
size could be set at link-time with a simple compiler flag (something like
-bx:maxstack=<whatever>). Now, it may be totally different in Linux, and I
will eventually have to port said ugly FORTRAN code there, so I have more
than a passing interest in this issue.
Please note that I am by no means an expert ... and the only reason I
even TOUCHED FORTRAN code is because I have to .. its nasty legacy code that
I have no time to rewrite. Hope this is your "magic bullet" (please let me
know if it is)
Dave Moore
ryan wrote:
> Ok, here's my setup:
>
> -12 UP2000 Alpha boxen in a cluster
> - RedHat 6.1
> - 256MB ram each
> - latest version of PBS
> - kernel 2.2.14
>
> I need to increase the maximum stack size available to the users of the
> cluster. I've tried the obvious things:
>
> - tweaking PAM
> - changing the default in the kernel and recompiling
> - creating an /etc/initscript file to set the stack size
> - editing the files in /etc/security as appropriate
>
> This works fine on Intel machines, giving me more stack space for my PBS
> jobs. For some reason it does _not_ work on the Alphas, which still
> insist that the stack size is 8MB. I've been trying to figure out what
> causes this and I've found a few interesting things:
>
> - It only happens on Alphas (as already stated)
> - Passing the kernel 'init=/bin/sh' starts bash, which sees the new
> stack size correctly.
> - Doing an 'exec /sbin/init' from there will start init, after which
> the stack size will be correctly set for all users, root or mortal (
> haven't tried with PBS yet though). This works even without the above
> changes
> - Only happens when the kernel runs /sbin/init as per default.
>
> Any ideas? I thought it might be RedHat's init, but I recompiled that
> from the pristine source and had the same problem.
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
prev parent reply other threads:[~2000-04-29 1:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-28 19:27 Strange stack size problem ryan
2000-04-28 21:37 ` Michal Jaegermann
2000-05-02 22:56 ` ryan
2000-05-02 23:12 ` Konrad Podloucky
2000-05-03 2:21 ` Michal Jaegermann
2000-04-29 1:17 ` Dave Moore [this message]
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