mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Artemio <artemio@artemio.net>
To: "J.A. Magallon" <jamagallon@able.es>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: SMP question
Date: Thu, 12 Jun 2003 08:37:40 +0300	[thread overview]
Message-ID: <200306120837.40421.artemio@artemio.net> (raw)
In-Reply-To: <20030611225401.GE2712@werewolf.able.es>

Hello!

Thanks for your reply!

> > Hmmm... So, you mean uni-processor Linux kernel can't see two processors
> > as one "big" processor?
>
> No, but it will work as if it does...explain below.
>
> You have 2 processor packages, each one is HyperThreading capable. This
> means you have two 'CPUs' inside each package, so that sums up your 4 CPUs.
> But there is a flaw. The 2 'CPUs' inside each processor package are not
> full real CPUs, just two register sets that share cache, FP units, integer
> units and so on. So let's say your Xeon has 8 FP units, and you want to
> run a FPU intensive task with low or null disk IO. If you activate
> hyperthreading each of the 2 'cpus' has 4 FP units, so half the computation
> power. If you deactivate HT, you have 1 CPU with 8 FP units.
>
> In short, for FP intensive tasks, hyperthreading is a big lie...
> You can't run 2 computations in parallel.

Thanks for such in-depth explanation! 

As I understood, with HT enabled, Linux-SMP sees four CPUs with 5000 bogo mips 
each (of course I've already seen this in /proc/cpuinfo).

So, if I deactivate HT, will a UP Linux see one CPU with 4x5000=20000 bogo 
mips?

Anyway, I will try what I mentioned on that machine today.


Thank you again and good luck!


Artemio.

  reply	other threads:[~2003-06-12  5:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-11 17:43 Artemio
2003-06-11 18:04 ` Tigran Aivazian
2003-06-11 19:38 ` Samuel Flory
2003-06-11 19:52   ` Artemio
2003-06-11 20:14     ` David Schwartz
2003-06-11 20:13       ` Artemio
2003-06-11 22:34         ` David Schwartz
2003-06-11 22:54         ` J.A. Magallon
2003-06-12  5:37           ` Artemio [this message]
2003-06-12 12:49             ` Matt Reppert
2003-06-12 17:25               ` Artemio
2003-06-12 14:02           ` Scott Robert Ladd
2003-06-12 20:59             ` J.A. Magallon
2003-06-11 21:25     ` Zwane Mwaikambo
     [not found] <Pine.LNX.4.44.0306111838360.20310-100000@coffee.psychology.mcmaster.ca>
2003-06-12  5:42 ` Artemio

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=200306120837.40421.artemio@artemio.net \
    --to=artemio@artemio.net \
    --cc=jamagallon@able.es \
    --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®