Re: Changing default stacksize on Linux Alpha

From: Naohiko Shimizu (nshimizu@et.u-tokai.ac.jp)
Date: Mon Jun 12 2000 - 18:54:29 EST


Lew Randerson wrote:
>
> To all:
>
> Operating system is RedHat 6.1 on an Alpha machine. See below
> for remarks on intel machines.
>
> How do I change the default stacksize for unprivileged users?
> Or better yet let them change it?
>
... deleted ...
>
> On our intel machines, also running RedHat 6.1, we have
> exactly the same defaults, but users can override them
> even going over the hard limits.
>

It is because wrong value in the
/usr/src/linux/include/asm-alpha/resource.h

The INIT_RLIMITS defined the RLIMIT_STACK as

{_STK_LIM, _STK_LIM}

The latter defines hard limit of the stack.
When I pointed the problem, only Intel and PPC people corrected it.
You should change the value as

{_STK_LIM, LONG_MAX}

and recompile your kernel.
It will resolve your problem.



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:39 EST