Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chimera: drop nlink ref count for directory tags
Motivation: To remove unused directory tags chimera keeps ref count (nlink) of tags. This approach creates a 'hot' record that serializes all updates to given top level tag. However, a simple query by tagId can be used to find out are there any other references. Modification: Use conditional DELETE with query on t_tags. Drop nlink ref count tracing. Result: Better directory creation throughout (x3). 64 threads creating sub-directories in different directories (to avoid hot parent inode) that inherite the same tag. Benchmark (ref) Mode Cnt Score Error Units CreateBenchmark.benchmarkCreateDir nlink thrpt 21 220.353 ± 41.578 ops/s CreateBenchmark.benchmarkCreateDir new code thrpt 25 653.666 ± 36.616 ops/s Acked-by: Paul Millar Target: master Require-book: no Require-notes: yes
- Loading branch information
Showing
5 changed files
with
52 additions
and
137 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
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
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