Am 01.09.2011, 22:43 Uhr, schrieb Vladimir Panteleev <[email protected]>:

On Thu, 01 Sep 2011 23:13:19 +0300, Marco Leise <[email protected]> wrote:

So I settled with the memory mapped version,

I wouldn't advise using memory-mapped files under the hood for anything without prior extensive testing in low-memory conditions. The kernel will be reluctant to drop pages in the file that have already been read/written. Some hinting APIs could be used, but these are not portable or reliable. (I recently had to rewrite one of my programs which used memory-mapped files with this as one of the reasons).

So cached data from memory-mapped files is not handled the same way that cache from normal reads/writes is handled? Good catch, I'll remember that.

Reply via email to