Re: [REGRESSION] [Linux 3.2] top/htop and all other CPU usagemetering applications has gone crackers

From: Tino Keitel
Date: Mon Nov 28 2011 - 14:55:15 EST


On Sun, Nov 27, 2011 at 12:45:57 +0100, Rafael J. Wysocki wrote:
> On Sunday, November 27, 2011, Tino Keitel wrote:
> > On Thu, Nov 24, 2011 at 21:05:53 +0100, Tino Keitel wrote:
> > > On Thu, Nov 24, 2011 at 10:30:15 +0000, Artem S. Tashkinov wrote:
> > > > Hello,
> > > >
> > > > I'd like to report a weird regression in Linux 3.2 (running rc3 now) - all CPU metering applications have gone terribly mad
> > > > under this kernel:
> > >
> > > I get the same using top, htop and the gnome system monitor with kernel
> > > 3.2 on a Sandy Bridge quad core box, running Debian unstable.
> >
> > I just tested 3.2-rc2, and see the same bug.
>
> I'm seeing that too on one of my test boxes, but not all the time
> (i.e. there are periods in which the readings are correct). The other boxes
> I've tested with 3.2-rc are fine in that respect.
>
> Also, it seems that it shows 100%-(real load) when it is wrong. So, it looks
> like there's an overflow somewhere in the CPU load measuring code, at least
> on some CPUs.

Hi,

I reverted this commit and so far it looks good:

commit a25cac5198d4ff2842ccca63b423962848ad24b2
Author: Michal Hocko <mhocko@xxxxxxx>
Date: Wed Aug 24 09:40:25 2011 +0200

proc: Consider NO_HZ when printing idle and iowait times

I'll report back tomorrow how the kernel behaves.

Regards,
Tino
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/