Editing ulimit variables permanently

If you want to edit ulimit variables that return with the ulimit -a command:

You can do it temporarily from the command line with the ulimit command, but to make it permanent, you have to put the change in /etc/security/limits.conf. The difficulty is determining the correct format. For pending signals, for example, I couldn’t find an example.

It works for me when I add this:

* soft sigpending 2103295
* hard sigpending 2103295

I then logout and back in and test with the ulimit command:

[root@ridus357 ~]# ulimit -a |grep sig
pending signals (-i) 2103295

Since they are not easy to find, I am listing them here:

core – limits the core file size (KB)
data – max data size (KB)
fsize – maximum filesize (KB)
memlock – max locked-in-memory address space (KB)
nofile – max number of open files
rss – max resident set size (KB)
stack – max stack size (KB)
cpu – max CPU time (MIN)
nproc – max number of processes
as – address space limit (KB)
maxlogins – max number of logins for this user
maxsyslogins – max number of logins on the system
priority – the priority to run user process with
locks – max number of file locks the user can hold
sigpending – max number of pending signals
msgqueue – max memory used by POSIX message queues (bytes)
nice – max nice priority allowed to raise to values: [-20, 19]
rtprio – max realtime priority

About vicki

Welcome to the Sovereign Republic of Vickistan. I am the President here. Lucky me! No taxes or laws yet. Lucky you!
This entry was posted in Linux. Bookmark the permalink.