[Sugar-devel] poor man's mmap "sliding window" on Python 2.5.x

Daniel Drake dsd at laptop.org
Wed Jul 8 04:00:34 EDT 2009


On Wed, 2009-07-08 at 15:23 +1200, Martin Langhoff wrote:
> Had some time to retest this on the plane, and I think it was
> mis-diagnosis. The original code I was testing is lost. In re-testing
> this I find that the problem is more nuanced, and I may have been
> wrong: looking at 'top', the kernel does not appear very eager to
> discard old mapped pages.

You can probably influence this by marking the ranges that you're done
with with madvise().

Daniel




More information about the Sugar-devel mailing list