[Spice-devel] Questions about image cache (in server/red_worker.c)

Yonit Halperin yhalperi at redhat.com
Wed May 18 23:18:07 PDT 2011


Hi,
you are not looking at the right cache. THe right cache is 
red_client_shared_cache.h  (shared among multiple monitors; doesn't 
store images, only ids).
The cached you looked at is the cache of the canvas.

Cheers,
Yonit.

On 05/18/2011 10:54 AM, Yaniv Kaul wrote:
> I suspect the image caching in the server is not the greatest:
> 1. Using latest Fedora 15 and QXL driver, I don't see any image being
> cached - at all.
> 2. Using XP with latest QXL driver, I do see some caching activity, but
> I suspect:
> - the cache is limited to 2(!) items only (as IMAGE_CACHE_MAX_ITEMS is 2)
> - even if we fix the above (so IMAGE_CACHE_MAX_ITEMS is
> 2*IMAGE_CACHE_HASH_SIZE for example) there will be, many times, slot
> collisions. May or may not be such a big deal, depends how much we
> really think we'll be caching.
> - we are not caching that many images anyway. I expected with the above
> change to have a lot more images cached. I suspect the driver does not
> send many images for caching to the server for some reason.
>
>
> All that I've done to gather the above is sprinkle some red_printf()'s
> after reading the code:
>



More information about the Spice-devel mailing list