What Is File System Cache in Linux?
Contents the File System Cache Holds Data That Was Recently Read from the Disk, Making It Possible for Subsequent Requests to Obtain Data from Cache Rather...
Contents
The file system cache holds data that was recently read from the disk, making it possible for subsequent requests to obtain data from cache rather than having to read it again from the disk.
What is cache in Linux?
Under Linux, the Page Cache accelerates many accesses to files on non volatile storage. This happens because, when it first reads from or writes to data media like hard drives, Linux also stores data in unused areas of memory, which acts as a cache.
Must Read
How do I clear filesystem cache in Linux?
How to Clear Cache in Linux?
- Clear PageCache only. # sync; echo 1 > /proc/sys/vm/drop_caches.
- Clear dentries and inodes. # sync; echo 2 > /proc/sys/vm/drop_caches.
- Clear PageCache, dentries and inodes. # sync; echo 3 > /proc/sys/vm/drop_caches. …
- sync will flush the file system buffer.
6 июн. 2015 г.