pksteyn / php-fpmpal

PHP-FPM script that makes recommendations on max_children
GNU General Public License v3.0
55 stars 23 forks source link

RHEL/CentOS 7 "free" reporting differences #4

Closed pksteyn closed 9 years ago

pksteyn commented 9 years ago

CentOS 7 reports "free" in different format from CentOS6, Ubuntu14 and Debian 8:

[root@centos7 php-fpmpal]# free -k total used free shared buff/cache available Mem: 1011848 93620 441468 13364 476760 746304 Swap: 0 0 0 [root@centos7 php-fpmpal]#

[root@centos ~]# free -k total used free shared buffers cached Mem: 1914328 1574184 340144 0 233380 458080 -/+ buffers/cache: 882724 1031604 Swap: 0 0 0 [root@centos ~]#

Perhaps look at using /proc/meminfo

pksteyn commented 9 years ago

fixed