From: "Phil Endecott" <phil_wueww_endecott@chezphil.org>
To: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: nice and hyperthreading on atom
Date: Sun, 07 Sep 2008 14:58:08 +0100 [thread overview]
Message-ID: <1220795888167@dmwebmail.dmwebmail.chezphil.org> (raw)
In-Reply-To: <1220715811849@dmwebmail.dmwebmail.chezphil.org>
Phil Endecott wrote:
> Dear Experts,
>
> I have an ASUS Eee with an Atom processor, which has hyperthreading
> enabled. If I have two processes, one nice and the other normal, they
> each get 50% of the CPU time. Of course this is what you'd expect if
> the scheduler didn't understand that the two virtual processors are not
> really independent. I'd like to fix it.
I thought I'd try to quantify the effect with real processes. My
"foreground" task is a compilation and my "background" task is a tight
loop at nice -9. No doubt you would get different results with
different tasks (amount of I/O, cache hit rate, different nice level etc.).
With no background task running, the foreground task takes 86s whether
or not HT is enabled. With the background task running, the foreground
task takes 97s with HT off and 104s with HT on. 104s is better than I
was expecting; in fact it's close enough to 97s that the problem can be
overlooked in this case.
I made a number of other measurements, of which the most significant is
that the run time with no background task comes down to 63s with -j2
when HT is on. So for this compilation, hyperthreading makes the CPU
perform like 1.36 uniprocessors (in some sense). I'll have to try to
remember how to make -j2 the default...
Anyway, can I take it that the previous patches to improve this
behaviour have never been merged?
Regards, Phil.
next prev parent reply other threads:[~2008-09-07 13:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-06 15:43 Phil Endecott
2008-09-06 16:31 ` Peter Zijlstra
2008-09-06 16:42 ` Arjan van de Ven
2008-09-06 18:24 ` Phil Endecott
2008-09-06 18:30 ` Ulrich Drepper
2008-09-07 9:34 ` Peter Zijlstra
2008-09-07 13:58 ` Phil Endecott [this message]
2008-09-08 1:09 ` Bill Davidsen
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=1220795888167@dmwebmail.dmwebmail.chezphil.org \
--to=phil_wueww_endecott@chezphil.org \
--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
all inboxes | Powered by JetHome®