Tag Info

New answers tagged

0

In order to show you a directory, these file managers need to at least scan the list of file names in the directory and the file types and other metadata. These are the same calls that ls -l makes. In addition, some file managers may inspect the contents of the file to give you more precise information about what's in them, like the file utility. They may ...


1

It's actually scanning the list of files that's slow. Something like this should do: find /home >/dev/null & That is, it will pre-cache the files in /home. But it will keep your disk busy for a while, it will cache both interesting and uninteresting subdirectories, and some subdirectories might still be purged from cache before you actually need ...


1

That depends on what kvm version and what flavour you run. See e.g. https://www.suse.com/documentation/sles11/book_kvm/data/sect1_1_chapter_book_kvm.html where it says: cache mode unspecified In qemu-kvm versions older than v1.2 (eg SLES11 SP2), not specifying a cache mode meant that writethrough would be used as the default. ...


0

The problem appears to be timing between init restarting the process and the page cache being dropped. Instead of issuing kill -9 <pid> && echo 3 > /proc/sys/vm/drop_caches, the proper sequence appears to be the following. stop <service> echo 3 > /proc/sys/vm/drop_caches start <service> Once the service is stopped, the ...


2

Writing a 1 to drop_caches only drops the ( data ) cache. The 3 also drops the dentry cache, or cache of names of files on the disk. If you had recently been working with directories containing many small files, that would account for it.



Top 50 recent answers are included