Just a message to say that this was really a cache size issue. After
more testing I have found that I have no more thumbnail being invalidated.

But while investigating the output of: darktable -d cache I found
something strange. It looks like there is a limit of 65536 slot in the
i0 cache.

Here are my experiments with different cache_memory settings:

>>>> cache_memory=536870912
[image_cache] has 262144 entries
[mipmap_cache_init] using low quality compression
[mipmap_cache_init] cache has     4 entries for temporary compression
buffers (
29.30 MB).
[mipmap_cache_init] cache has    64 entries for mip 3 ( 58.59 MB).
[mipmap_cache_init] cache has   256 entries for mip 2 ( 58.60 MB).
[mipmap_cache_init] cache has  1024 entries for mip 1 ( 58.61 MB).
[mipmap_cache_init] cache has  16384 entries for mip 0 ( 237.75 MB).

>>>> cache_memory=1024000000
[image_cache] has 262144 entries
[mipmap_cache_init] using low quality compression
[mipmap_cache_init] cache has     4 entries for temporary compression
buffers (
29.30 MB).
[mipmap_cache_init] cache has   128 entries for mip 3 ( 117.19 MB).
[mipmap_cache_init] cache has   512 entries for mip 2 ( 117.20 MB).
[mipmap_cache_init] cache has  2048 entries for mip 1 ( 117.22 MB).
[mipmap_cache_init] cache has  32768 entries for mip 0 ( 475.50 MB).

Ok, twice as many slot for mip 0.

>>>> cache_memory=2048000000
[image_cache] has 262144 entries
[mipmap_cache_init] using low quality compression
[mipmap_cache_init] cache has     4 entries for temporary compression
buffers (
29.30 MB).
[mipmap_cache_init] cache has   256 entries for mip 3 ( 234.38 MB).
[mipmap_cache_init] cache has  1024 entries for mip 2 ( 234.39 MB).
[mipmap_cache_init] cache has  4096 entries for mip 1 ( 234.44 MB).
[mipmap_cache_init] cache has  65536 entries for mip 0 ( 951.00 MB).

Ok, twice as many slot for mip 0.

>>>> cache_memory=4096000000
[image_cache] has 262144 entries
[mipmap_cache_init] using low quality compression
[mipmap_cache_init] cache has     4 entries for temporary compression
buffers (
29.30 MB).
[mipmap_cache_init] cache has   256 entries for mip 3 ( 234.38 MB).
[mipmap_cache_init] cache has  1024 entries for mip 2 ( 234.39 MB).
[mipmap_cache_init] cache has  4096 entries for mip 1 ( 234.44 MB).
[mipmap_cache_init] cache has  65536 entries for mip 0 ( 951.00 MB).

Hum, blocked at 65536! Is that a know issue? Is that the overflow you
were talking about in a previous message?

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to