forked from cloud-hypervisor/fuse-backend-rs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
passthroughfs: add config to specify entry and attr timeout for dir
For AI training workloads, APP reads large number of files from dataset and only reads them once. So entry and attr cache for such files are not needed, and large number of cached entry will make InodeMap bigger and bigger, and make InodeMap re-allocate its memory over and over again, which hits performance. On the other hand, the entry cache for dir is very helpful. But entry_timeout and attr_timeout will set the same timeout value for both dirs and regular files. So introduce 'dir_entry_timeout' and 'dir_attr_timeout' config options to config dir entry/attr separately. So that we could use cache=none (which indicates entry/attr timeout as 0 and bypass guest pagecache to avoid massive memory copy) and set dir_entry_timeout and dir_attr_timeout as none-zero to cache dirs. Signed-off-by: Eryu Guan <[email protected]>
- Loading branch information
Showing
1 changed file
with
108 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