cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clint Byrum <cl...@ubuntu.com>
Subject Re: using jna.jar "Unknown mlockall error 0"
Date Fri, 08 Oct 2010 17:13:04 GMT
IIRC, mlockall doesn't work as a non root user on Linux.

We had a discussion a while back about using the jvm's support for Huge Pages to get around
that limitation a while back, but I don't recall where that went.

On Oct 8, 2010, at 2:53 AM, Utku Can Topçu wrote:

> Thanks Nicolas,
> 
> I've just tried it as running root and the warning did not show up.
> 
> Do we need to run cassandra as root in order to use JNA?
> 
> Regards,
> Utku
> 
> On Fri, Oct 8, 2010 at 11:45 AM, Nicolas Mathieu <nico008@gmail.com> wrote:
> If I'm not wrong, when I run cassandra as root I don't get that mlockall error 0.
> Maybe there is another solution anyway.
> 
> nico008
> 
> 
> 
> On 08/10/2010 11:33, Roger Schildmeijer wrote:
>> 
>> 
>> On Fri, Oct 8, 2010 at 11:27 AM, Utku Can Topçu <utku@topcu.gen.tr> wrote:
>> Hi,
>> 
>> In order to continue on memory optimizations, I've been trying to use the JNA. However,
when I copy the jna.jar to the lib directory? I get the warning. I'm currently running the
0.6.5 version of cassandra.
>> 
>> WARN [main] 2010-10-08 09:16:18,924 FBUtilities.java (line 595) Unknown mlockall
error 0
>> 
>> Return value == 0 usually indicates that the operation returned successfully (atleast
on most moden POSIX systems). What OS are you using?  
>> 
>> Should I be worried about this warning, in case JNA might not be working?
>> 
>> Regards,
>> Utku
>> 
>> 
>> WBR 
>> Roger Schildmeijer 
> 
> 


Mime
View raw message