1833784 Members
2164 Online
110063 Solutions
New Discussion

a problem about ulimit

 
lin.chen
Frequent Advisor

a problem about ulimit

my system is
rx2620dl[/]# uname -a
HP-UX rx2620dl B.11.23 U ia64 1531644726 unlimited-user license

when I run command ulimit -n 8000
rx2620dl[/]#ulimit -n 8000
rx2620dl[/]#ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 8000

but kctune -q maxfiles_lim is still 8192

i want to know why maxfiles_lim did not change to 8000 after running ulimit -n 8000.
could you also tell me something about how to use ulimit? thanks a lot
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: a problem about ulimit

Ulimit by default displays the "soft" limits; try a ulimit -nH and you should have your answer. Max_files lim changes the "hard" value. ulimit -n and ulimit -nS are equivalent because both display the "soft" limits. Man sh-posix and look under the ulimit section for details.
If it ain't broke, I can fix that.