Skip to content

backtracker/drop_caches_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drop mem caches tool

avatar

Look at the picture above.It out of free memory because 3715M memory was buff/caches. It cause the system to slow down,then i need to drop mem caches.

1.Create logs directory

2.set low_mem value

low_mem=500

The default Settings is 500M。It means if current free mem lower than this value,it will drop mem caches.

3.config crontab file

*/5  *	* * *	root	cd /usr/local/bin/drop_caches_tool ; python3 drop_caches_tool.py

It will execute script every 5 minutes. Modify your file directory,then excute shell

 service cron reload
 service cron restart

Have Fun!

avatar

About

On a regular basis to drop mem caches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages