Clean buffers and cached on linux
Need root permission
1
# clean buffer and cached
2
[email protected]:~# free -m && sync && echo 3 > /proc/sys/vm/drop_caches && free -m
3
4
# step by step
5
6
total used free shared buffers cached
7
Mem: 3951 3260 691 0 46 121
8
-/+ buffers/cache: 3092 859
9
Swap: 4095 0 4095
10
12
[email protected]:~# echo 3 > /proc/sys/vm/drop_caches
13
14
15
total used free shared buffers cached
16
Mem: 3951 3065 886 0 2 22
17
-/+ buffers/cache: 3040 911
18
Swap: 4095 0 4095
Copied!
Before:
    buffers = 46 mb
    cached = 121 mb
After
    buffers = 2 mb
    cached = 22 mb
Last modified 2yr ago
Copy link