I'm on **openSUSE Leap 15.6 x86_64, kernel 6.4.0-150600.23.25-default**. My open files software ulimit is set to very low 1024. While this was never big issue on Debian based systems I have hard time figuring out OpenSUSE way to increase it permanently.
ulimit -Sn 10240
changes it temporarily and I could enter it probably somewhere **bashrc** but I would like more clean way.
I'm wondering why this doesn't work:
**/etc/security/limits.conf:**
#
#
* soft nofile 65535
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
The **/etc/sysctl.conf** as well as **/etc/sysctl.d/** are all commented.
The **/etc/pam.d/login** contains:
session include common-session
and **/etc/pam.d/common-session** contains:
session required pam_limits.so
Despite that limits are not applied per my configuration or overridden somewhere else. Hardware limit is 524288 so bigger than above 65535
Also:
cat /proc/1/cmdline
/usr/lib/systemd/systemd--switched-root--system--deserialize=32(base) n
Asked by nusch
(61 rep)
Nov 10, 2024, 07:26 PM