Unable to increase open file limit

i’m following the docs here: https://wiki.archlinux.org/title/Limits.conf

and cat /etc/security/limits.conf prints (because i’ve changed it):

*		hard	nofile		64000
*		soft	nofile		64000

i’ve restarted the pc, and ulimit -Sn prints: 1024, and ulimit -Hn prints: 64000

not sure why softlimit is not updated to 64000

Usually I don’t hijack old threads but I had the same problem and found that a setting like

DefaultLimitNOFILE=64000

in /etc/systemd/user.conf solves the issue.