[openib-general] README file for user-verbs access (increase memlock in /etc/security/limits.conf)

Bob Woodruff robert.j.woodruff at intel.com
Wed Jun 1 16:36:34 PDT 2005


 Hi Roland,

Now that this code has been added to ib_umem_get,

        locked     = npages + current->mm->locked_vm;
        lock_limit = current->signal->rlim[RLIMIT_MEMLOCK].rlim_cur >>
PAGE_SHIFT;

        if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) {
                ret = -ENOMEM;
                goto out;
        }

If there is a readme (how to) file on the user-mode verbs, might want to
tell people that to use user-mode verbs, they will need to get their
system administrator to increase the default value of memlock in
/etc/security/limits.conf

By default, RedHat EL4.0 for example, limits it to 32K, which is not
particulatly useful and they will likely get the ENOMEM error returned when
trying to register memory. 

woody




More information about the general mailing list