Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/cache: periodically drop mutex during EvictFile
We've observed significant block cache mutex contention originating from EvictFile. When evicting a file with a significant count of blocks currently held within the block cache, EvictFile may hold the block cache shard mutex for a long duration, increasing latency for requests that must access the same shard. This commit periodically drops the mutex to provide these other requests with an opportunity to make progress. Informs cockroachdb#1997.
- Loading branch information