[CentOS] Finding memory usage

Gordon Messmer gordon.messmer at gmail.com
Fri Jul 27 16:13:11 UTC 2018


On 07/27/2018 08:10 AM, Bowie Bailey wrote:
> The problem is that I can't find 2.4G of usage.


Are your results from "top" similar to:

   ps axu | sort -nr -k +6

If you don't see 2.4G of use from applications, maybe the kernel is 
using a lot of memory.  Check /proc/slabinfo.  You can simplify its 
content to bytes per object type and a total:

   grep -v ^# /proc/slabinfo | awk 'BEGIN {t=0;} {print $1 " " ($3 * 
$4); t=t+($3 * $4)} END {print "total " t/(1024 * 1024) " MB";}' | column -t




More information about the CentOS mailing list