How to change default memlock limit in gnome/desktop

Solution Verified - Updated -


  • 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 in gnome-shell or konsole:

    $ 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


  • 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content