[ZODB-Dev] blobs missing with relstorage and small blob cache dir

Martijn Pieters mj at zopatista.com
Mon Feb 28 11:29:10 EST 2011


On Mon, Feb 28, 2011 at 17:09, Maurits van Rees
<m.van.rees at zestsoftware.nl> wrote:
> That works: the blobs stay.  But then it looks like the blob cache size
> is only checked once when starting up the zope instance.  For example
> with a blob cache size of 100,000 bytes and two images of about 65K and
> one of about 1MB, I don't see any blobs getting removed from the cache
> while visiting those images or pages that show them.

There is a cache cleanup run during transaction vote as well, but it
looks like that only is applied when there are blob changes to commit.

But we've now at least established that the cache cleanup in
RelStorage is to blame here, so we can focus on
_check_blob_cache_size, specifically on line 490 and further.

-- 
Martijn Pieters


More information about the ZODB-Dev mailing list