Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't seem to find something in the documentations. Is it possible to set the cache size for fuse and/or sshfs and if so, how?

share|improve this question
up vote 1 down vote accepted

By default, sshfs caches things for 20 seconds, use -o cache_timeout=N to change the default cache timeout (in seconds) or -o cache=no for disabling the cache.

You can also control cache timeouts for directory listing etc with -o cache_stat_timeout=N, -o cache_dir_timout=N, and -o cache_link_timout=N.

also u can use system-wide cache

-o kernel_cache

share|improve this answer
shfsmount user@host /mnt/shfs -o cachesize=256 does not work with sshfs :) It's for shfs not for sshfs. – Jan Deinhard Jul 25 '11 at 12:23
sorry) so u have use kernel cache and system-wide settings or use timeouts. – arheops Jul 25 '11 at 12:30
maybe u can use FS-Cache / CacheFS over sshfs to do cache &turn off sshfs cache.sorry, not tried that. see this article – arheops Jul 25 '11 at 12:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.