- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nfile parameter increasing
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
09-03-2007 09:55 PM
09-03-2007 09:55 PM
I'm looking for some help with regards to the nfile parameter on a HP-UX 11.11 server. I would like to understand what the "normal" behaviour is for this parameter.
The server in question had the nfile parameter set to 10000 until about a 45 days or so ago. Our alerting picked up that the usage was getting high and we raised the figure to 30000. Our capacity people were able to show from data collected that after a certain date that the figure started to increase steadily. Since increasing the figure to 30000 we have been keeping an eye on the output from 'sar -v' and noticed that after the reboot for the parameter change it started at around 3500 and has steadily increased over 45 days to 11500. So it appears it will eventually (although not for a while) hit 30000 if this behaviour continues, is this normal? My feeling is that some part of the application running on the server is misbehaving with regards to nfile.
Are there any tools for tracking what nfile is doing?
Hope this makes sense, many thanks in advance for your help.
Steve.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2007 10:13 PM
09-03-2007 10:13 PM
SolutionThe nfile parameter simply defines the number of slots available in the file descriptor table in the kernel. When you run out of available slots, then you can't open any more files.
Now, normally, when a process completes, it should close all it's open files, thus releasing the file descriptor table entries for re-use. If this number continues to increase, then you have some very poorly behaved applications that are not closing down properly!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2007 10:50 PM
09-03-2007 10:50 PM
Re: nfile parameter increasing
Thanks for the reply. What you have described confirms my fears that the applciation is poorly written and is not releasing it's open files once it has finished. The problem now is trying to locate what excatly is doing this.
I guess the next step is to log a call with HP and see if they have any tools so I can hand the app team some proof!?
Many thanks, Steve.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2007 12:14 AM
09-04-2007 12:14 AM
Re: nfile parameter increasing
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2007 01:29 AM
09-04-2007 01:29 AM
Re: nfile parameter increasing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2007 01:35 AM
09-04-2007 01:35 AM
Re: nfile parameter increasing
lsof (list open files) can list a ton of information about processes, tcp/ip connections, etc.
lsof can be obtained from:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.78/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2007 01:40 AM
09-04-2007 01:40 AM
Re: nfile parameter increasing
I do believe we have lsof installed on our systems, although I have limited expertise in using it.
Many thanks for the suggestion.
Steve.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2007 01:46 AM
09-04-2007 01:46 AM
Re: nfile parameter increasing
Just type lsof and you'll see some common options and be able to track this.
You might also find glance gui high water mark display might give you a picture of how close your system is to limits during the day.
Commonly application issues can cause file handles to open and not be closed.
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
09-04-2007 02:15 AM
09-04-2007 02:15 AM
Re: nfile parameter increasing
It's difficult to say whether or not your application is behaving normally. Some applications are smart enough to examine the limits and tune their behavior accordingly because repeated opening and closing of a file are (relatively) expensive operations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2007 02:26 AM
09-04-2007 02:26 AM
Re: nfile parameter increasing
http://docs.hp.com/en/939/KCParms/KCparam.Nfile.html
Other kernel parameters :
http://docs.hp.com/en/939/KCParms/KCparams.OverviewAll.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2007 02:39 AM
09-04-2007 02:39 AM
Re: nfile parameter increasing
Thanks for the input much appreciated.
It would seem I have enough info to start trying to diagnose if something is behaving badly or not. Our best guess is that the a change was made to the App on the date when we start to see the steady increase begin. I'm going to ask the App support team to try and pin point what they think happenned at that point. Interestingly there also seems to be a big increase over month end, so also suspect that an end of month batch processing job maybe the culprit.
Cheers, Steve.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2007 03:29 AM
09-04-2007 03:29 AM