[openib-general] ulimit -l and ibv_reg_mr

Roland Dreier rolandd at cisco.com
Fri Jul 15 08:26:04 PDT 2005


    Galen> Hello all, I am using ibv_reg_mr to register memory, if I
    Galen> attempt to register anything over what ulimit -l reports
    Galen> (32K) then ibv_reg_mr returns null and errno says Cannot
    Galen> allocate memory. I don't have root access so I can't do
    Galen> ulimit -l to increase my memlimit.

This is by design: the administrator has set a limit on the amount of
memory you can pin.  Registering memory for IB verbs requires pinning
the memory, and so you cannot register more memory than you are
allowed to pin.

    Galen> What is the workaround for this issue? Modifying
    Galen> /etc/security/limits.conf? If so, I am using ssh to login
    Galen> remotely to the system is there still an issue with
    Galen> /etc/security/limits.conf and ssh as described in:
    Galen> http://www.mail-archive.com/openib-general@openib.org/msg06442.html

If you follow the link to redhat bugzilla in that message you can find
a workaround in comment #3.  However, modifying
/etc/security/limits.conf and so on will require root access.

    Galen> One last thing, what are the future plans regarding
    Galen> registering memory and memlimits?

I don't have any plans to change the behavior, as I believe it is
correct right now.

 - R.



More information about the general mailing list