Operating System - HP-UX
1832617 Members
3038 Online
110043 Solutions
New Discussion

Increase kernel parameter "nfile".

 
SOLVED
Go to solution
UniRock
Regular Advisor

Increase kernel parameter "nfile".

Hello All,

Below is the output of kmtune (nfile) ;

#kmtune | grep -i nfile
nfile 2910 - (16*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+NSTRTEL))

I have to increase the nfile size from 2910 (existing) to about 5000,
but the problem is it has such a lenghty formula, can I override the formula by numerical value or is it necessary to go according to the formula and change all other variables?

Please help.

Thnx..
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Increase kernel parameter "nfile".

Hi:

Simply choose an appropriate value and ignore the (deprecated) formula. You can choose an ample value for your needs since the number represents elements in a kernel table. The memory required is very small.

Regards!

...JRF...
Yashwant
Valued Contributor
Solution

Re: Increase kernel parameter "nfile".

#kmtune -s nfile=
#cd /stand/build
#mk_kernel
#mv vmunix_test /stand/vmunix
#reboot
will change the nfile to new value.

make sure you have the copy of present kernel(vmunix) before doing this exercise, so that you can recover even if the system fails while booting with new value of nfile.
Javed Khan_1
Valued Contributor

Re: Increase kernel parameter "nfile".

Hi,

Since your OS is 11.11 you may use

#kmupdate instead of

#mv vmunix_test /stand/vmunix

and reboot this will schedule new kernel move during next reboot .



Never Give Up
Dennis Handly
Acclaimed Contributor

Re: Increase kernel parameter "nfile".

You can of course use SAM to change the value. It may have better help on what's allowed for nfile.