How to change default memlock limit in gnome/desktop
Issue
- I want to run an application that communicates via Infiniband. It is aborting with an
MPI_Init: ibv_create_cq() failed 4, Can't initialize RDMA device
error due to a memlock limit to low. -
Even if I increase the limit in /etc/security/limits.d/rdma.conf, the change does not reflect when executing
ulimit
ingnome-shell
orkonsole
:$ cat /etc/security/limits.d/rdma.conf # configuration for rdma tuning @rdma soft memlock unlimited @rdma hard memlock unlimited #rdma tuning end $ ulimit | grep locked max locked memory (kbytes, -l) 64
Environment
- Red Hat Enterprise Linux 7,8
- ulimit
- systemd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.