nfiles (16 Views)
Reply
Super Advisor
Carme Torca
Posts: 582
Registered: ‎09-20-1998
Message 1 of 3 (16 Views)
Accepted Solution

nfiles

Hi,

I have one server with limit nfiles.

10:26:03 text-sz ov proc-sz ov inod-sz ov file-sz ov
10:26:04 N/A N/A 570/5120 0 2272/16384 0 32538/32778 0
10:26:05 N/A N/A 570/5120 0 2272/16384 0 32538/32778 0
10:26:06 N/A N/A 570/5120 0 2273/16384 0 32539/32778 0
10:26:07 N/A N/A 570/5120 0 2272/16384 0 32538/32778 0

I have to increase this value.
But, Is it posible to known what files are open in one moment?
And another question, I have to increase some more value?

Thanks!
Caremn.
Users are not too bad ;-)
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 3 (16 Views)

Re: nfiles

Shalom Carme,

glance/gpm is an add in performance monitor. Its on your application cd's and can be installed on a 60 day trial basis.

It has a nice resource monitor that can show high water marks on important resources.

If you have to increase the value anyway, there seems to be no need to look at the current values.

If you are bumping the limit you'll see error messages indicating that files can not be openned.

/var/adm/syslog/syslog.log and you may see this within your applications as well.

The lsof utility is a great for seeing what files are openned where.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.75/

I've had a lot of trouble with the depot version and recommend downloading the tar file all the co and pre requisites and compiling.

If you are nitting the nfiles limit its hard to tell how high to increase it because your system isn't running right and you can't tell how many files it reallly wants open.

Another one to watch is maxuprc

It controls the maximum number of files open from any one user and is more likely to make trouble. It defaults to 75 and I commonly have to bump it up to 200 to run mid range oracle/application servers.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Honored Contributor
Eric Antunes
Posts: 1,931
Registered: ‎06-15-2003
Message 3 of 3 (16 Views)

Re: nfiles

Hi Carme,

I think you should decrease ninode since it seems oversized: 4096 for starting and monitor "sar -v" again.

My nfile parameter is equal to (15*NPROC+2048). If you use this formula you will get a nfile equal to 78848.

Best Regards,

Eric

Each and every day is a good day to learn.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation