4 ms·
Except they are and your claims are trivial to disprove: simply run the benchmarks under perf. You'll find that most of the time is spent on the rwsem which is
by SUPERCILEX 4y ago
Except they are and your claims are trivial to disprove: simply run the benchmarks under perf. You'll find that most of the time is spent on the rwsem which is described here onwards: https://www.kernel.org/doc/html/latest/filesystems/path-lookup.html#inode-i-rwsem https://www.kernel.org/doc/html/latest/filesystems/path-look...
- preseinger 4y agoyour benchmarks use O_DIRECT, which bypasses the fs cache the fs cache does most/all of the optimizations you're doing manually bypassing the fs cache is highly atypical for user-space code