# Vfs cache performance problems

**URL:** <https://forum.rclone.org/t/vfs-cache-performance-problems/28198>\
**Category:** Help and Support\
**Created:** [December 25, 2021, 6:43pm UTC](https://forum.rclone.org/t/vfs-cache-performance-problems/28198 "2021-12-25T18:43:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [December 25, 2021, 6:56pm UTC](https://forum.rclone.org/t/vfs-cache-performance-problems/28198/2 "2021-12-25T18:56:13Z")

</div>

> [@Inuakio](#):
>
> when i do `ls -R` to the mounted directory it takes a quite a long time

as you might know, rclone has two caches.  
one cache, vfs file cache, to store chunks of files.  
one cache, vfs dir cache, to store the dir/file names

this might be a helpful summary  
[https://forum.rclone.org/t/status-about-using-rclone-for-music-storage-playback-in-2021-access-times-improved/27648/34](https://forum.rclone.org/t/status-about-using-rclone-for-music-storage-playback-in-2021-access-times-improved/27648/34)

you can `prime` or pre-load the vfs dir cache, which can be useful, before a media server scan.  
`rclone rc vfs/refresh recursive=true`  
so if you do a `ls -R` on the mount, should be much faster.

---

_[View the full topic](https://forum.rclone.org/t/vfs-cache-performance-problems/28198)._
