add readdir caching

This commit is contained in:
Antonio SJ Musumeci 2019-05-22 21:40:45 -04:00
parent bac4b33ef8
commit 2323c16316
11 changed files with 87 additions and 52 deletions

View file

@ -241,6 +241,8 @@ parse_and_process_cache(Config &config_,
return (set_kv_option(outargs,"attr_timeout",value_),0);
else if(func_ == "symlinks")
return parse_and_process(value_,config_.cache_symlinks);
else if(func_ == "readdir")
return parse_and_process(value_,config_.cache_readdir);
return 1;
}
@ -395,6 +397,8 @@ usage(void)
" -o cache.negative_entry=<int>\n"
" negative file name lookup cache timeout in\n"
" seconds. default = 0\n"
" -o cache.readdir=<bool>\n"
" enable kernel caching readdir (if supported)\n"
" -o direct_io Bypass page caching, may increase write\n"
" speeds at the cost of reads. Please read docs\n"
" for more details as there are tradeoffs.\n"