CPU and Memory Usage

crbowers
Posts: 9
Member Since:
2009-12-17

I've read several of the posts here on CPU usage and memory usage under linux. However, I still have a few questions.

1) My memory usage (as reported by trixbox under "System Status" page) is at about 89% at idle. 43% to Kernel + Applications, 25% to Buffers, and 21% to Cache. I realize this is normal for linux, however, I've noticed that my "Disk Swap" has been slowly creeping up, now it's at 4%. Is the system using the swap space normal?

2) Sometime in the last couple days my CPU usage (under PBX Settings) has gone to 100% at idle. However, if I run top from the command line it doesn't appear that anything is putting that load on the CPU. That is if I am reading top correctly, almost every thing has a 0 in the %cpu column and the "CPU" line at the top of the screen reads 0.5%us, 0.5%sy, 0.0%ni, 99.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st.

The system has been up for 130 days at this point, and I'd hate to have to restart it if this is just a trixbox reporting error. Any suggestions?



crbowers
Posts: 9
Member Since:
2009-12-17
No one has any input on swap

No one has any input on swap space being slowly used up or cpu usage being reported as 100% at idle?



Torghn
Posts: 58
Member Since:
2007-10-26
The 100% on idle is a bug, I

The 100% on idle is a bug, I don't remember the cause or workaround but if you search for it you'll find it on the forums. If you reboot it'll go away for a few weeks then come back.



Atcom Alberta
Posts: 220
Member Since:
2008-07-14
To fix the incorrect display

To fix the incorrect display of "CPU 100%" in trixbox 2.6:

nano /var/www/html/admin/modules/dashboard/phpsysinfo/class.Linux.inc.php

on lines 122 and 132 replace:
sscanf($buf, "%*s %Ld %Ld %Ld %Ld", $ab, $ac, $ad, $ae);
with
sscanf($buf, "%*s %f %f %f %f", $ab, $ac, $ad, $ae);



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.