14
rated 0 times
[
14]
[
0]
/ answers: 1 / hits: 28831
/ 3 Years ago, tue, june 1, 2021, 1:29:07
In my Ubuntu 20.04 I see 8.7 GB Memory cache in system monitor. Can I clear this, what is the best way to do so?
More From » 20.04
In my Ubuntu 20.04 I see 8.7 GB Memory cache in system monitor. Can I clear this, what is the best way to do so?
There is no need for this unless you are bench marking. It will slow the system for a few seconds while every resource is again loaded into the disk-cache.
To clear RAM Memory Cache (or page cache) ...
sudo -i
sync; echo 1 > /proc/sys/vm/drop_caches
Page cache
The page cache contains any memory mappings to blocks on disk. That could be buffered I/O, memory mapped files, paged areas of executables.