Operating System - HP-UX
1833049 Members
2494 Online
110049 Solutions
New Discussion

Re: Changing maxfiles_lim

 
SOLVED
Go to solution
OFC_EDM
Respected Contributor

Changing maxfiles_lim

maxfiles 2048
maxfiles_lim 2096 -> want to change to 8096
ninode 3140
nfile 31289

Reason for change:
Processes are running out of file descriptors

My Question:
The request is to change maxfiles_lim to 8096.
But I'm thinking this will effectively be the same as setting maxfiles_lim to 3140.

Because don't you need an inode for each file open? So if you set maxfiles > than ninode anything above the value of ninode wont have effect?

Cheers
The Devil is in the detail.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Changing maxfiles_lim

Shalom,

ninode has nothing to do with max files.

Go ahead ame change maxfiles and maxfiles_lim to the new level.

Remove any formula problems that result from this change.

You ninode level is pretty low and should be increased to prevent problems as well.

ninode stands nor number of inodes. Lots of files can go on a single inode.

inodes are disk sections. You can have 100 files open at the same time that happen to set on a single inode.

Hope that helps.

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
Geoff Wild
Honored Contributor
Solution

Re: Changing maxfiles_lim

You need to change maxfiles and maxfiles_lim in order to resolve performance issues with file descriptors....

On my oracle servers I have them both set to 4096.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
James R. Ferguson
Acclaimed Contributor

Re: Changing maxfiles_lim

Hi:

Before you change the value of 'ninode' make sure you read this whitepaper:

http://docs.hp.com/en/7779/commonMisconfig.pdf

Your setting may be appropriate for your configuration and increasing it my simply waste memory.

Regards!

...JRF...
OFC_EDM
Respected Contributor

Re: Changing maxfiles_lim

Geoffs entry tweeked this question from me.

Anyone know of any articles, forum discussions etc. that discuss resolving performance issues with file descriptors?

I'd like to get more exposure about this issue and what people do to address it.
The Devil is in the detail.
likid0
Honored Contributor

Re: Changing maxfiles_lim

James R. Ferguson
Acclaimed Contributor

Re: Changing maxfiles_lim

Hi (AGAIN):

> Anyone know of any articles, forum discussions etc. that discuss resolving performance issues with file descriptors?

Consider:

Many of the kernel parameters (including those limiting the number of open files) are fences to simply prevent rogue programs from usurping all of a resource.

Fundamental, good programming techniques include closing files when you don't need them.

Regards!

...JRF...