From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FROM_WORDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,27eba2f78fbdcc60 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!nntpfeed.zonnet.nl!news.versatel.nl!not-for-mail From: "Wiljan Derks" Newsgroups: comp.lang.ada References: <1IOdnWpX0_s6MdnfRVn-3A@comcast.com> Subject: Re: Gnat 3.15p & Windows & Hyperthreading Q Date: Tue, 29 Mar 2005 20:33:05 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: <81f09$42499f4a$3ea6010b$27465@news.versatel.nl> X-Complaints-To: abuse@versatel.nl Organization: Versatel Nederland B.V. NNTP-Posting-Host: 62.166.1.11 (62.166.1.11) NNTP-Posting-Date: Tue, 29 Mar 2005 20:32:42 +0200 X-Trace: 81f0942499f4a9b03a4ae27465 Xref: g2news1.google.com comp.lang.ada:10129 Date: 2005-03-29T20:33:05+02:00 List-Id: I did some performance tests on XP profesional with hyperthreading on a 2.8Ghz P4. For that I used some code that checks the CPU performance. I did this by making some compute procedure and check how often it is calculated. In my program I did make multiple tasks to check the functioning of hyper threaded. It turns out that hyper threading does not help at all with the total perfromance that is available. My conclusions where as follows: * When hyperthreading is turned of, the system can do X computations. * When hyperthreading is turned on and both threads are loaded, each of them can typically do less then X/2 computations. Thus turning on hyper threading gives basically two CPU which are both half speed when being used. When one of the CPU's is free, the other is faster. So it looks like one CPU is multiplexed in time (but very fast). The only advantage that hyper threading has, is that the system might be more responsive. Thus when accidentally locking one CPU at high priority, one can still break into the system (using the other CPU). Wiljan