You are not logged in.

#1 2015-02-26 16:41:59

sandric
Member
From: Ukraine, Dnipropetrovsk
Registered: 2011-03-22
Posts: 15

What's the default values of ulimit?

Hi, I wan't to check if my ulimit values are normal, and not affected by any other config by mistake. Can I do it somehow? I mean where does ulimit takes it default values? Some answers over internet say its /etc/security/limits.conf, but I do not see there no config info. Here's my ulimit -a if anyone can say there's smth wrong will be appreciated:

Maximum size of core files created                           (kB, -c) 0
Maximum size of a process’s data segment                     (kB, -d) unlimited
Maximum size of files created by the shell                   (kB, -f) unlimited
Maximum size that may be locked into memory                  (kB, -l) unlimited
Maximum resident set size                                    (kB, -m) unlimited
Maximum number of open file descriptors                          (-n) 1024
Maximum stack size                                           (kB, -s) 8192
Maximum amount of cpu time in seconds                   (seconds, -t) unlimited
Maximum number of processes available to a single user           (-u) 31677
Maximum amount of virtual memory available to the shell      (kB, -v) unlimited

Offline

#2 2015-02-26 16:55:42

EscapedNull
Member
Registered: 2013-12-04
Posts: 129

Re: What's the default values of ulimit?

/etc/security/limits.conf comes with the "pam" package, so you should have one, even if everything in it is commented out. I don't think defaults are defined anywhere, but I assume that the ones you posted are the defaults for your system if you didn't override them. Those values seem reasonable. Note that setting core files to zero disables core dumps (usually a good thing), and you might want to increase your number of open file descriptors, perhaps to 10,000 or so for your own user. Also note that even the fields set to "unlimited" are still restricted by the global limits, usually set using sysctl(8), and of course your hardware in some cases. Unless you run into problems (usually processes being sent SIGKILL, unable to open files, unable to allocate memory, etc), then those values should be fine. You may lower them as you see fit to prevent users from hogging resources too, if necessary.

Offline

#3 2015-02-26 17:28:56

sandric
Member
From: Ukraine, Dnipropetrovsk
Registered: 2011-03-22
Posts: 15

Re: What's the default values of ulimit?

ok, thanks, EscapedNull.

Offline

Board footer

Powered by FluxBB