* Tru64 V5.1A user resource limits ...?
@ 2003-02-19 6:56 Bob Bramwell
2003-02-19 19:28 ` gokrix
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Bob Bramwell @ 2003-02-19 6:56 UTC (permalink / raw)
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.
Is there an M I should be RTF'ing, or a FAQ I should know about?
I'm really stuck. Thanks in advance for any help.
--
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
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Tru64 V5.1A user resource limits ...?
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
2003-02-22 0:10 ` gokrix
2003-02-21 5:28 ` Adam Price
2003-02-22 6:15 ` Bob Bramwell
2 siblings, 2 replies; 7+ messages in thread
From: gokrix @ 2003-02-19 19:28 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Tru64 V5.1A user resource limits ...?
2003-02-19 19:28 ` gokrix
@ 2003-02-20 20:12 ` Bob Bramwell
2003-02-21 9:23 ` Emmanuel Choquet
2003-02-22 0:10 ` gokrix
1 sibling, 1 reply; 7+ messages in thread
From: Bob Bramwell @ 2003-02-20 20:12 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Tru64 V5.1A user resource limits ...?
2003-02-20 20:12 ` Bob Bramwell
@ 2003-02-21 9:23 ` Emmanuel Choquet
0 siblings, 0 replies; 7+ messages in thread
From: Emmanuel Choquet @ 2003-02-21 9:23 UTC (permalink / raw)
There should be something 'different' somewhere, it works for normal
user :
do you use standard ksh ?
do you setup site specific things in /etc/profile or /etc/csh.login ?
can you post ?
sysconfig -q proc
sysconfig -q generic
proc and generic records in /etc/sysconfigtab
/sys/conf/HOSTNAME
if nothing is defined in there, value is set in :
/sys/include/arch/alpha/vmparam.h :
# grep SSIZ /sys/include/arch/alpha/vmparam.h
#ifndef MAXSSIZ
#define MAXSSIZ (1<<25) /* max stack size */
#ifndef DFLSSIZ
#define DFLSSIZ (1<<23) /* initial stack size limit */
First of all, try to set 8192 as default( per_proc_stack_size =
8388608 ) in /etc/sysconfigtab proc subsystem.
This is the default, and I guess it can lead to trouble when you run
your processes under this value.
Emmanuel
On one of my system :
Compaq Tru64 UNIX V5.1A (Rev. 1885) (everest.XXX.net) (pts/1)
login: choquet
Password:
Last login: Fri Feb 21 09:46:04 MET 2003 from etc15.XXX.net
Compaq Tru64 UNIX V5.1A (Rev. 1885); Tue Aug 6 09:21:11 MEST 2002
everest.XXX.net> ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 131072
stack(kbytes) 8192
memory(kbytes) 502168
coredump(blocks) unlimited
nofiles(descriptors) 4096
vmemory(kbytes) 4194304
everest.XXX.net> id
uid=1808(choquet) gid=15(users) groups=0(system)
everest.XXX.net> su -
Password:
everest# grep stack /etc/sysconfigtab
everest# sysconfig -q proc | grep stack
per_proc_stack_size = 8388608
max_per_proc_stack_size = 33554432
executable_stack = 0
everest# exit
everest# logout
everest.XXX.net> ulimit -s 16384
everest.XXX.net> ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 131072
stack(kbytes) 16384
memory(kbytes) 502168
coredump(blocks) unlimited
nofiles(descriptors) 4096
vmemory(kbytes) 4194304
everest.XXX.net>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Tru64 V5.1A user resource limits ...?
2003-02-19 19:28 ` gokrix
2003-02-20 20:12 ` Bob Bramwell
@ 2003-02-22 0:10 ` gokrix
1 sibling, 0 replies; 7+ messages in thread
From: gokrix @ 2003-02-22 0:10 UTC (permalink / raw)
gokrix@hotmail.com (gokrix) wrote in message news:<50e71495.0302191128.75e68261@posting.google.com>...
> 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.
Sorry about this. My memory is playing me tricks.
--GS
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Tru64 V5.1A user resource limits ...?
2003-02-19 6:56 Tru64 V5.1A user resource limits ...? Bob Bramwell
2003-02-19 19:28 ` gokrix
@ 2003-02-21 5:28 ` Adam Price
2003-02-22 6:15 ` Bob Bramwell
2 siblings, 0 replies; 7+ messages in thread
From: Adam Price @ 2003-02-21 5:28 UTC (permalink / raw)
In news:3E532A8B.8000107@shaw.ca,
Bob Bramwell <bbramwel@shaw.ca> typed:
> 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.
>
> Is there an M I should be RTF'ing, or a FAQ I should know about?
>
> I'm really stuck. Thanks in advance for any help.
Are you running enhanced security?
If so take a look at the man page for prpasswd, it shows ...
----------
u_rlimit_stack
The RLIMIT_STACK rlim_max numeric value set by the setrlimit()
system call at login time.
----------
Use edauth to take a look at your users config.
Could this account for what you are seeing?
Remember to look in the default template as well as in the users
own auth entry.
Adam
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Tru64 V5.1A user resource limits ...?
2003-02-19 6:56 Tru64 V5.1A user resource limits ...? Bob Bramwell
2003-02-19 19:28 ` gokrix
2003-02-21 5:28 ` Adam Price
@ 2003-02-22 6:15 ` Bob Bramwell
2 siblings, 0 replies; 7+ messages in thread
From: Bob Bramwell @ 2003-02-22 6:15 UTC (permalink / raw)
I found my problem - finally. Thanks to all who responded. It turned out to be
a combination of carelessness (on my part) and subtlety (on Tru64's).
man ulimit spells it out, if I read it carefully:
[Tru64 UNIX] If neither the -H option nor the -S option is specified, the
limit applies to both hard and soft limits. If only the -a option is
specified, soft limits are reported.
"... both hard and soft...". So if I incant:
ulimit -s 4096
I can now no longer raise my own limit. On the other hand, if I do:
ulimit -Ss 4096
the soft limit is 4M and I can raise it up to the pre-existing hard limit any
time after.
It never occurred to me that the default action was to set the hard limit, so I
never looked really hard for places where ulimit might have snuck in. Needless
to say there was one, to which I have now added the magic '-S' option.
Well, that was a pain I didn't need :-)
Bob Bramwell wrote:
> Does anyone know how to raise user resource limits under 5.1A?
--
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-02-22 6:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox