In this case should one set ulimit -l to the amount of heap size?

Thanks,
-Arya Goudarzi

----- Original Message -----
From: "Peter Schuller" <peter.schul...@infidyne.com>
To: user@cassandra.apache.org
Sent: Saturday, October 9, 2010 1:18:28 AM
Subject: Re: using jna.jar "Unknown mlockall error 0"

> IIRC, mlockall doesn't work as a non root user on Linux.

Memory locking is permitted for non-root on modern Linux, but is
subject to resource limitations (ulimit -l). I believe this also
applies to mlockall() (and not just mlock()), provided that you lock
MCL_CURRENT rather than MCL_FUTURE (Cassandra does the former).

-- 
/ Peter Schuller

Reply via email to