Huge buff/cache in Centos 7.3
by james000 from LinuxQuestions.org on (#592PX)
Hi,
I have Centos 7.3 VM, running on VMWare. Its buff/cache is using majority of memory. I read in previous notes (https://www.linuxatemyram.com/) that I should be looking at available, but not at free field in "free -m". But free is continuously reducing since past 4-5 days. It was 1.2 gb 4 days back, 800 mb yesterday and today 675 mb. Can I ignore or should check something else?
I don't see any oom-killer message in dmesg. But the only impact is, webpage which is hosting on this server is loading very slow. Taking almost 20 seconds, which used to be fast earlier.
Code:[root@centos-7.3 ~]# free -m
total used free shared buff/cache available
Mem: 32006 3711 675 707 27618 27117
Swap: 12159 495 11664
[root@centos-7.3 ~]# dmesg | grep oom-killer
[root@centos-7.3 ~]# ls -l /proc/sys/vm/drop_caches
-rw-r--r-- 1 root root 0 Oct 13 11:47 /proc/sys/vm/drop_caches
[root@centos-7.3 ~]#
Top output -->
top - 11:55:06 up 411 days, 19:45, 2 users, load average: 0.03, 0.09, 0.12
Tasks: 250 total, 1 running, 249 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2.4 us, 0.8 sy, 0.0 ni, 96.3 id, 0.4 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 32774300 total, 699972 free, 3796560 used, 28277768 buff/cache
KiB Swap: 12451836 total, 11944020 free, 507816 used. 27772428 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
49659 cacti 20 0 382964 82924 9320 S 6.0 0.3 0:00.38 php
1659 mysql 20 0 2431048 1.343g 6868 S 5.0 4.3 31814:28 mysqld
835 root 20 0 0 0 0 S 0.3 0.0 58:07.55 xfsaild/dm-2
49651 root 20 0 162100 2532 1672 R 0.3 0.0 0:00.01 top
1 root 20 0 190836 3044 1984 S 0.0 0.0 25:54.92 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:05.08 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 12:42.01 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0HPlease suggest.
Thanks


I have Centos 7.3 VM, running on VMWare. Its buff/cache is using majority of memory. I read in previous notes (https://www.linuxatemyram.com/) that I should be looking at available, but not at free field in "free -m". But free is continuously reducing since past 4-5 days. It was 1.2 gb 4 days back, 800 mb yesterday and today 675 mb. Can I ignore or should check something else?
I don't see any oom-killer message in dmesg. But the only impact is, webpage which is hosting on this server is loading very slow. Taking almost 20 seconds, which used to be fast earlier.
Code:[root@centos-7.3 ~]# free -m
total used free shared buff/cache available
Mem: 32006 3711 675 707 27618 27117
Swap: 12159 495 11664
[root@centos-7.3 ~]# dmesg | grep oom-killer
[root@centos-7.3 ~]# ls -l /proc/sys/vm/drop_caches
-rw-r--r-- 1 root root 0 Oct 13 11:47 /proc/sys/vm/drop_caches
[root@centos-7.3 ~]#
Top output -->
top - 11:55:06 up 411 days, 19:45, 2 users, load average: 0.03, 0.09, 0.12
Tasks: 250 total, 1 running, 249 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2.4 us, 0.8 sy, 0.0 ni, 96.3 id, 0.4 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 32774300 total, 699972 free, 3796560 used, 28277768 buff/cache
KiB Swap: 12451836 total, 11944020 free, 507816 used. 27772428 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
49659 cacti 20 0 382964 82924 9320 S 6.0 0.3 0:00.38 php
1659 mysql 20 0 2431048 1.343g 6868 S 5.0 4.3 31814:28 mysqld
835 root 20 0 0 0 0 S 0.3 0.0 58:07.55 xfsaild/dm-2
49651 root 20 0 162100 2532 1672 R 0.3 0.0 0:00.01 top
1 root 20 0 190836 3044 1984 S 0.0 0.0 25:54.92 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:05.08 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 12:42.01 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0HPlease suggest.
Thanks