- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Relationship of 'nfile' to Memory
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
11-08-2010 12:21 PM
11-08-2010 12:21 PM
The 'nfile' kernel parameter has been dynamic since I believe 11.00 and 64 bit CPU's. Not important. Somewhere around the intro of 11.00 the kernel parameter 'nfile' sent from static to dynamic and increased it's max value depending upon how much memory you had in your box.
I am looking for this relationship in some kind of formula or format like, for 1 GB max nfile is 1000. For 2 GB max nfile is 10,000.
Etc.
Does anyone have a citation or reference on this?
Thanks in Advance.!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 12:35 PM
11-08-2010 12:35 PM
SolutionThe manpages for 'nfile(5)' tell the story.
From the 11.23 manpages: "For small memory systems (less than 1GB), the default is 16384, or 16K. For systems with more than 1GB of memory, the default is 65536, or 64K...The minimum value allowed is 2048. The maximum value allowed is the maximum 32-bit signed integer value that can be represented in the system. The value is further constrained in that it must be equal to or greater than two times the per-process open file hard limit: (nfile >= 2*maxfiles_lim)."
At 11.31, the manpages note, "The default value for nfile is 0 (zero). The value of zero means that the system limit usually enforced by nfile will be disabled (that is, the number of system-wide open files is limited only by available memory)."
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 12:36 PM
11-08-2010 12:36 PM
Re: Relationship of 'nfile' to Memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 12:58 PM
11-08-2010 12:58 PM
Re: Relationship of 'nfile' to Memory
I am thinking:
a) open files are not been closed by the application and there may be a code issue.
And I'm looking for concurrence from the Forum or another reason for open files never being released back to the system.
Don't see anything else odd including no memory leaks.
Question: Will 'nfile' max out in 11.23?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 01:01 PM
11-08-2010 01:01 PM
Re: Relationship of 'nfile' to Memory
Yes, it definitely should.
What is the count of open files you see vs. your current nfile value? What does the 'file-sz' column look like in 'sar -v'?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 01:05 PM
11-08-2010 01:05 PM
Re: Relationship of 'nfile' to Memory
> Question: Will 'nfile' max out in 11.23?
Yes, at the setting specified in your kernel. Dynamic means that you can change the parameter value immediately without a reboot.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 01:08 PM
11-08-2010 01:08 PM
Re: Relationship of 'nfile' to Memory
Have you used glance or lsof to check to see what files are open for your suspect applications?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 01:08 PM
11-08-2010 01:08 PM
Re: Relationship of 'nfile' to Memory
But wouldn't you speculate that there is a code problem not closing open files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 01:15 PM
11-08-2010 01:15 PM
Re: Relationship of 'nfile' to Memory
Exactly, provided the number of processes is constant. (Files includes sockets, etc.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 01:31 PM
11-08-2010 01:31 PM
Re: Relationship of 'nfile' to Memory
One additional word of caution:
Do not change nfile on HP-UX 11i v3!
Whilst it used to be very popular to change
it on older HP-UX releases, having non-zero
value on HP-UX 11i v3 can cause dramatical
problems, as few of our Oracle customers
experienced.
They preserved the values of nfile from HP-UX
11i v2 and the DB was having huge problems
and crashes.
Leave nfile on HP-UX 11i v3 as default.
It fact, it is now a PRIVATE KERNEL PARAMETER.
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 09:15 AM
11-09-2010 09:15 AM
Re: Relationship of 'nfile' to Memory
See Dennis' reply above and man page for 11.31 nfile. (* The default is 0 since nfile is dynamic in 11.31 *)