is it right to clear RAM cache daily?

Status
Not open for further replies.

Mikeme

Member
Apr 26, 2021
193
4
18
39
i set up cron to run # sync; echo 1 > /proc/sys/vm/drop_caches every day in midnight.
is it right to do it?
 
As I understand it this will free up memory which would be good. But a caution of lower performance until the cache is rebuilt over time with frequently used data.
 
I would advise against this.
Linux likes to keep caches full to minimise disk reads, this is a good thing for performance. It will automatically optimise what to keep in the cache.
Unused RAM is wasted RAM.

What is your reason for wanting to free up memory?
 
I would advise against this.
Linux likes to keep caches full to minimise disk reads, this is a good thing for performance. It will automatically optimise what to keep in the cache.
Unused RAM is wasted RAM.

What is your reason for wanting to free up memory?
Cache using more then 50% of ram.
I would like to have free ram for Fusionpbx calls.
Is there any option to limit the cache ram amount?
 
Are you currently having issues with calls due to running out of ram? How have you confirmed this?
 
Status
Not open for further replies.