Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Does du or df perform caching?

There is no need for caching in df as df does a single statfs() call (per filesystem). And obviously this call does read files on disk and sum up their sizes... The filesystems (e.g. the kernel) keep track of the free space.

du uses (without being aware of that) the page cache all applications use. In order to cache explicitly between runs there would have to be a "du daemon" anyway.

Tags:

Filesystems

Files

Disk Usage

Related

Why would someone want to run UserMode Linux (UML) Negative lookbehind/ahead assertions in Linux less pager (or vim) How can I get my PS1 prompt to show time, user, host, directories and git branch Blocking Websites with /etc/hosts What are the benefits of using several IP addresses on a server? Merging folders with mv? qtconfig tool for Qt 5? How to make traceroute trace beyond 30 hops? Default stack size for pthreads Terminate dropped SSH sessions Why does the filename contain question marks when I run a script on my remote machine? Conceptual difference between Linux and (Free)BSD Kernel

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy