Operating System - HP-UX
1838614 Members
4072 Online
110128 Solutions
New Discussion

increasing nfile parameter

 
SOLVED
Go to solution
lawrenzo
Trusted Contributor

increasing nfile parameter

Hello,

Can someone clarify for me that whenI change the kernel param for nfile - is there any other params or settings that also need to be changed or any issues may occure. Would it be a good idea to make a copy of the /stand/vmunix?

Thanks in advance
hello
8 REPLIES 8
Oliver Charni
Trusted Contributor
Solution

Re: increasing nfile parameter

Hi!

There are no Kernel - Parameters which will be affected by the Change of nfile.
It's allways good to have a Copy of /stand/vmunix!!
if it smell's funny on the outside, it's worse on the inside
Wouter Jagers
Honored Contributor

Re: increasing nfile parameter

Nope, nfile has no 'relations' which you should take into account. You should be able to change it just like that.

It is -always- a good idea to make a vmunix.prev file, since it ensures your ability to reboot should anything go wrong.

greets
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
lawrenzo
Trusted Contributor

Re: increasing nfile parameter

ok thanks - much appreciated
hello
Pete Randall
Outstanding Contributor

Re: increasing nfile parameter

The parameter nfile is typically part of a formula. Something like(16*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+NSTRTEL))

Unless you want to replace this formula with a hard-coded value. You might want to consider increasing NPROC or MAXUSERS instead. This will have the effect of making a consistent increase to all the values that use NPROC in their formulae: effective_maxpid, ksi_alloc_max, ninode, nkthread, nproc, nsysmap, and nsysmap64. Increasing MAXUSERS would have a similar ripple effect.

Just a thought.


Pete

Pete
lawrenzo
Trusted Contributor

Re: increasing nfile parameter

Thanks Pete,

I noticed the formula and updated the maxusers param which did the trick.

cheers
hello
Pete Randall
Outstanding Contributor

Re: increasing nfile parameter

You're welcome!


Pete

Pete
Bill Hassell
Honored Contributor

Re: increasing nfile parameter

MAXUSERS is a good parameter to use when your system is growing and you don't have the time (or tools) needed to understand and monitor the kernel parameters. If NFILE must be increased, most likely, NPROC will be next. The relationship is easy to understand. NPROC is the maximum number of processes, so if more processes are run, more files (NFILE) will be open. If you use SAM to make your changes, a backup will be made of your current /stand/vmunix file as /stand/vmunix.prev which can be selected during interactive bootup in case of problems.


Bill Hassell, sysadmin
Judy Traynor
Valued Contributor

Re: increasing nfile parameter

I have on occasion, needed to bump nflocks when bumping nfiles.

ninodes is another - but keep in mind - these are only when the standard kernel isn't right.
Sail With the Wind