* Strange stack size problem
@ 2000-04-28 19:27 ryan
2000-04-28 21:37 ` Michal Jaegermann
2000-04-29 1:17 ` Dave Moore
0 siblings, 2 replies; 6+ messages in thread
From: ryan @ 2000-04-28 19:27 UTC (permalink / raw)
To: axp-list
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange stack size problem
2000-04-28 19:27 Strange stack size problem ryan
@ 2000-04-28 21:37 ` Michal Jaegermann
2000-05-02 22:56 ` ryan
2000-04-29 1:17 ` Dave Moore
1 sibling, 1 reply; 6+ messages in thread
From: Michal Jaegermann @ 2000-04-28 21:37 UTC (permalink / raw)
To: axp-list
>
> I need to increase the maximum stack size available to the users of the
> cluster. I've tried the obvious things:
>
> - tweaking PAM
The only way I know in which that could be changed with a normal boot
sequence is by taking and editor to /etc/security/limits.conf . If that
does not work that would mean a bug in PAM libraries. Did you check if
there are not updates for a version you have? There were some.
Setting limits is documented in stuff you will find in /usr/doc/pam-...
> - changing the default in the kernel and recompiling
That would indicate that PAM is actually setting things.
Unless a stack value is not hardwired in a version you are using
this would sort of contradict, to a degree, a guess above.
> - Passing the kernel 'init=/bin/sh' starts bash, which sees the new
> stack size correctly.
This is not that surprising. You are not running here any usual
init stuff so whatever defaults you compiled in they will stay.
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange stack size problem
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
0 siblings, 2 replies; 6+ messages in thread
From: ryan @ 2000-05-02 22:56 UTC (permalink / raw)
To: axp-list
Michal Jaegermann wrote:
> >
> > I need to increase the maximum stack size available to the users of the
> > cluster. I've tried the obvious things:
> >
> > - tweaking PAM
>
> The only way I know in which that could be changed with a normal boot
> sequence is by taking and editor to /etc/security/limits.conf . If that
> does not work that would mean a bug in PAM libraries. Did you check if
> there are not updates for a version you have? There were some.
>
> Setting limits is documented in stuff you will find in /usr/doc/pam-...
>
> > - changing the default in the kernel and recompiling
>
> That would indicate that PAM is actually setting things.
> Unless a stack value is not hardwired in a version you are using
> this would sort of contradict, to a degree, a guess above.
That could be a possibility. I haven't been able to check for updates
because RedHat's ftp server is always maxed out, and none of the mirrors
that I know of have RH6.1 stuff anymore. All they mirror is 6.2 If PAM is
the problem though, why does it work when a shell script execs init? If i
configure PAM and edit /etc/security/limits.conf it works fine when a user
actually logs in somehow (console, rsh, etc.) But apparently PBS doesn't
actually log users in so the stack size gets set to what ever it is for the
pbs daemon (8Mb in this case). I'll look for PAM updates though.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange stack size problem
2000-05-02 22:56 ` ryan
@ 2000-05-02 23:12 ` Konrad Podloucky
2000-05-03 2:21 ` Michal Jaegermann
1 sibling, 0 replies; 6+ messages in thread
From: Konrad Podloucky @ 2000-05-02 23:12 UTC (permalink / raw)
To: axp-list
Have you already had a look at 'man initscript'? Shouldn't this
do the thing you want to do?
Konrad
________________________________________________________________
.~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
/V\ Running GNU/Linux 2.2.15pre11 on an Alpha
// \\ GnuPG/PGP-key available by request
/( )\ "Life is like a sewer. What you get out of it, depends
^^-^^ on what you put into it."
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange stack size problem
2000-05-02 22:56 ` ryan
2000-05-02 23:12 ` Konrad Podloucky
@ 2000-05-03 2:21 ` Michal Jaegermann
1 sibling, 0 replies; 6+ messages in thread
From: Michal Jaegermann @ 2000-05-03 2:21 UTC (permalink / raw)
To: axp-list
ryan wrote:
>
> > That would indicate that PAM is actually setting things.
> > Unless a stack value is not hardwired in a version you are using
> > this would sort of contradict, to a degree, a guess above.
>
> That could be a possibility. I haven't been able to check for updates
> because RedHat's ftp server is always maxed out, and none of the mirrors
> that I know of have RH6.1 stuff anymore. All they mirror is 6.2
You can mix-and-match stuff between different releases if they differ
in a minor version. Only when switching major versions, like between
5.x and 6.y, you may run into troubles although even that is not given.
Dependencies may mean that sometimes you may need to update more than
you originally planned. :-)
> If PAM is
> the problem though, why does it work when a shell script execs init?
I do not know if PAM is really a problem. As I noted before this
assumption does not seem to be consistent with what you write somewhere
else. A careful documentation reading can be a good idea.
> But apparently PBS doesn't
> actually log users
If whatever that PBS is does not pay attention to a login shell
and works around PAM to provide its own login then you will have
to update it to go through libraries instead of manipulating
account information directly.
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange stack size problem
2000-04-28 19:27 Strange stack size problem ryan
2000-04-28 21:37 ` Michal Jaegermann
@ 2000-04-29 1:17 ` Dave Moore
1 sibling, 0 replies; 6+ messages in thread
From: Dave Moore @ 2000-04-29 1:17 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-05-03 2:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox