How to set locked memory size to unlimited?

How does one set locked memory size to unlimited? It is normally done in /etc/security/limits.conf but this file does not exist in Clear Linux.

Most likely the same way as other distros, just create a valid file in /etc/security/limits.conf.

man limits.conf

Does this help?

https://lists.clearlinux.org/hyperkitty/list/dev@lists.clearlinux.org/thread/GFVR427AUE4JYGNIBC3JUKOUARTBK5W4/?sort=thread

1 Like

this required creating user.conf and system.conf exist in /etc/systemd
and populating them with:
[Manager]
DefaultLimitMEMLOCK=infinity