How do I clear the cache?

In the Troubleshooting log I get this reading.

It shows that I have more than half the memory in “buff/cache” - 2.4G of 3.8G total.
Is there any way to clear the cache?
Would it be desirable?

You would be better off using a Raspberry with 8MB of RAM…

Right. So there’s no way to clear the cache?

The Linux kernel likes to cache all kind of things in memory buffers. Which sometimes makes it look like the system has no memory left.

If that bothers you then clear PageCache only:

$ sync; echo 1 > /proc/sys/vm/drop_caches

For more info see:

1 Like