Leveldb limit testing - limit Memory used by a program
<p>I'm currently benchmarking an application built on Leveldb. I want to configure it in such a way that the key-values are always read from disk and not from memory.<br>
For that, I need to limit the memory consumed by the program.<br>
I'm using key-value pairs of 100 bytes each and 100000 of them, which makes their size equal to 10 MB. If I set the virtual memory limit to less than 10 MB using ulimit, I can't even run the command <code>Makefile</code>.   </p>

<p>1) How can I configure the application so that the key value pairs are always fetched from the disk?</p>

<p>2) What does ulimit -v mean? Does limiting the virtual memory translate to limiting the memory used by the program on RAM?</p>