Docker memory usage and how processes running inside containers see it?

echo 3 | sudo tee /proc/sys/vm/drop_caches comes in three flavors 1,2,3 aka as levels of cache.

Dropping or clearing them might have unexpected effects depending on the level.

On linux you might want to try this:
https://unburden-home-dir.readthedocs.io/en/latest/

The magic comes from the simple idea not to store and make live everything inside your home directory.

App cache is also taken into consideration here:
https://readme.phys.ethz.ch/linux/application_cache_files/

Just " Look through /etc/unburden-home-dir.list and either uncomment what you need globally and/or copy it to either ~/.unburden-home-dir.list or ~/.config/unburden-home-dir/list and then edit it there for per-user settings."

1 Like