public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Gautam Iyer <gautam@math.stanford.edu>
To: Pavel Machek <pavel@ucw.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Increased CPU usage after upgrading to 2.6.21
Date: Mon, 6 Aug 2007 17:26:33 -0500	[thread overview]
Message-ID: <20070806222632.GI24652@math.stanford.edu> (raw)
In-Reply-To: <20070806183207.GB5761@ucw.cz>

On Mon, Aug 06, 2007 at 06:32:08PM +0000, Pavel Machek wrote:

> > PS: I'm using the kernel with Gentoo patchset. But I confirmed the above
> >     persists with the vanilla kernels.
> > 
> > PPS: I also played around with the timer frequency, and premption model.
> >      Would those make a difference to CPU usage?
> 
> Yes. Or rather, it will make accounting more accurate, so that you see
> that 1% cpu usage, unlike previous kernels where something still ate
> cpu but kernel did not know it.

Hi,

Thanks for your response.

Well, I now recompiled all the kernels I used with all possible
permutations of these options (yes, that did take the better part of
last week).

I can confirm that under identical option for the preemption model, and
timer frequency, the following happen:

    1. With 2.6.19 (gentoo-r5), the system claims to use 0% CPU when
       idle.

    2. With 2.6.21 (gentoo-r4), 2.6.22 (gentoo-r1) and the unmodified
       2.6.22.1 kernel, the system claims to use between 1% and 3% CPU
       when idle.

When I run "top", I see that all non-idle processes running claim to
take 0% CPU (except occasionally the terminal I'm running top in, and
top itself). The CPU line in the top output consistently claims
something like

    CPU(s): .3%us, 1.0%sy, ...

I'm not sure if this is something I should be worried about or not,

Thanks again,

Gautam

-- 
'Budget' -- A method for going broke methodically.

      reply	other threads:[~2007-08-06 22:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-18 16:43 Increased CPU usage after upgrading to 2.6.21 Gautam Iyer
2007-08-06 18:30 ` Pavel Machek
2007-08-06 18:32 ` Pavel Machek
2007-08-06 22:26   ` Gautam Iyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070806222632.GI24652@math.stanford.edu \
    --to=gautam@math.stanford.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox