Files
mesa/src
Timothy Arceri f58e6fee74 util/disk_cache: delete more cache items in one go when full
Currently the cache just deletes enough items when the cache is
full to make room for the new item being stored. This hasn't
been too much of a problem in practice but for things like running
piglit where we have thousands of unique shaders and all threads
being utilised we end up with a pretty big bottle neck.

With this change rather than just brute forcing our way to having
enough room for the new item, we instead grab 10% of the least
recently used items in the random directory we chose and delete
them all. This should only be around 0.04% of total cache items
but should hopefully releave some of the pressure on system calls
like fstatat().

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11523>
2021-06-30 07:44:44 +00:00
..
2021-06-24 13:49:40 +00:00
2021-06-29 10:28:34 +00:00
2021-06-19 19:34:20 +00:00
2021-06-29 23:27:28 +00:00
2021-03-20 10:38:55 +00:00
2021-01-09 20:51:35 -06:00
2021-06-29 23:27:28 +00:00
2021-01-11 22:45:01 +00:00
2021-05-18 14:28:48 +00:00