incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arya Goudarzi <agouda...@gaiaonline.com>
Subject Re: using jna.jar "Unknown mlockall error 0"
Date Thu, 28 Oct 2010 20:06:31 GMT
In this case should one set ulimit -l to the amount of heap size?

Thanks,
-Arya Goudarzi

----- Original Message -----
From: "Peter Schuller" <peter.schuller@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

Mime
View raw message