« More Sun ok> Prompt Commands | Main | AIX Logical Volume and Disk Management Commands »

May 14, 2008

Solaris Soft and Hard Limits

Handle_2

Hard limits are a kernel-configurable item, and users can't exceed them.

Soft limits are the user defaults, and users can change that using the 
ulimit program or the limit/unlimit builtins.

Basically, soft limits can be changed to anything up to the hard limit.
  
Think of soft limits as the warning barrier. When a user reaches 
the soft limit they will get an warning message but are still allowed 
to use more space up to the hard limit. Also, you can configure the 
system to set expiration times for users who have exceeded their soft limit.

You can set both soft and hard limits. The system will not allow a user
to exceed his or her hard limit. However, a system administrator may 
set a soft limit (sometimes referred to as a quota), which the user can temporarily
exceed. The soft limit must be less than the hard limit. 

Use ulimit -a to check soft limits, and ulimit -Ha to check hard limits.

These values will display as open files.


You can set these values by placing the following entries in /etc/system.

This will require a reboot

set rlim_fd_max=8192
set rlim_fd_cur=256
 

rlim_fd_max is the hard limit, and rlim_fd_cur is the current limit (or soft limit)

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/2957054/29073788

Listed below are links to weblogs that reference Solaris Soft and Hard Limits:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Post a comment

If you have a TypeKey or TypePad account, please Sign In