🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.slackware
Article #93

Re: Asus P4S8X-X Linux and Hyperthreading

#93
From: athol
Date: Fri, 08 Aug 2003 07:02
40 lines
2956 bytes
In aus.computers.linux CyBorg_0091 <coldascoldx@netscape.net> wrote:
> I was waiting for Hyperthreading and Linux

Why wait?  Linux had it first...

> Some XP kids are going to seriously ponder the meaning of life if they read
> your description.

Except that his description is _wrong_.

> Whats the point of hyperthreading if you can't see it!

The Linux kernel makes the 2 hyperthreaded "processors" appear as
separate processors.  If you had a box with an SMP motherboard
with 2 HT processors, you'd have 4 virtual processors and that's
what you'd see under linux.  HT _is_ virtual SMP and is treated
as SMP by the kernel.  If you don't use an SMP kernel, you won't
enable HT.

In kernel 2.4, the 4 virtual processors would be essentially
indistinguishable and a lightly loaded system could easily load
the first 2 (ie the ones in one chip) with 2 heavy processes
while the other 2 virtual processors (the other chip) are still
just idling over.

The 2.6 kernel is intended to provide "processor affinity", in
which the kernel will know which virtual processors are in which
processor and be able to intelligently allocate processes to
processors in the most efficient possible manner.  This includes
such things as putting processes that will use a lot of the same
shared memory on the virtual processors within the same physical
chip to maximise cache hits, putting an even amount of load on
the separate physical processors in spite of low loads on 2nd
hyperthreaded virtual processor of the first chip, etc...

-- 
Athol
<http://cust.idl.com.au/athol>
Linux Registered User # 254000
I'm a Libran Engineer. I don't argue, I discuss.
Technical Details
Message-ID: <1060325823.275932@webserver>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!abnormal.com!vicpull2.telstra.net!lon-transit.news.telstra.net!news.telstra.net!lon-spool.news.telstra.net!203.50.2.94.MISMATCH!reader.news.telstra.net!not-for-mail
References: <pan.2003.07.24.23.28.18.590566@yahoo.com.au> <bgrqmf0vl9@enews1.newsguy.com> <3f330810@news.comindico.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,87ba0239a7adf60e
X-Google-Attributes: gid102983,public
X-Google-Thread: f906c,87ba0239a7adf60e
X-Google-Attributes: gidf906c,public
X-Google-ArrivalTime: 2003-08-08 00:02:27 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!abnormal.com!vicpull2.telstra.net!lon-transit.news.telstra.net!news.telstra.net!lon-spool.news.telstra.net!203.50.2.94.MISMATCH!reader.news.telstra.net!not-for-mail
Sender:  <athol@marvin.bogus.com.au>
From: athol <athol_SPIT_SPAM@idl.net.au>
Subject: Re: Asus P4S8X-X Linux and Hyperthreading
Newsgroups: alt.os.linux.slackware,aus.computers.linux
References: <pan.2003.07.24.23.28.18.590566@yahoo.com.au> <bgrqmf0vl9@enews1.newsguy.com> <3f330810@news.comindico.com.au>
User-Agent: tin/1.5.16-20030125 ("Bubbles") (UNIX) (Linux/2.4.21 (i686))
Organization: Ye 'Ol Disorganized NNTPCache groupie
Message-ID: <1060325823.275932@webserver>
Cache-Post-Path: webserver!unknown@newc56porta26.idl.net.au
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
Date: 08 Aug 2003 07:02:22 GMT
Lines: 40
NNTP-Posting-Host: 203.33.254.147
X-Trace: 1060326142 lon-reader.news.telstra.net 95044 203.33.254.147