Hi, I’m having a bit of a hard time getting ulimit adjusted in Fedora 32
I added four folders user@1000.service.d, gdm.service.d, gnome-shell-wayland.service.d, and gnome-terminal-server.service.d to /etc/systemd/system/
In user@1000.service.d and gdm.service.d is a single file limits.conf with the line
[Service]
LimitNOFILE=4194304
The other two folders have a similiar file but with higher limits.
I also edited /etc/systemd/system.conf and /etc/systemd/user.conf and changed DefaultLimitNOFILE to DefaultLimitNOFILE=4194304.
In /etc/security/limits.conf, I added
# More files
* soft nofile 4194304
* hard nofile 4194304
In /etc/pam.d/login, I added
session required pam_limits.so
The machine is then restarted.
The issue is that typing ulimit -Sn or ulimit -Hn in a gnome-shell still shows a soft limit of 1024 and hard limit of 1048576. Indeed systemctl show | grep NOFILE
shows
DefaultLimitNOFILE=1048576
DefaultLimitNOFILESoft=1024
What am I missing? systemctl show user@1000.service | grep NOFILE
reports
LimitNOFILE=4194304
LimitNOFILESoft=4194304
Same for systemctl show gdm.service | grep NOFILE
which reports
LimitNOFILE=4194304
LimitNOFILESoft=4194304
Nothing I launch from gnome-shell inherits the increased limit…All of them take the defaultlimit, which should have been increased from editing the system.conf and user.conf under /etc/systemd/…