[Mesa-dev] [PATCH 4/5] util/disk_cache: actually enforce cache size
Michel Dänzer
michel at daenzer.net
Wed Mar 15 07:37:38 UTC 2017
On 14/03/17 11:08 AM, Timothy Arceri wrote:
> From: Alan Swanson <reiver at improbability.net>
>
> Currently only a one in one out eviction so if at max_size and
> cache files were to constantly increase in size then so would the
> cache. Restrict to limit of 8 evictions per new cache entry.
>
> V2: (Timothy Arceri) fix make check tests
This still broke make check for me (on 64-bit):
FAIL: glsl/tests/cache-test
===========================
Failed to create ./cache-test-tmp/xdg-cache-home for shader cache (No such file or directory)---disabling.
Failed to create ./cache-test-tmp/mesa-glsl-cache-dir for shader cache (No such file or directory)---disabling.
Error: Test 'disk_cache_put eviction with MAX_SIZE=1K' failed: Expected=1, Actual=2
Error: Test 'eviction after overflow with MAX_SIZE=1M' failed: Expected=1, Actual=2
FAIL glsl/tests/cache-test (exit status: 1)
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list