Comment on Optimizing Linux Memory Management for Low-latency, High-throughput DatabasesparentComments−apurvamehta12yThat would be true if we were using C++. Unfortunately, all our code is in Scala and we use Java NIO libraries to memory map our files. AFAIK, they don't give us the option on using these POSIX calls.−pquerna12yCassandra binds to posix_fadvise to do exactly this when writing out new SSTables:https://github.com/apache/cassandra/blob/trunk/src/java/org/...−apurvamehta12yWow.. that's great to know. We will definitely investigate this approach. Thanks for sharing! :)
Comments
That would be true if we were using C++. Unfortunately, all our code is in Scala and we use Java NIO libraries to memory map our files. AFAIK, they don't give us the option on using these POSIX calls.
Cassandra binds to posix_fadvise to do exactly this when writing out new SSTables:
https://github.com/apache/cassandra/blob/trunk/src/java/org/...
Wow.. that's great to know. We will definitely investigate this approach. Thanks for sharing! :)