Здравствуйте, я пытаюсь увеличить файловые дескрипторы на виртуальном частном сервере под управлением Ubuntu 14.04.
Что я сделал до сих пор:
1) поднял fs.file-max в sysctl.conf
2) добавили следующую строку в /etc/pam.d/common-session и /etc/pam.d/common-session-noninteractive:
session required pam_limits.so
3) добавил следующие строки в /etc/security/limits.conf:
* hard nofile 30000
* soft nofile 30000
root hard nofile 30000
root soft nofile 30000
К сожалению, даже после перезапуска я получаю те же значения, что и раньше:
root@vps1:~# ulimit -Sn
1024
root@vps1:~# ulimit -Hn
4096
root@vps1:~# ulimit -n
1024
Я посмотрел в /var /log /dmesg и /var/log/kern.log и не смог ничего найти. Но в systemd-logind.log я нахожу это:
/proc/self/fd/9: 4: ulimit: error setting limit (Invalid argument)
Watching system buttons on /dev/input/event0 (Power Button)
New seat seat0.
/proc/self/fd/9: 4: ulimit: error setting limit (Invalid argument)
Watching system buttons on /dev/input/event0 (Power Button)
New seat seat0.
/proc/self/fd/9: 4: ulimit: error setting limit (Invalid argument)
Watching system buttons on /dev/input/event0 (Power Button)
New seat seat0.
Процесс с pid = 9 выглядит как "rcuos":
root@vps1:~# ps -aux | grep rcuos
root 9 0.2 0.0 0 0 ? S 03:55 0:32 [rcuos/0]
root 18 0.1 0.0 0 0 ? S 03:55 0:20 [rcuos/1]
root 4525 0.0 0.0 8872 944 pts/0 S+ 07:54 0:00 grep --color=auto rcuos
Что попробовать дальше?