- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: About increasing nfile parameter
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 11:00 PM
01-02-2007 11:00 PM
I detected open files are close to limit:
HP-UX ra B.11.11 U 9000/800 01/03/07
12:47:03 text-sz ov proc-sz ov inod-sz ov file-sz ov
12:47:08 N/A N/A 370/5120 0 2020/32768 0 25980/32778 0
12:47:13 N/A N/A 378/5120 0 2030/32768 0 26008/32778 0
12:47:18 N/A N/A 393/5120 0 2030/32768 0 26018/32778 0
12:47:23 N/A N/A 368/5120 0 2029/32768 0 25973/32778 0
12:47:28 N/A N/A 361/5120 0 2013/32768 0 25913/32778 0
In order to solve this issue I should increase nfile parameter. But before to do this I have some questions:
- nfile parameter current value is 32768, but as you can see, max value for file-sz is 32778. Does file-sz limit increases if I increase nfile paramter? Note that file-sz is 10 units greater.
- Our system has 7 GB RAM and if I'm right for 1 GB I can increase 65000 (more or less), so can I set nfile value to 100000 without problems or is there any other limit like other kernel parameter value?
Thanks in advance for your help.
Regards,
Carles
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 11:21 PM
01-02-2007 11:21 PM
SolutionThis is what the man pages says about it:
"The value used for nfile must be sufficient to serve the number of users and processes allowed by the combination of nproc, maxusers, npty, and nstrpty"
http://docs.hp.com/en/TKP-90202/re56.html
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 11:22 PM
01-02-2007 11:22 PM
Re: About increasing nfile parameter
If you look via the available tools
Parameter: nfile
Value: (32*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+NSTRTEL))
Default: (16*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+NSTRTEL))
This is all done via formulas
Increase nproc and a lot of other things increase in proportion
see
http://www.docs.hp.com/en/939/KCParms/KCparams.OverviewAll.html
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 11:26 PM
01-02-2007 11:26 PM
Re: About increasing nfile parameter
file-sz related to the size of the file, has no relation to nfile. It is not a kernal parameter. file-sz is displayed by star when measureing performance. From your output you appear to have 25,590 files of a possible 32778 open. You are far from the limit and should get a file table overflow if you run out.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=186045
nfile is the total number of files open on a system.
maxuprc is the total number of files permitted open for one user.
I don't believe raising nfile will cause problems with other parameters. Increasing the kernel parameter itself will not significantly impact memory use or system performance.
When the files are actually open, then there will be an impact on system peformance.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 11:26 PM
01-02-2007 11:26 PM
Re: About increasing nfile parameter
Also there is this doc in the itrc site called What is the effect of incresing the parameter nfile?
DocID AK9010011200
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 11:49 PM
01-02-2007 11:49 PM
Re: About increasing nfile parameter
First to all, thanks a lot for your replies.
About nfile parameter value, it isn't a formula so I should set a value. But this is not really important as in any case I'm able to increase it to at least 100000.
But about file-sz, we already arrived to top value and for this reason we're planning to increase nfile parameter as it seems to set file-sz limit.
Is this last point correct or should I increase other value?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 11:57 PM
01-02-2007 11:57 PM
Re: About increasing nfile parameter
Some days ago we arrived to file-sz limit (I supose)due SAP and Oracle are running there.
After an emergency system reboot file-sz decreases but it is growing.
First time oracle open a datafile it keeps file open to access quickly it next time, so in the worst case (all SAP sessions working at same time) I think I'll need 54.000 open files.
Now nfile value is 32768 and file-sz limit is 32778, so my question is:
- If I set nfile to 100000 can I grant I won't arrive to file-sz limit?
Thanks again for your help.
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2007 12:02 AM
01-03-2007 12:02 AM
Re: About increasing nfile parameter
In your output of sar -v we can see this values: 25980/32778
When the first value is too close to the other value you should get this error:
"File table overflow"
If you have not gotten that error yet you should be fine for the moment, but if you want the difference in numbers to be higher the only thing that you have to do is to increase the nfile parameter which does not impact anything else in the system if you got enough memory.
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2007 12:11 AM
01-03-2007 12:11 AM
Re: About increasing nfile parameter
Disregard any formula for 'nfile' and hard set a value which fits your needs. Increasing your 'nfile' 3-fold would be fine. The value of 'nfile' ranges from 2048 to the size of a 32-bit integer, so you have a very large range.
The kernel uses very little memory for each increment in the value of 'nfile'. The parameter represents the number of slots in a kernel table --- one for each open file.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2007 10:30 PM
01-03-2007 10:30 PM
Re: About increasing nfile parameter
I made change in a test environment and system is working fine, even with just 4 GB RAM.
Tonight I'll make change in production environment due file-sz value is still increasing there and I'm sure it could increase at least until 52000.
BTW, I saw file-sz is always just 10 units greater than nfile. Do you know why?
Thanks to all and regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2007 11:30 PM
01-03-2007 11:30 PM
Re: About increasing nfile parameter
file-sz = The current-size and maximum-size of the system file table;
It is not a control variable, but a display variable.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2007 06:21 PM
01-04-2007 06:21 PM
Re: About increasing nfile parameter
Thanks to all for your help.
Regards,
Carles