nfiles (30 Views)
Super Advisor
Posts: 585
Registered: ‎09-20-1998
Message 1 of 3 (30 Views)
Accepted Solution



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?

Users are not too bad ;-)
Exalted Contributor
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 3 (30 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.

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.

Steven E Protter
Owner of ISN Corporation
Honored Contributor
Posts: 1,946
Registered: ‎06-15-2003
Message 3 of 3 (30 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,


Each and every day is a good day to learn.
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.