Difference between TOP and SERVICE STATUS

Astral God

Well-Known Member
Sep 27, 2010
180
0
66
127.0.0.1
cPanel Access Level
Root Administrator
Service Status (WHM):

Code:
Memory Used 53.59% (823,552 of 1,536,772)
TOP (command line)

Code:
Mem:   1536772k total,  1430828k used,   105944k free,    51836k buffers
So, i am using 1,4GB of RAM or 823MB of RAM ? :confused:
 

Eric

Well-Known Member
Nov 25, 2007
754
12
143
Texas
cPanel Access Level
Root Administrator
Twitter
Howdy,

This comes from the kernel having more than a few ways to show the value of memory on a system. For example:

grimlock ~ # cat /proc/meminfo && vmstat && free -m && top
MemTotal: 8054512 kB
MemFree: 299220 kB


procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 16776 299212 301760 5902576 0 0 164 76 8 5 1 0 98 0 0

total used free shared buffers cached
Mem: 7865 7573 292 0 294 5764
-/+ buffers/cache: 1514 6351
Swap: 4095 16 4079

top - 08:39:54 up 11 days, 1:50, 1 user, load average: 0.03, 0.03, 0.00
Tasks: 253 total, 1 running, 252 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.5%us, 0.2%sy, 0.6%ni, 98.2%id, 0.4%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8054512k total, 7755300k used, 299212k free, 301760k buffers
Swap: 4194296k total, 16776k used, 4177520k free, 5902576k cached

WHM Shows

Server load 0.09 (4 CPUs)
Memory Used 19.78% (1,593,352 of 8,054,512)
Swap Used 0.4% (16,776 of 4,194,296)

Which we get from free.

Thanks!