Re: JNA to avoid swap but physical memory increase

2011-07-18 Thread Daniel Doubleday
http://permalink.gmane.org/gmane.comp.db.cassandra.user/14225 but given https://issues.apache.org/jira/browse/CASSANDRA-2868 and me thinking 2 secs longer I guess it was the leaked native memory from gc inspector that has been swapped out. (I didn't believe that mlockall is broken but at that

Re: JNA to avoid swap but physical memory increase

2011-07-15 Thread Yang
btw just a reminder that even if jna + mlock works fine, with a large portion of physical memory locked by cassandra JVM, you won't get swapping with Cassandra, but you could possibly get swapping happening on other processes in the OS, On Fri, Jul 15, 2011 at 9:47 AM, Chris Burroughs wrote: > On

Re: JNA to avoid swap but physical memory increase

2011-07-15 Thread Chris Burroughs
On 07/15/2011 07:24 AM, Daniel Doubleday wrote: > Also our experience shows that the jna call does not prevent swapping so the > general advice is disable swap. Can you confirm you don't get the (paraphrasing) "whoops we tried mlockall but ulimits denied us" message on startup?

Re: JNA to avoid swap but physical memory increase

2011-07-15 Thread Peter Schuller
> Also our experience shows that the jna call does not prevent swapping so the > general advice is disable swap. That sounds extremely non-likely as it would imply the kernel fails to honor a successful mlockall(), unless other processes on the same machine are being swapped out. Did the process r

Re: JNA to avoid swap but physical memory increase

2011-07-15 Thread Daniel Doubleday
When using jna the mlockall call will result in all pages locked in rss and thus reported there so you have either configured -Xms650M or you are running on a small box and the start script calculated it for you. Also our experience shows that the jna call does not prevent swapping so the gener

Re: JNA to avoid swap but physical memory increase

2011-07-15 Thread Andrey Stepachev
Looks like mmaped files. 2011/7/15 Donna Li > ** > > All: > > I download JNA jar and put it to cassandra lib directory. When restart > cassandra server, I found the physical memory highly increase. There is no > data saved in cassandra, why so much memory used by cassandra? How can I > decre

JNA to avoid swap but physical memory increase

2011-07-15 Thread Donna Li
All: I download JNA jar and put it to cassandra lib directory. When restart cassandra server, I found the physical memory highly increase. There is no data saved in cassandra, why so much memory used by cassandra? How can I decrease the memory usage by cassandra? My version is 0.7.6-2. Befo