incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schuller <peter.schul...@infidyne.com>
Subject Re: mmap
Date Fri, 16 Jul 2010 06:47:08 GMT
> This would require that Cassandra run as root on Linux systems, as 'man mlockall' states:

IIRC, mlock() (as opposed to mlockall()) does not require root
privileges - but is subject to resource limitations.

However, given a lack of control of how memory is allocated in the JVM
I suppose mlock() is probably not very useful.

> http://andrigoss.blogspot.com/2008/02/jvm-performance-tuning.html
>
> Basically when mmapping using HUGETLB you don't have to be root, but your memory ends
up being effectively locked, so that would prevent the swapping, and might have the added
bonus of slightly faster memory allocation/access.

Very nice, especially since it doesn't require native code/tricks. I
imagine the need for contiguous space could be a practical annoyance
though. Has anyone tried this specifically with cassandra?

-- 
/ Peter Schuller

Mime
View raw message