Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
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?


enter image description here


More From » 20.04

 Answers
1

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.



[#1660] Tuesday, June 1, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arkcker

Total Points: 296
Total Questions: 111
Total Answers: 104

Location: Nepal
Member since Tue, Sep 8, 2020
4 Years ago
arkcker questions
Tue, Aug 17, 21, 00:08, 3 Years ago
Sun, May 14, 23, 01:04, 1 Year ago
Wed, Nov 16, 22, 03:12, 1 Year ago
;