[Mesa-dev] [PATCH 1/3] winsys/radeon: Use separate caching buffer manager for each set of flags
Michel Dänzer
michel at daenzer.net
Thu Oct 16 00:01:24 PDT 2014
On 15.10.2014 20:24, Marek Olšák wrote:
> With so many cache managers, memory usage might be a bigger problem.
>
> Usually when a cache manager fails to allocate a new buffer, it clears
> the cache and tries again. This is not so useful when there are a lot
> of them, because the other managers aren't cleared.
>
> A cache manager also has a limit on how large the cache can be to
> prevent the cache from taking too much memory. Again, with several
> cache managers, this becomes useless.
>
> Finally, buffers are released from the cache during buffer_create and
> buffer_destroy, so the managers really need to receive those 2 calls
> regularly. If a cache manager is unused for a while, the cache won't
> be cleared and it will occupy memory with old and unused buffers that
> could otherwise be freed.
That all makes sense. It turned out to be easier than I expected to use
a single cache manager. :)
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list