The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Ben Gamari <bgamari.foss@gmail.com>
To: ichudov <ichudov@gmail.com>, linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Hyperthreading on 4 core CPU DECREASES performance???
Date: Wed, 28 Oct 2009 20:44:38 -0400	[thread overview]
Message-ID: <1256777051-sup-2265@ben-laptop> (raw)
In-Reply-To: <e86b7d350910281700x1383296i73cd1ee4694e9c8@mail.gmail.com>

Excerpts from Igor Chudov's message of Wed Oct 28 20:00:10 -0400 2009:
> On Wed, Oct 28, 2009 at 5:24 PM, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > The win from HT depends a lot on the CPU and also the workload mix. In
> > some workloads it will decrease performance.
> 
> OK, I think that I understand. Thanks.
> 
> So, what you are basically saying is that there is no option to
> improve this behavior, right?
> 
He was saying (correct me if I'm wrong) that SMT isn't necessarily a
win. For some workloads that utilize a variety of variety of processor
resources, Hyperthreading can help extract parellelism and improve
overall pipeline utilization.  In many types of workloads, however, this
increased parallelism only results in increased cache, and TLB thrashing
and bandwidth contention. If your workload has a large cache footprint,
this will probably be a significant consideration. This problem is a
problem intrinsic to SMT and outside of the usual scheduling
considerations for cache-friendliness, there is little that the kernel
can do.

Whoever wrote that intelligent handling of multiple cores was a done
deal was lying. Certainly, the kernel is very good at scheduling
multiple cores, but using them in a way to extract performance is
completely up to the application and is by no means an easy task.

- Ben

      reply	other threads:[~2009-10-29  0:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-28 19:24 Hyperthreading on 4 core CPU DECREASES performance??? Igor Chudov
2009-10-28 20:46 ` Andreas Mohr
2009-10-28 21:11   ` Igor Chudov
2009-10-28 22:24 ` Alan Cox
2009-10-29  0:00   ` Igor Chudov
2009-10-29  0:44     ` Ben Gamari [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=1256777051-sup-2265@ben-laptop \
    --to=bgamari.foss@gmail.com \
    --cc=ichudov@gmail.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