GNU/Linux Command – ULIMIT

ulimit – Control the resources available to processes

Summary :
ulimit, Bash Built-in Command, provides fine control over the amount of resources (Virtual Mem, Max no .of process, Core file size,..) available to any processes started by the shell. Except for -t, which is in seconds, -p, which is in increments of 512 bytes, and -u, which is an unscaled number of processes, all other values are in 1024-byte increments.

For example, if the maximum no. of user process is set to 5, then that user can’t run more then 5 process.

Examples :
$ ulimit -a -- Show All current limits. $ ulimit -n -- Show max open files limit. $ ulimit -t -- Show max CPU time limit. $ ulimit -c -- Show core file size. $ ulimit -c 6000 -- Set new core file size. $ ulimit -u 60 -- Set max no .of processes per user to 60. It will protect the system from shell booms.
Read : info bash

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: