Why add anything?
Posted Mar 30, 2007 23:19 UTC (Fri) by
giraffedata (subscriber, #1954)
In reply to:
Why add anything? by mjr
Parent article:
Application-friendly kernel interfaces
I can see the value of using mmap() for this, but I don't think you want mmap() guessing based on the size of the request what page size is best.
It's quite possible that 16M of memory will consist of 100 scattered 4K pages of working set and the rest rarely used or even vacant. You wouldn't want to page the whole 16M in and out in that case.
Page granularity seems like a perfectly sensible parameter of an mmap, though.
(
Log in to post comments)