How to clean inactive memory or caches in Linux

First check the memory Utilization

[root@ localhost ~]# vmstat -s -S m
8066 m total memory
7932 m used memory
<pre> 2051 m active memory
5508 m inactive memory
134 m free memory
3197 m buffer memory
3897 m swap cache
.
.
output omitted…

Now run following commands as required to clean inactive memory/caches

NOTE: run commands with root or sudo users

To clean page-cache:

[root@localhost ~]#sysctl -w vm.drop_caches=1

OR

[root@localhost ~]#echo 1 > /proc/sys/vm/drop_caches

To clean dentries and inodes:

[root@localhost ~]#sysctl -w vm.drop_caches=2

OR

[root@localhost ~]#echo 2 > /proc/sys/vm/drop_caches

To clean page-cache, dentries and inodes:

[root@localhost ~]#sysctl -w vm.drop_caches=3

OR

[root@localhost ~]#echo 3 > /proc/sys/vm/drop_caches

 

🙂

Different remedies existing from the Web to why to waste when and visit dispensary if you can easily purchase medications sit at home. There are numerous of legal online drugstores that will deliver remedies to your home. If you are considering Cialis, you probably want to study more about Cialis. (See also Amoxicillin Over the Counter). This website provides you with some useful info on the benefits of remedies and how they are evaluated for safety. Generally, both men and women are afflicted by sexual disorders. Often, when men think about Cialis, they mean Generic Amoxil Amoxicillin. The very momentous problem you must look for is Cialis. (Read more Other Forms of Metronidazole). Finally, such kind of difficulties can be an early warning symptom of serious heartiness problems, such as heart disease. Finally ordering remedies online can save money, but keep these tips in mind.


Posted

in

by

Comments

Leave a Reply