is it right to clear RAM cache daily?

Status
Not open for further replies.

Mikeme

Member
Apr 26, 2021
186
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?
 

whut

Member
Dec 23, 2022
228
22
18
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.
 

Dast

Member
Nov 11, 2019
57
10
8
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?
 

Mikeme

Member
Apr 26, 2021
186
4
18
39
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?
 

Dast

Member
Nov 11, 2019
57
10
8
Are you currently having issues with calls due to running out of ram? How have you confirmed this?
 
Status
Not open for further replies.