DragonFly BSD
DragonFly bugs List (threaded) for 2013-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[DragonFlyBSD - Bug #2447] TOP isn't reporting correctly CPU states without -M


From: Javier AlcÃzar via Redmine <bugtracker-admin@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 4 Jan 2013 20:26:04 -0800

Issue #2447 has been updated by Javier Alcázar.

File 0001-refs-2247-TOP-isn-t-reporting-correctly-CPU-states-w.patch added

This is a bug. 
The problem is that when the machine has more than one CPU and the switch M is not used, top only reports the states of the first CPU.

The manual says:

The next line displays a percentage of time spent in  each
of  the	processor  states  (typically  user,  nice,  system, idle, and
iowait).  These percentages show the processor activity during the time
since  the  last update.  For multi-processor systems, this information
is a summation of time across all processors.
http://leaf.dragonflybsd.org/cgi/web-man?command=top
_______________________________________________


FreeBSD (10-CURRENT) and Linux (Ubuntu-11.04) report the overall load.
By default OpenBSD(5.1) displays each processor separately, with -1 shows combined output too (all CPUs).

And I also agree with Chris Turner:
>But anyhow - an average would be better.
So I am attaching a patch that seems to work showing the averages. 

----------------------------------------
Bug #2447: TOP isn't reporting correctly CPU states without -M
http://bugs.dragonflybsd.org/issues/2447

Author: Charles Rapenne
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 


Hello,

The top command isn't reporting the line "CPU states" correctly on my dual core laptop.

With the command "top", if a thread is eating 1 CPU, top reports 0.0% idle and 100% in user, it should displays 50% idle and 50% user
With the command "top -M", if a thread is eating 1 CPU, top reports 0.0% idle and 100% in user on CPU0, and 100.0% idle on CPU1, this is the correct one

On the screenshot attached, on the right you can see top -M and on the left, top. The command without -M seems to show only CPU0


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]