1847509 Members
6405 Online
110265 Solutions
New Discussion

Re: NFILE issue

 
I.Delic
Super Advisor

NFILE issue

hi,

I have to incrase my nfile parameter.
At this point is my MAXUSER paramter 125 users.
I could incrase this paramter and automaticly incrase my nfile to.

I don't know how i have to incrase nfile directly. I see a lot of itmes in de forum about this issue but i still do not know how to change this value safety.

Plase explain how i have to do this.
Let's see i want to incrace my nfile to 10000.
Can i just put 10000 somwhere and be sure my box wil boot after rebuild of the kernel.

It is a production machine that's why i'm very careful

Thank you in advance

Idriz

12 REPLIES 12
Orhan Biyiklioglu
Respected Contributor

Re: NFILE issue

nfile is a dynamically updateable parameter. You can use kcweb to increase it on the fly or just type

kctune nfile=10000

hth.
Orhan Biyiklioglu
Respected Contributor

Re: NFILE issue

Managing kernel configurations in HP-UX 11i v2 : http://h71028.www7.hp.com/erc/downloads/5981-7111en.pdf

and

Configuring an HP-UX Kernel : http://www.informit.com/articles/article.asp?p=392277

should be helpful
Devender Khatana
Honored Contributor

Re: NFILE issue

Hi,

Irhan,

First of all the nfile is not a dynamic parameter, atleast in 11i Version 1.

Moreover if the OS version is 11i Version 1 then you can change the parameter straight away. How are you changing the parameter? Through SAM or through command line.

You can select to overwrite the formula used to calculate the value depending upon other parameters, but other parameters depending upon this parameter will change according to the new value of this parameter. You can review the kernel changes while building new kernel to know the difference in all parameters and can also save the two files and find difference when doing it from command line.

HTH,
Devender
Impossible itself mentions "I m possible"
Orhan Biyiklioglu
Respected Contributor

Re: NFILE issue

Forgot to mention this is valid for HP-UX 11i v2 (11.23).

Please refer to : http://docs.hp.com/en/B2355-60105/nfile.5.html

Excerpt from the man nfile:

Restrictions on Changing

This tunable is dynamic (tuning will take effect immediately on the running system). When the value of nfile is dynamically tuned it cannot be set to a value lower than the number of current open files in the running kernel.

Also since the default value on 11.23 is 65536 setting this to 10000 should definitely not increase it.

However,
kctune nfile=XXXXX

should work on 11.23

Regards,
Ashish Patwardhan_2
New Member

Re: NFILE issue

Hi,
Normally rasing the nfile parameter does not have any side effect. This will allow more memory to be used by opened files (since more no. of files will be opened) and less by the system.

This is normally dependent on maximum no. of open files per process. nfile shud be twice this value. Also memory size matter for this value.

Memory less than 1 gb will have nfile parameter 16384 as default whereas if it is greater than that then it is 65536.

Also if it is 11.23v2 it can be dynamically changed.
I suggest increasing the value and monitor the performance.

Hope that helps.
Regards,
I.Delic
Super Advisor

Re: NFILE issue

Manday i wil check whitch version of the HP unix do we have.

It is version 11 but i dont't know whitch one.
It is a box with the RISC procesor. RP 3440

Than you for your solutions

Idriz


Fabio Ettore
Honored Contributor

Re: NFILE issue

Hi,

by SAM it is great to change kernel parameters but you please check the HP-UX version in order to change dinamicallynfile parameter.

Anyway nfile for default should be tied to maxusers by a formula. Chaning maxusers you will change automatically nfile. obviously if in previous statements you or your collagues changed file from a formula to a fix value then you should put just 10000 in nfile value as well.

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Borislav Perkov
Respected Contributor

Re: NFILE issue

Hi Idriz,
You can check your HP-UX version by command:
uname -a
The output from the command is like:
HP-UX hostname B.11.11 U 9000/800 125484681 unlimited-user license

The version is after B. in the example it is HP-UX 11.11 or 11i.
regards,
borislav
Borislav Perkov
Respected Contributor

Re: NFILE issue

Changing the NFILE parameter you force change to many other kernel parameters which are defined with a formula. You can change it, NFILE, also puting a value for it but you have to be aware of its corespondation with MAXUSER parameter.
Pete Randall
Outstanding Contributor

Re: NFILE issue

To expand on the versioning:

11.11 = 11i version 1
11.23 = 11i version 2

There were also some Itanium versions (11.21 and 11.22) but your rp3440 is definitely not running one of those.


Pete

Pete
I.Delic
Super Advisor

Re: NFILE issue

My version is !
HP-UX nloos2u1 B.11.11 U 9000/800 3144009684


Maybe i should change maxuser value.
Nfile wil be automaticly changed

I have to reboot system after i changed value.

idriz
Arunvijai_4
Honored Contributor

Re: NFILE issue

You can tune using sam..

# sam -->:Kernel Configuration --> Kcweb Kernel configuration (character mode)

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"