I’m running a CentOS server (specs below) with 32 GB memory. My problem is 18.49 GB of the 32GB is used by cache. That seems to be a lot. Is that a good thing or cache is using too much? I’m running a live cryptocurrency prices website. I cache a lot of stuff because I’m using API to pull cryptocurrency prices.
Is cache keeping the site from running out of memory or it’s using too much and I should I reduce the number of pages cache? If I don’t cache so much, will my the site slows down?
Specs:
OS: CentOS Linux 7.7.1908 (Core)
CPU: Intel® Xeon® CPU E3-1225 v3 @ 3.20GHz (4 core(s))
Also u might want to check for killed processes (by the kernel) due to out of memory issues in the past (from your output it doesn’t seem there’s this risk currently )
dmesg|grep -i "killed process"
if u have root access to the system grep -i ‘killed process’ /var/log/messages
Hi again,
basically Buffers and Cached memory are not considered “used” memory.
They are explained as : Buffers: Memory in buffer cache, so relatively temporary storage for raw disk blocks. This shouldn’t get very large. Cached: Memory in the pagecache (Diskcache and Shared Memory)
In RHEL/CentOS 7.x in fact, used memory is considered as
MemTotal - MemFree - Buffers - Cached - Slab
Unless there is high swapping or out of memory errors messages in the logs, there should not be reason to concern. Of course the posted values are static I cannot see any trend without some monitoring tool graph.