On Thu, May 6, 2010 at 1:06 PM, Weijun Li <weiju...@gmail.com> wrote:
> In this case using mmap will cause Cassandra to use sometimes > 100G virtual
> memory which is much more than the physical ram, since we are using random
> partitioner the OS will be busy doing swap.

mmap uses the virtual address space to reference bits on the disk; it
does *NOT* use physical or virtual memory to copy that data other than
perhaps any disk buffer cache from reading the file (which you would
have anyhow).  Your memory usage tools will report high memory usage
because they tell you how much virtual address space you have
allocated.

Reply via email to