Operating System - HP-UX
1834650 Members
2514 Online
110069 Solutions
New Discussion

increase nofiles parameter

 
meekrob
Super Advisor

increase nofiles parameter

Hi ;
i have to increase the nofiles descriptor to 2048 from its value of 60 ,
i did the command ulimit -n 2048 and succeed to chane it ,
but when i reboot the server or change the session the value is back to 60 ,
what should i do to have the value 2048 permanently

thank you
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: increase nofiles parameter

I'm assuming that you mean "nfiles", since I've never heard of "nofiles". To change nfiles permanently, you need to modify the kernel. The easiest way is to use SAM > Kernel Configuration > Configurable Parameters. Increase "nfile" to 2048, then select Actions > Process New Kernel.


Pete

Pete
Devender Khatana
Honored Contributor

Re: increase nofiles parameter

Hi,

As stated earlier nofile is not a valid parameter and you need to increase nfile. The process above is perfect but will require a system reboot.

HTH,
Devender
Impossible itself mentions "I m possible"
Senthil Kumar .A_1
Honored Contributor

Re: increase nofiles parameter

Hi rue,

There is a nofile part to ulimit, but if you change it using "ulimit" command it will be temperory. If you want to change it permanetly across boots , you need to set the value for the kernel parameter "maxfiles" ..

see my example..

root@cst2adm# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2015436
stack(kbytes) 262144
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 4096
root@cst2adm# sysdef | grep maxfiles
maxfiles 4096 - 30-2048 -


regards,
Senthil Kuamr .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: increase nofiles parameter

hi again,

to change the "maxfiles" parameter in kernel, you can do it in SAM,under Kernel configuration functional area,

to cross check , u can compare the value of "nofile" to "maxfiles" parameter before u change "maxfiles" value..

to check nofiles value,

ulimit -a

to check maxfiles value,

sysdef | grep maxfile

regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)