- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Soft limit and hard limit
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
05-06-2006 03:08 AM
05-06-2006 03:08 AM
Soft limit and hard limit
Can any body explain me following issues?
1. Kernel parameter maxfile and maxfile_lim refer as a soft limit and hard limit. What is the difference between soft limit and hard limit?
2. How much memory should be free for a smooth operation of a mission critical server? I mean memory utilization should not be beyond what percent?
Rgds,
Mostafa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2006 03:21 AM
05-06-2006 03:21 AM
Re: Soft limit and hard limit
1.Maxfiles specifies the system default soft limit for the number of files a process is allowed to have open at any given time. It is possible for a process to increase its soft limit and therefore open more than maxfiles files.
Non-superuser processes can increase their soft limit until they reach the hard limit ( maxfiles_lim).
Maxfiles_lim is useful only if it does not exceed the limits imposed by nfile and ninode.
2. The more the better. This depends on running applications requirement and needed performance, if the running applications are memory-bounded.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2006 05:07 AM
05-06-2006 05:07 AM
Re: Soft limit and hard limit
You may as well read the following thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=909129
Bill has ellaborated as below
"maxfiles is simply a starting point, normally set quite low (60 to 120) for ordinary users. Power programs that really need hundreds of files open at the same time will call setrlimit() to change the limit higher. maxfiles_lim is the absolute limit for the number of open files in a single process."
As well you can read this link as well
http://www.faqs.org/faqs/hp/hpux-faq/section-144.html
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2006 05:40 AM
05-06-2006 05:40 AM
Re: Soft limit and hard limit
Specialized programs might require hundreds of files to be open at the same time. Properly written, these programs will make a system call to setrlimit() to temporarily increase the limit for this one program. If the programmer forgot this system call, you can set the limit higher with ulimit -n.
As far as memory, you want to use all of it most of the time. Occasionally, a program or group of programs may exceed memory but all is well since HP-UX will move idle programs out to the swap area. If this happens too much, you would get more RAM. Most programs require a certain amount of memory which is generally not under your control so maintaining good performance requires enough RAM. Your mission critical system will continue to run even while using swap space.
Note that some older programs may be 32bits in size and will hit memory limits because of limits imposed by 32bits. These issues have been covered several times here in the forums.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2006 05:58 PM
05-06-2006 05:58 PM