cancel
Showing results for 
Search instead for 
Did you mean: 

REG:File Issuses

Musa123
Advisor

REG:File Issuses

We've recently had problems with File Table overflows and
like to know if we can extend the number of open
filehandles in unix.

This is impacting out ability to edit data and as such is
also impacting our ability to produce databases for clients.

can anyone help this issuse....with step by step ..

Thanks In advance
5 REPLIES
Pete Randall
Outstanding Contributor

Re: REG:File Issuses

You need to increase the nfile kernel parameter.


Pete

Pete
Musa123
Advisor

Re: REG:File Issuses

hi ,

ok but how to increase , which path i want to access,file and edit
Bill Hassell
Honored Contributor

Re: REG:File Issuses

You'll need to run sam and select Kernel Configuration and select Configuration Parameters. I am assuming you are using version 11.11 or earlier. Select nfile (note the current value, probably a few hundred) and then using tab and the arrow keys, navigate to Actions and Mofify. There will probably be a crazy formula defining the value. Delete all of it and type in a new value at least 2 or 3 times larger (thousands) than the current value. Then select OK and return to the higher menus.

sam will ask you if it is OK to build a new kernel and reboot (yes). Once rebooted, you won't have the nfile limit. Note that a growing system needs to be adjusted. Check the current and max values in sar for both nfile (file-sz) and nproc (proc-sz). Keep the max value at least 20% higher than current usage.

If you are using 11.23 or 11.31, then the interface (kcweb and smh) are somewhat different.


Bill Hassell, sysadmin
Musa123
Advisor

Re: REG:File Issuses

hi,

any command is there to set the parameters.
Bill Hassell
Honored Contributor

Re: REG:File Issuses

> any command is there to set the parameters.

There is no single command and if you are not familiar with HP-UX system administration, sam is the only tool you should use. A kernel rebuild and reboot is required for most versions of HP-UX. What version are you running (uname -r).


Bill Hassell, sysadmin