Package: htop
Version: 1.0.1-1
Severity: normal

I am debugging a CPU usage problem with my audio player, Amarok. My PC has an Intel Core i3, which has 2 CPU cores and HyperThreading. Debian considers this as 4 CPU-s. Amarok is using between 0 and 3% of a core when it's idle. Since this is small, I need some precision to measure the problem and to tell its severity.

I used top, but top is not too accurate itself. With a 3 seconds delay, it reports CPU% as fractions of 300. in my case, that means it usually shows either 0.3, 0.7 or 1.0 (at this time, Amarok is averaging about 0.7%). So I tried htop to see if it would provide more accurate readings. It turns out htop displays worst values.

If using -d 10 (one second updates), htop usually displays CPU% as 0.0, and only quite rarely 1.0. Meanwhile, TIME+, which displays as x:yy.zz (minutes:seconds.hundredths of a second), grows at most updates, meaning Amarok usually takes more than half of a hundredth of a second of a ("virtual") CPU's time per second.

htop never displays a digit other than 0 after the decimal point. Even if I use -d 100, htop shows Amarok as using 0.0%.

Ideally, htop should display only significant digits (by default, at least), and should round up past 0.5. Addressing one of these issues would be a good start.


--- System information. ---
Architecture: i386
Kernel: Linux 3.2.0-2-amd64

Debian Release: wheezy/sid
990 testing security.debian.org
990 testing debian.mirror.iweb.ca
500 unstable debian.mirror.iweb.ca

--- Package information. ---
Depends (Version) | Installed
==================================-+-==================
libc6 (>= 2.3.4) | 2.13-27
libncursesw5 (>= 5.6+20070908) | 5.9-4
libtinfo5 | 5.9-4


Package's Recommends field is empty.

Suggests (Version) | Installed
=======================-+-===========
strace |
ltrace |



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to