1

Following this question

I can reproduce that the first time I execute a du of a directory it takes longer than if I do it just after.

Where is this caching happening? How can I clean it? I would like to perform some performance tests about the time a directory is taking on giving its size by executing time du -sh /home/user/directory

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
Zumo de Vidrio
  • 1,703
  • 1
  • 13
  • 28
  • 1
    Relative answer to your question you could find at: https://unix.stackexchange.com/questions/8485/how-to-cache-or-otherwise-speed-up-du-summaries Found that there is option to drop Filesystem cache at: proc/sys/vm/drop_caches – Miloš Stojanović Jun 30 '20 at 13:55

0 Answers0