From: Bob Bramwell <bbramwel@shaw.ca>
Subject: Re: Tru64 V5.1A user resource limits ...?
Date: Thu, 20 Feb 2003 20:12:46 GMT [thread overview]
Message-ID: <3E5536BD.4070205@shaw.ca> (raw)
In-Reply-To: 50e71495.0302191128.75e68261@posting.google.com
According to dxkernel tuner on "austin":
per_proc_stack_size 8388608
max_per_proc_stack_size 33554432
So let's see what it has to say when we log in:
clouseau $ telnet austin
Compaq Tru64 UNIX V5.1A (Rev. 1885) (austin...) (pts/1)
login: aUser
Password:
Last login: Tue Feb 18 23:41:22 MST 2003 on pts/2
Compaq Tru64 UNIX V5.1A (Rev. 1885); Mon Jan 27 16:26:32 MST 2003
austin $ ulimit -s
4096
austin $ ulimit -s 8192
ksh: ulimit: exceeds allowable limit
You may well be right about previous versions of Tru64 not permitting ulimit
raising (I can't get it to work now, although I could have *sworn* it used to),
but that still begs the question: WHO is deciding that 4M is enough stack space
and setting the HARD limit to that? The whole point of having ulimit is to
allow users to customise this stuff. For example, on another system:
bond $ cat /etc/motd
Sun Microsystems Inc. SunOS 5.8 Generic February 2000
bond $ ulimit -s
8192
bond $ ulimit -Hs
unlimited
bond $ ulimit -s 20480
bond $ ulimit -s
20480
The reason I said "root can set it to 20M" is just to point out that root *can*
increase its limit (presumably up to 32M) so we are not running into some
absolute system defined limit here. I can make it work by having root set the
limit and getting it "inherited":
austin $ id
uid=0(root) gid=1(daemon)groups=0(system),3(mem),7(terminal),9(opr),12(lp)
austin $ ulimit -s
20480
austin $ su aUser
austin $ id
uid=200(aUser) gid=15(users)
austin $ ulimit -s
20480
... but this is clearly very cumbersome. I will try some more experiments to
see if e.g. I can get login to start with a higher limit and pass it along to
the login shell.
I have looked through the documentation I can find until I'm sick to death of
it, and all it mentions is the kernel subsystem settings and use of ulimit. So
either I am missing something subtle, or there is more to it than they are
revealing.
Thanks anyway. If you have any more insights I'd like to hear them.
gokrix wrote:
> Bob Bramwell <bbramwel@shaw.ca> wrote in message news:<3E532A8B.8000107@shaw.ca>...
>
>>Does anyone know how to raise user resource limits under 5.1A? Take the stack
>>size limit, for example (ulimit -s): dxkerneltuner tells me the PROC subsystem
>>has the default per-process stack size set to 8M, and the max size set to 33M.
>>Root can set it to 20M (ulimit -s 20480) but *everyone* starts with 4M, and
>>non-root users cannot raise it. This worked under 4.0D.
>
>
> Not sure what you're saying here. If the default is 8M, how come
> everybody starts with 4M? And why only 20M?
> And do you mean to say non-root users could raise their stack size
> under 4.0D? Don't think so...none of the Unix systems I'm familiar
> with allows users to increase their 'ulimit' limits, since doing so
> could be a security risk.
>
>
>>Is there an M I should be RTF'ing, or a FAQ I should know about?
>
>
> Read the manual page for sysconfigtab and the items in the "See Also"
> section. I've forgotten and I don't have access to a Tru64 machine
> any more...
>
> Some of the sysconfigtab variables require a reboot to become active.
> You should check if stack size falls under that category.
>
> --GS
--
Bob Bramwell 60 Baker Cr. NW | Microsoft does best when behind;
ProntoLogical Calgary, AB | once they catch up they don't break ahead
+1 403/861-8827 T2L 1R4, Canada | - quote from a Microsoft MVP
next prev parent reply other threads:[~2003-02-20 20:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-19 6:56 Tru64 V5.1A user resource limits ...? Bob Bramwell
2003-02-19 19:28 ` gokrix
2003-02-20 20:12 ` Bob Bramwell [this message]
2003-02-21 9:23 ` Emmanuel Choquet
2003-02-22 0:10 ` gokrix
2003-02-21 5:28 ` Adam Price
2003-02-22 6:15 ` Bob Bramwell
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