[Sugar-devel] poor man's mmap "sliding window" on Python 2.5.x
Benjamin M. Schwartz
bmschwar at fas.harvard.edu
Mon Jul 6 17:16:48 EDT 2009
Martin Langhoff wrote:
> On Tue, Jul 7, 2009 at 2:06 AM, Benjamin M.
> Schwartz<bmschwar at fas.harvard.edu> wrote:
>> Is this (a) a kernel bug, (b) Python layering extra caching over mmap, or
>> (c) a misunderstanding of mmap on my part?
>
> money is b
huh. I looked through python's mmap implementation [1] and there doesn't
seem to be any caching or funny business going on.
I wonder if it could be over-aggressive caching somewhere in jffs2, in an
attempt to avoid repeatedly decompressing the same block.
--Ben
[1] http://svn.python.org/projects/python/trunk/Modules/mmapmodule.c
P.S. JFFS2 appears to support read-only mmap, which I presume is what
you're using.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.laptop.org/pipermail/devel/attachments/20090706/ef137a0a/attachment.sig>
More information about the Devel
mailing list