The officially official Devuan Forum!

You are not logged in.

#1 2020-07-24 13:24:20

Dutch_Master
Member
Registered: 2018-05-31
Posts: 285  

Flushing cached data in RAM

My file-server, running Ascii, has 32GB RAM and after syncing my home folder to the RAID, cached data remains visible in the RAM in the Webmin overview page. How do I get to flush this data from RAM? I know I can reboot, but there should be an alternative way. In Linux, there always is wink (well, almost always tongue )

TIA!

Offline

#2 2020-07-24 16:12:52

Andre4freedom
Member
Registered: 2017-11-15
Posts: 174  

Re: Flushing cached data in RAM

sync, my friend, is the answer.
do a "man sync" first and rtfm.
Obviously, you should run it as root or using sudo.
Should you have a hardware RAID controller, the data will not be flushed from the controller-cache to the disks!
Sync flushes disk-data from the main memory (system RAM) only.
Hope that helps.

Offline

#3 2020-07-24 16:48:40

Dutch_Master
Member
Registered: 2018-05-31
Posts: 285  

Re: Flushing cached data in RAM

Ok, thx! I should have known that tongue

Offline

Board footer