From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,42ac820c88964e42 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-02-20 12:12:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news1.calgary.shaw.ca.POSTED!not-for-mail X-Trace-PostClient-IP: 68.146.166.75 Message-ID: <3E5536BD.4070205@shaw.ca> From: Bob Bramwell User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0 X-Accept-Language: en, zh-CN MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Tru64 V5.1A user resource limits ...? References: <3E532A8B.8000107@shaw.ca> <50e71495.0302191128.75e68261@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 20 Feb 2003 20:12:46 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse@shaw.ca X-Trace: news1.calgary.shaw.ca 1045771966 24.71.223.147 (Thu, 20 Feb 2003 13:12:46 MST) NNTP-Posting-Date: Thu, 20 Feb 2003 13:12:46 MST Organization: Shaw Residential Internet Xref: archiver1.google.com comp.unix.tru64:9581 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 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