- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Guide on maxfiles and maxfiles_lim kernel value
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
Discussions
Discussions
Forums
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
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
тАО10-12-2009 05:21 AM
тАО10-12-2009 05:21 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2009 05:27 AM
тАО10-12-2009 05:27 AM
Re: Guide on maxfiles and maxfiles_lim kernel value
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2009 05:29 AM
тАО10-12-2009 05:29 AM
Re: Guide on maxfiles and maxfiles_lim kernel value
The values you choose are wholly dependent on your environment's needs. I would have a look at the manpages for their usual wealth of information:
http://docs.hp.com/en/B2355-60130/maxfiles.5.html
http://docs.hp.com/en/B2355-60130/maxfiles_lim.5.html
Look too at 'ulimit' here:
http://docs.hp.com/en/B2355-60130/sh-posix.1.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2009 05:40 AM
тАО10-12-2009 05:40 AM
Re: Guide on maxfiles and maxfiles_lim kernel value
Here is a sampling from around the forum. As you can see there is a wide range. I would 'sar -v 5 5' > /home/user/openfiles.txt into a 20 min cron for a week to get a better idea. Also, if you are using an application like Oracle or Java, they should be making these recommendations.
maxfiles 256 - 256
maxfiles_lim 2048 Y 2048
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1119656
For machine with java these are values I usually put:
maxfiles 2048
maxfiles_lim 2176
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=8643
maxfiles 512 - 512
maxfiles_lim 1536 Y 1536
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1343923
Also I would like to understand the impact of following confing
maxfiles_lim = 2048
maxfile = 10240
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=951759
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2009 05:05 AM
тАО10-13-2009 05:05 AM
SolutionIf some program requires a larger number of files to be opened at the same time, the the program should recognize that opening 10000 files at the same is probably unusual and the program should call setrlimit to extend the MAXFILES value to a bit more than 10000. If MAXFILES_LIM = 15000 then the program runs without a problem. Another way to do this is to run the program with a profile that sets ulimit -n 10100 to allow 10100 files to be opened.
NOTE: MAXFILES/MAXFILES_LIM do not modify NFILE which is the maximum number of files open at the same time for the entire system. NFILE counts ordinary files as well as device files (disks, tapes, ptys) and network sockets. Usr sar -v 1 to see if the totan number of files and the maximum are getting close, then adjust NFILE accordingly.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2009 09:30 PM
тАО10-13-2009 09:30 PM