From: torvalds@transmeta.com (Linus Torvalds)
To: linux-kernel@vger.kernel.org
Subject: Re: HT and idle = poll
Date: Thu, 6 Mar 2003 19:30:42 +0000 (UTC) [thread overview]
Message-ID: <b487l2$1tn$1@penguin.transmeta.com> (raw)
In-Reply-To: 200303052318.04647.habanero@us.ibm.com
In article <200303052318.04647.habanero@us.ibm.com>,
Andrew Theurer <habanero@us.ibm.com> wrote:
>The test: kernbench (average of kernel compiles5) with -j2 on a 2 physical/4
>logical P4 system. This is on 2.5.64-HTschedB3:
>
>idle != poll: Elapsed: 136.692s User: 249.846s System: 30.596s CPU: 204.8%
>idle = poll: Elapsed: 161.868s User: 295.738s System: 32.966s CPU: 202.6%
>
>A 15.5% increase in compile times.
>
>So, don't use idle=poll with HT when you know your workload has idle time! I
>have not tried oprofile, but it stands to reason that this would be a
>problem. There's no point in using idle=poll with oprofile and HT anyway, as
>the cpu utilization is totally wrong with HT to begin with (more on that
>later).
>
>Presumably a logical cpu polling while idle uses too many cpu resources
>unnecessarily and significantly affects the performance of its sibling.
Btw, I think this is exactly what the new HT prescott instructions are
for: instead of having busy loops polling for a change in memory (be it
a spinlock or a "need_resched" flag), new HT CPU's will support a
"mwait" instruction.
But yes, at least for now, I really don't think you should really _ever_
use "idle=poll" on HT-enabled hardware. The idle CPU's will just suck
cycles from the real work.
Linus
next prev parent reply other threads:[~2003-03-06 19:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-06 5:18 HT and idle = poll Andrew Theurer
2003-03-06 19:30 ` Linus Torvalds [this message]
2003-03-06 19:52 ` Davide Libenzi
2003-03-06 20:05 ` Linus Torvalds
2003-03-06 20:52 ` Davide Libenzi
2003-03-06 21:09 ` Alan Cox
2003-03-06 20:08 ` Linus Torvalds
2003-03-06 22:36 ` Eric Northup
2003-03-06 22:22 ` Martin J. Bligh
2003-03-06 23:59 ` John Levon
-- strict thread matches above, loose matches on Subject: below --
2003-03-06 21:15 Nakajima, Jun
2003-03-06 22:42 ` Alan Cox
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='b487l2$1tn$1@penguin.transmeta.com' \
--to=torvalds@transmeta.com \
--cc=linux-kernel@vger.kernel.org \
/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