Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean buffers and cached on linux #47

Open
hieuhtr opened this issue Jun 14, 2017 · 0 comments
Open

Clean buffers and cached on linux #47

hieuhtr opened this issue Jun 14, 2017 · 0 comments
Labels

Comments

@hieuhtr
Copy link
Owner

hieuhtr commented Jun 14, 2017

Need root permission

# clean buffer and cached
root@appv2-1:~# free -m && sync && echo 3 > /proc/sys/vm/drop_caches && free -m

# step by step
root@appv2-1:~# free -m
             total       used       free     shared    buffers     cached
Mem:          3951       3260        691          0         46        121
-/+ buffers/cache:       3092        859
Swap:         4095          0       4095
root@appv2-1:~# sync
root@appv2-1:~# echo 3 > /proc/sys/vm/drop_caches
root@appv2-1:~# free -m
             total       used       free     shared    buffers     cached
Mem:          3951       3065        886          0          2         22
-/+ buffers/cache:       3040        911
Swap:         4095          0       4095

Before: buffers = 46 mb, cached = 121 mb
After: buffers = 2 mb, cached = 22 mb

@hieuhtr hieuhtr added the linux label Jun 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant