I need to clear my cache in Ubuntu because my system will crash once the ram utilization reaches 100%. I believe the cache is used to speed up loading of popular applications but it eats up quite a bit memory after a while.
The command I use to clear the cache is:
sudo echo 3 | sudo tee /proc/sys/vm/drop_caches
I found it in the Ubuntu Forums. I find it doesn't work the first time and I have to kill the process and start it again.
The reason I need to do is that my USB SATA converter cannot handle large amounts of data transfers. The PC crashes once the memory is swapped onto the hard drive (I get tons of corruption errors). Still waiting on my SATA controller card to come in.
I made an automated script that you can download, use, and look at: Shell Script
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment