forked from mar-file-system/GUFI
-
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.
Use fstatat(2) for gufi_dir2index and gufi_dir2trace
Pathname resolution has a significant overhead during GUFI indexing. Using the _at variant of stat(2) when processing files means less work is required to resolve the paths. Profiling GUFI runs with flamegraphs suggests that this is an effective change to reduce the overhead of pathname resolution. I observed the time spent resolving names go from ~ 14% using lstat(2) down to ~ 6% using fstatat(2), in one example run on an NFS filestystem with approx. 450,000 files.
- Loading branch information
1 parent
ccc35d6
commit dd2fb81
Showing
4 changed files
with
22 additions
and
3 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