LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   System Monitor versus 'top' (http://www.linuxquestions.org/questions/linux-desktop-74/system-monitor-versus-top-4175467520/)

r00ster 06-26-2013 09:22 PM

System Monitor versus 'top'
 
I recently upgraded to Deb 7. In running 'top' and the KDE Sys Mon simultaneously, I get significantly different system info outputs. The reason I'm querying is that I'm experiencing system freezes and I'm trying to identify the cause.

In one instance, I was downloading an iso from the internet. The sys info for Memory differed greatly between the 2 utilities throughout the download.

'top' Mem showed 485 MiB being used
Sys Mon showed.. 264 MiB.

'top' Swap showed 359 MiB being used
Sys Mon showed.... 40 MiB.


Code:

Tasks: 122 total,  1 running, 121 sleeping,  0 stopped,  0 zombie
%Cpu(s):  3.8 us,  1.5 sy,  0.0 ni, 93.1 id,  1.5 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:    505440 total,  485248 used,    20192 free,    3752 buffers
KiB Swap:  498008 total,    35960 used,  462048 free,  218512 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND                     
 2429 root      20  0 56488  18m  11m S  1.5  3.7  1:05.02 Xorg                       
 3535 rooster  20  0  118m  32m  25m S  1.5  6.5  0:06.17 konsole                     
 3581 rooster  20  0  557m 137m  24m S  1.5 27.8  5:10.74 iceweasel                   
 3789 rooster  20  0  141m  39m  27m S  1.5  8.1  0:41.28 ksysguard                   
 1865 root      20  0  5180  368  256 S  0.8  0.1  0:00.09 dhclient                   
 3845 rooster  20  0  4508 1356  992 R  0.8  0.3  0:01.96 top                         
    1 root      20  0  2280  592  568 S  0.0  0.1  0:01.00 init                       
    2 root      20  0    0    0    0 S  0.0  0.0  0:00.00 kthreadd                   
    3 root      20  0    0    0    0 S  0.0  0.0  0:00.51 ksoftirqd/0 
<SNIP>


syg00 06-27-2013 04:35 AM

Apples and oranges probably - subtract the "buffers" and "cached" and see how they line up.
Read linuxatemyram.com.

r00ster 06-28-2013 04:11 PM

Quote:

Originally Posted by syg00 (Post 4979472)
Apples and oranges probably - subtract the "buffers" and "cached" and see how they line up.
Read linuxatemyram.com.

Not sure I understood what you meant by apples vs oranges. You could have done the math from the info I posted.

Quote:

'top' Mem showed 485248 being used. Minus buffers (3752) = 481496
Sys Mon showed 264 MiB.

'top' Swap showed 359 MiB being used. Minus cached (218512) = 182552
Sys Mon showed 40 MiB.
Converting to MiB
Mem: 481 'top' versus 264 Sys Mon

Swap: 182 'top' versus 40 Sys Mon

Those numbers don't seem to line up.

syg00 06-28-2013 06:11 PM

Quote:

Originally Posted by r00ster (Post 4980418)
You could have done the math from the info I posted.

I did.
Like I said, subtract both.

r00ster 06-29-2013 04:28 AM

Quote:

Originally Posted by syg00 (Post 4980478)
I did.
Like I said, subtract both.

Show your math...please...


All times are GMT -5. The time now is 08:04 AM.