I have a full up-to-date centos 7 machine where I want to increase the ulimit -n value to 256 (now is set to 100). This is the output of my ulimit -a
Code: Select all
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 14602
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 100
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 40
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
- setting the value via ulimit -n 256, which works for the root user but not for regular users
- editing the /etc/security/limits.conf file, which again has effect only for the root user
- editing the /etc/systemd/user.conf file, does not seem to have any effect
any suggestion on what is the correct procedure?