forked from cvmfs/cvmfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of cache cleanup (cvmfs#3551)
Currently, during eviction, the cache database is processed entry-by-entry with (usually) two SQL queries per entry (select + remove). This PR changes the processing to batch selection (1000 entries per batch) and a single remove call per cache cleanup. The unit tests show a drastic improvement for 50000 entries from a few 100ms to <1ms. Fixes cvmfs#3491 * use large number of entries in quota mgr unit test * split PosixQuotaManager::DoCleanup() in two methods * load objects to be evicted from cache in batches * remove entries from cache db in batches
- Loading branch information
Showing
3 changed files
with
160 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.