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.
- Changing default stacksize on Linux Alpha Lew Randerson
- Naohiko Shimizu
