1834272 Members
61853 Online
110066 Solutions
New Discussion

Re: ulimit parameters

 
gab_in
Regular Advisor

ulimit parameters

Hi,

My customer has asked us to set the value for the following parameters to “unlimited” :

ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048

I am able to set the value of with ulimit with -d (data) -s(stack) and -c (coredump) but not able to change the nofiles to unlimited. It says "sh: ulimit: The specified value exceeds the user's allowable limit".

Can you please help on this and also let me know whether these setting will be permanent or will be changed after reboot?

Thanks
Gab

5 REPLIES 5
Jeeshan
Honored Contributor

Re: ulimit parameters

nofile is depend upon kernel parameter value nfile.

can u post the nfile parameter value currently set in your server.
a warrior never quits
Mustafa Gulercan
Respected Contributor

Re: ulimit parameters

hi;
here is the link that you can learn much more things from gurus';

http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1214394138895+28353475&threadId=49882

regards,
mustafa
gab_in
Regular Advisor

Re: ulimit parameters

Thanks for the response.

We are running 11.31 version where nfile tunable is removed. Here I am sending the output of maxfiles and nproc.

# kctune |grep -i maxfiles
maxfiles 2048 Default
maxfiles_lim 4096 Default Immed
# kctune |grep -i nproc
nproc 4096 4096 Immed
#
Jeeshan
Honored Contributor

Re: ulimit parameters

Dennis Handly
Acclaimed Contributor

Re: ulimit parameters

>My customer has asked us to set the value for the following parameters to unlimited:

You can't. Most of these are limited by kernel parms.
Using forums search you can find these threads:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1156660
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1194267
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=892976
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1236189

>Here I am sending the output of maxfiles and nproc.

You can use kctune to increase the two maxfiles parms.