On Mon, 22 Jun 2009 14:59:55 +0200 Joerg Sonnenberger <[email protected]>
said:

> On Sat, Jun 20, 2009 at 09:25:59PM +1000, Carsten Haitzler wrote:
> > > Is it really usefull to unmap ? can't we trust the kernel to drop it
> > > when under presure ?
> > 
> > unmapping should help give a hint... it also looks better in top/ps :)
> 
> The first part is already done by using madvise. It doesn't forcefully
> trash the VM space though.

neither does munmap() - it sits in cache. (as it does when mmaped()). but it
looks better when looking at mem footprint and provides an extra hint to the
kernel - if mapped, the kernel can assume that at some point you may need the
data - when not mapped, it can just put it in speculative cache and forget
about it.

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to