Why does my system use so much cache?

Posted by Dave M G on Ask Ubuntu See other posts from Ask Ubuntu or by Dave M G
Published on 2014-06-11T02:51:40Z Indexed on 2014/06/11 3:47 UTC
Read the original article Hit count: 351

Filed under:
|
|
|

Previously, on my desktop computer running Ubuntu 14.04, I had 4GB RAM, which I thought should be plenty. However, after being on for a while, my computer would seem to get slow. I have a system resource monitor app in my Gnome panel, which I assume represents the available RAM (?). It shows a dark green area as being "Memory", and a light green area as "Cache". The "Cache" would slowly grow until it filled the whole graph, and then programs would get slow to load, or it would take a while to switch programs.

I could alleviate the problem somewhat with this command, but eventually the computer cache fills up again, so it's only a bandaid:

sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"

So, I figured I'd get more RAM, so I replaced one 2GB stick with an 8GB stick, and now I have 10 GB ram.

And my "cache" still slowly maxes out and my computer slows as a result. Also, sometimes the computer starts out with "cache" maxed when I first boot and log in. Not always though, I don't know if there's a pattern that determines why it happens.

Why is Ubuntu using up so much cache? Is 10GB not enough for Ubuntu?

Here's what my system monitor looks like in my Gnome panel. The middle square shows RAM usage. The light green area is the "cache":

Cache near max

This is my memory and swap history, which doesn't seem to include any information about "cache". I realize at this point I'm not totally clear on the difference between "cache" and "swap":

memory and swap

© Ask Ubuntu or respective owner

Related posts about Performance

Related posts about ram