Re: using jna.jar "Unknown mlockall error 0"

2010-10-28 Thread Peter Schuller
> In this case should one set ulimit -l to the amount of heap size? Yes, or under the assumption that you're running Cassandra dedicated and are not worried about enforcement- just set it to unlimited or just very high to avoid having to change it if you change the heap size in the future. -- /

Re: using jna.jar "Unknown mlockall error 0"

2010-10-28 Thread Arya Goudarzi
In this case should one set ulimit -l to the amount of heap size? Thanks, -Arya Goudarzi - Original Message - From: "Peter Schuller" To: user@cassandra.apache.org Sent: Saturday, October 9, 2010 1:18:28 AM Subject: Re: using jna.jar "Unknown mlockall error 0" >

Re: using jna.jar "Unknown mlockall error 0"

2010-10-09 Thread Peter Schuller
> 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 (Cass

Re: using jna.jar "Unknown mlockall error 0"

2010-10-08 Thread Robert Coli
On 10/8/10 10:13 AM, Clint Byrum wrote: 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. Do you mean.. https://issues.apache.

Re: using jna.jar "Unknown mlockall error 0"

2010-10-08 Thread Clint Byrum
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 ju

Re: using jna.jar "Unknown mlockall error 0"

2010-10-08 Thread Utku Can Topçu
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 wrote: > If I'm not wrong, when I run cassandra as root I don't get that mlockall > erro

Re: using jna.jar "Unknown mlockall error 0"

2010-10-08 Thread Nicolas Mathieu
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 > wrote: Hi, In order to cont

Re: using jna.jar "Unknown mlockall error 0"

2010-10-08 Thread Utku Can Topçu
I'm running an Ubuntu 9.10 linux box. On Fri, Oct 8, 2010 at 11:33 AM, Roger Schildmeijer wrote: > > > On Fri, Oct 8, 2010 at 11:27 AM, Utku Can Topçu 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 l

Re: using jna.jar "Unknown mlockall error 0"

2010-10-08 Thread Roger Schildmeijer
On Fri, Oct 8, 2010 at 11:27 AM, Utku Can Topçu 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-

using jna.jar "Unknown mlockall error 0"

2010-10-08 Thread Utku Can Topçu
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