Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Mar 2005 22:06:38 +0100
From:      Anthony Atkielski <atkielski.anthony@wanadoo.fr>
To:        freebsd-questions@freebsd.org
Subject:   Re: hyper threading.
Message-ID:  <439876144.20050326220638@wanadoo.fr>
In-Reply-To: <8C700529A2DFD74-A44-3A157@mblk-d34.sysops.aol.com>
References:  <c6ef380c050326061976f164b@mail.gmail.com> <1641928994.20050326192811@wanadoo.fr> <8C700529A2DFD74-A44-3A157@mblk-d34.sysops.aol.com>

next in thread | previous in thread | raw e-mail | index | archive | help
em1897@aol.com writes:

> You'll get much better performance with 1 processor in
> UP mode. I suggest you do some testing.

Where can I see the results of your own exhaustive tests?

The purpose of hyperthreading is to keep all hardware on the
microprocessor working.  Many instructions use only certain parts of the
chip, leaving other parts idle.  By allowing two execution contexts to
be maintained simultaneously, hyperthreading makes it possible to better
utilize hardware that might otherwise sit idle.  The ideal case would be
two threads executing completely different instruction sequences that
use very different parts of this chip.  I don't have exact figures but
I'd guess that in ideal situations you might get 20%-30% extra out of a
single processor in this way--enough to negate the greater overhead of
the SMP logic.

A situation in which hyperthreading would _not_ help would be any type
of parallel processing, in which multiple threads execute very similar
instructions.  These instructions are likely to require the same parts
of the microprocessor at the same time, so it's unlikely that they will
be able to execute in parallel--one will have to wait for the other
(because the microprocessor has logic areas that can function
independently and simultaneously, but these areas don't do the same
things, so they are not redundant logic).

-- 
Anthony




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?439876144.20050326220638>