Print 71 comment(s) - last by heulenwolf.. on May 19 at 1:40 PM

Improved hardware and software compatibility one of the top three goals of Windows 7 development

Microsoft is working hard to make things better for the launch of Windows 7 following the lukewarm reception to Windows Vista. Vista was plagued with early hardware and software incompatibility issues that were one of the main reasons enterprise customers refused to migrate from XP.

Microsoft says that among the improvements in Windows 7 is better support for Hyper-Threading according to Microsoft's Bill Veghte. Veghte says that Microsoft has been working closely with Intel to beef up Windows 7’s support for Hyper-Threading. Hyper-Threading it a technique used by Intel to allow processing tasks to be divided among multiple cores on a processor.

Veghte said at the Microsoft TechEd conference, "The work that we've done in Windows 7 in the scheduler and the core of the system to take full advantage of those capabilities, ultimately we think we can deliver a great and better experience for you. We need to make sure the ecosystem is really, really ready."

Veghte is keen to get people to understand that Windows 7 won’t suffer from the same early problems Vista had that prevented the operating system from making headway in enterprise environments. He says that Windows 7 is "very, very close" to achieving full compatibility with virtually all hardware and software makers.

Microsoft currently expects to finish Windows 7 by mid-August and offer a final version to consumers and businesses by the holiday shopping season. That is a key target for Microsoft as a better operating system could woo consumers to buy new computers for the holidays. Better computer sales is certainly something that both Microsoft and computer makers need. Microsoft has admitted that Windows sales are down 16% in the most recent fiscal quarter.

Comments     Threshold

This article is over a month old, voting and posting comments is disabled

Really HT?
By Spivonious on 5/15/2009 12:04:38 PM , Rating: 1
I think any improvements in the scheduler in Win7 would show better utilization of the processor on any CPU with multiple cores, not only on ones with Hyperthreading. To the OS there really is no difference between the two.

RE: Really HT?
By Proteusza on 5/15/2009 12:09:30 PM , Rating: 5
Not necessarily. Remember, hyper threading creates a logical processor for each physical processor. So, each core essentially has another virtual core associated with it that has some registers etc of its own.

If you run two threads on two separate physical processors, they will perform better than if you run them on the same physical processor (ie using a logical processor).

RE: Really HT?
By PhoenixKnight on 5/15/09, Rating: -1
RE: Really HT?
By TomZ on 5/15/2009 12:54:21 PM , Rating: 5
For example, the OS might want to schedule busy threads on different physical cores rather than putting them on two virtual cores within a single HT physical core. By scheduling them on different cores they will run faster than if they are sharing the same core.

RE: Really HT?
By michael2k on 5/15/09, Rating: -1
RE: Really HT?
By leexgx on 5/15/2009 1:50:23 PM , Rating: 5
from windows XP (maybe SP1 and above i think) the OS is aware of HT, scheduler should work well but can ome times put work onto an HT thread when it should be on an real core thats free, i guess with windows 7 thay makeing that work better

RE: Really HT?
By leexgx on 5/15/2009 1:51:57 PM , Rating: 2
ome = some

RE: Really HT?
By micksh on 5/15/2009 2:33:10 PM , Rating: 5
Except the point of HT is that the OS can't tell the difference between a virtual core and a physical core.

No, that's not the point. The OS can tell the difference because Intel provides API for it.

So MS can use it to schedule load more efficiently.

RE: Really HT?
By foolsgambit11 on 5/15/2009 2:34:22 PM , Rating: 5
The OS knows what processor is in the computer. The OS knows (or at least can know) whether HyperThreading is enabled or not. And the OS knows how the CPUs are numbered when hyperthreading is turned on versus off. So it is a trivial problem to determine which cores are virtual and which are physical.

As an example, without HT, a dual core processor may be exposed as CPU0 and CPU1, but with HT enabled, CPU0 may be exposed to the OS as CPU0 and CPU1, while the old CPU1 becomes CPU2 and CPU3. Since this will be a consistent and regular identification process, the OS can be programmed to know which physical cores become which logical cores, and adjust each CPU's workload accordingly.

RE: Really HT?
By jonmcc33 on 5/15/2009 3:50:46 PM , Rating: 2
HyperThreading is enabled in the hardware, not the software. I remember many people stating that my Pentium 4 2.8C wouldn't support HyperThreading in Windows 2000 Pro...but it did. Windows 2000 Pro saw two separate processors and I was able to assign affinity to either.

RE: Really HT?
By Alexstarfire on 5/16/2009 3:05:52 AM , Rating: 3
That's like saying you can just use any video card and get 100% optimization in every program. Just because the hardware supports it doesn't mean the software is going to use it well. This is one of the reasons why programs didn't see a jump in performance when moving from one to two cores, back when dual-core was new. OS and hardware sees two cores, but the program itself is still using just the one like it always had. it's the same principle except more complicated since it's not an actual core.

RE: Really HT?
By jonmcc33 on 5/16/09, Rating: 0
RE: Really HT?
By Feckless Plaintiff on 5/16/2009 11:41:58 AM , Rating: 3
Windows 2000 is notorious for being a hyperthreading-unaware OS. In many cases, with multi-threaded applications, significant performance degradation has been observed with hyper-threading enabled under this OS. So it's generally strongly advised that hyper-threading be disabled on Windows 2000 machines.

Multi-core is of course different, and as Windows 2000 was designed for multi-CPU machines, it handles multi-core machines just fine. This is very different from treating a virtual CPU as a real CPU and thus incurring unnecessary performance penalties at times.

RE: Really HT?
By BikeDude on 5/18/2009 3:34:02 AM , Rating: 2
FWIW, you are correct.

Some interesting tidbits can be picked up on various MSFT blogs.

"Since the scheduler doesn't realize the connection between the virtual CPUs, it can end up doing a worse job than if you had never enabled hyperthreading to begin with." (concerning NT4/2000)

RE: Really HT?
By jonmcc33 on 5/18/2009 7:53:30 AM , Rating: 2
There's a difference between a CPU and a GPU. Not sure why you would even bother to mention one as they are drastically different.

Look, I don't care what you say. It was Windows 2000 and media encoding improved when Hyperthreading was enabled. There's nothing you can say or do to change what happened and really...Windows 2000 is a bit old to be debating over. I was just making a valid point.

RE: Really HT?
By ilkhan on 5/16/2009 3:04:00 PM , Rating: 3
Theres no physical cores vs logical cores, they're all logical cores.
But win7 will know which 2 logical cores are the same physical core, and thus can schedule threads for different physical cores. Or in power save mode perhaps schedule on the same physical core, leaving the other cores in deep sleep until needed.

RE: Really HT?
By foolsgambit11 on 5/16/2009 6:39:03 PM , Rating: 2
I agree that to the unknowing reader, there is a high likelihood of confusion from my post. I didn't mean to imply that physical cores and logical cores were exclusive sets.

I didn't think about using a full physical core in power saving mode. That's a really good idea.

RE: Really HT?
By kaoken on 5/16/2009 7:46:54 PM , Rating: 2
You are contradicting yourself sir.

RE: Really HT?
By MrPoletski on 5/16/2009 7:08:59 AM , Rating: 2
not to mention that there may be two separate threads acting on the same data space, hence your caching will line up nicely if you run them on the same physical but opposing logical cores.

RE: Really HT?
By mindless1 on 5/16/2009 1:53:39 PM , Rating: 2
You cannot have two separate threads using the same data space, each depends on the freshness of data that isn't concurrently being altered.

RE: Really HT?
By pcfxer on 5/16/2009 2:49:12 PM , Rating: 2
Actually you can have two threads running WITHIN the same data space, in fact, that is the DEFINITION of multi-THREADING. A process forks off a thread or, threads, and each thread exists within the same process space.

Multi-PROCESSING is different, because each PROCESS gets its own memory space, but each process that is forked takes a copy of the memory space of the parent process and runs with it. Secondly, your argument is nullified by the fact that the article has nothing to do with IPC and simply refers to the logic that the kernel's schedule may use when hyper-threading is enabled.

This entire argument should have been ended when the Intel API for hyper threading was posted, but I suppose everyone else doesn't understand the barrier between software and hardware.

And no, SOFTWARE doesn't give a DAM about what the hardware is. Tell me this if it does, why can't I assign data to my hard drive when I request for space in memory (malloc())?

RE: Really HT?
By MrPoletski on 5/17/2009 7:14:46 AM , Rating: 1
Hmm... because your OS knows damn well there is far too much virtual mammory on your hard disk already?;)

RE: Really HT?
By voodooboy on 5/15/2009 3:03:04 PM , Rating: 5
While the essence of what you say is're just repeating what Intel wants you to.

What HyperThreading does is keep the processor pipeline filled with useful data as much as it can. In reality, it does NOTHING to emulate multiple cores. What an HT enabled processor has in fact, is a few key components either duplicated (TLB, a 2nd Inst pointer) OR enlarged (register renaming/mapping hardware, inst window(?)) so as to keep the pipeline full (with data possibly from another thread) if the existing thread is either waiting on something or not making full use of the available resources.
So yes, while Intel's marketing department might want us to believe that HT is out of this world, realistically, it is something that just makes better use of the available resources.
So THIS is the reason why having 2 physical processor cores is MUCH better than having one with HT enabled...for the right applications.

RE: Really HT?
By segerstein on 5/15/2009 4:10:02 PM , Rating: 2
If the two threads work with the same dataset, then it is better for them to be put one one physical core - so they can share L1 (&L2) cache.

RE: Really HT?
By GeorgeOu on 5/15/2009 4:51:00 PM , Rating: 2
Having 2 physical cores is better than 2 HT cores if and only if the cores have comparable performance and if the former has more physical cores. If you have a situation where it's 2 physical cores with no HT versus 2 physical cores with HT making 4 virtual cores, the latter is generally better even if the cores are comparable in overall performance. That's because the latter can keep the processor more busy and this is very helpful for multiple applications running at the same time or a multi-threaded application. It's less helpful (or possibly a detriment) if you are only running a single application that is single threaded.

Here's a great illustration why physical cores aren't always better. AMD likes to say physical cores are better than HT cores in their marketing campaign. The problem is that a two-socket Intel Nehalem-EP is faster than a four-socket AMD Shanghai server despite having half the physical cores.

RE: Really HT?
By voodooboy on 5/15/2009 5:26:33 PM , Rating: 2
Isn't that what I said myself? :) Just that instead of comparing 2 cores with and without HT..I compared 1..

RE: Really HT?
By Chocobollz on 5/16/2009 3:06:20 AM , Rating: 2
I'd say you both are correct. I myself would like to have all processors be equipped with HT because yes, adding more cores adds more performance, but it's still inefficient and that's where HT is needed, to make the processor more efficient. So both adding more cores and adding HT capability is good. IIRC, adding HT capability to current processor only add 10% to the total transistors count anyway, so why not? :-)

RE: Really HT?
By Visual on 5/16/2009 2:56:04 AM , Rating: 3
i think you misunderstood the point. it wasn't about how many cores total there were or if HT was enabled - for this it usually goes "the more, the better"
the question was about where two threads get scheduled by the OS. when both a separate real core and a virtual cpu on the same physical core are available for the second thread, it is most often better to use the separate real core.
and we are talking single-socket here.

RE: Really HT?
By DeepBlue1975 on 5/17/2009 8:04:06 PM , Rating: 2
Not only that...

Then there's also the fact that HT was introduced with NetBurst, an architecture that had trouble having its (very long) pipelines correctly fed, specially when the pipeline had to be flushed because of a miss.
There HT made a lot of sense as it was a means of masking those shortcomings for SOME coding patterns, while other patterns were largely unaffected or even some saw a performance penalty.

In C2D architecture the original HT spec couldn't actually bring much to the table, that's why it took so long for it to reappear.

RE: Really HT?
By Samus on 5/15/2009 11:04:29 PM , Rating: 2
I think this is an important improvement, and am happy to see Microsoft focusing on it. The shortcomings of Jackson Technology were that it wasn't utilized properly. If the scheduler can utilize logical cores for what they are and not treat them like physical units (ie light background instructions in sequence with physically processed instructions) then it could show real improvements in system performance, unlike degrading performance like it did in its original Netburst implementation.

HT has always been a great concept without the proper (software) support.

RE: Really HT?
By VooDooAddict on 5/15/2009 12:09:49 PM , Rating: 2
The Atom has hyperthreading.

RE: Really HT?
By UltraWide on 5/15/2009 12:28:55 PM , Rating: 1
This is good news for ION-based systems.

RE: Really HT?
By Souka on 5/15/2009 1:52:42 PM , Rating: 5

My Pentium4 system will rock now! :)

RE: Really HT?
By KamiXkaze on 5/15/2009 10:07:01 PM , Rating: 2
I do believe it does.


RE: Really HT?
By stirfry213 on 5/15/2009 12:12:07 PM , Rating: 1
I honestly hope so. I hate to think that MS is purposely and openly catering to PCs with Intel CPUs.

If not, I see anti-trust in the future.

RE: Really HT?
By dagamer34 on 5/15/2009 12:19:57 PM , Rating: 5
Gimping performance on purpose on AMD chips is what would get Microsoft into trouble, not taking advantage of hardware that already exists.

RE: Really HT?
By mmntech on 5/15/2009 12:39:24 PM , Rating: 3
It's also worth noting that most Intel consumer CPUs on the market right now don't support hyper-threading. Just Pentium 4, Atom, and i7 but not Core 2. I think these enhancements are meant to cater to netbook users. Regardless, Windows was starting to get a little too bloated for its own good. At least they're finally trying to streamline it a bit.

RE: Really HT?
By aegisofrime on 5/15/2009 12:40:06 PM , Rating: 2
Add the Core i5 to the list. I think Microsoft is just preparing for the future. I personally see myself getting an Core i5 or i7 to replace my Q6600.

RE: Really HT?
By TomZ on 5/15/09, Rating: 0
RE: Really HT?
By rmlarsen on 5/15/2009 12:28:17 PM , Rating: 5
A virtual (HT) CPU and a physical one may provide the same interface to the OS scheduler, but their performance characteristics will be quite different.

If the scheduler collects information about the characteristics of each thread it will be able to determine which are more suited to share execution resources and thus can be scheduled on HT CPUs.

For example, a highly tuned HPC code (think LINPACK for a generic example) will not share the CPU resources nicely as it is already optimized to take advantage of almost 100% of the functional units in the CPU. So the scheduler should try to avoid scheduling two such threads simultaneously on the same physical CPU. On the other hand, code that experiences many pipeline stalls/delays due to e.g. branches/data dependencies/cache misses will be a better candidate to schedule on an HT CPU.

RE: Really HT?
By Anonymous Freak on 5/15/2009 5:52:21 PM , Rating: 1
Two big deals:

Vista was nasty with scheduling among cores. I swear if I try to run four dissimilar processes on my Core i7, Vista chooses to put them on two physical cores only.

Likewise, if I want to run two similar processes (ones that will actually benefit from running on a single physical core,) it will spread them to separate physical cores.

Knowing that two 'processors' are really the same physical core at the OS level can help by using the 'virtual' cores last; or by pairing processes that have a lot of cache coherency to the same core.

"I modded down, down, down, and the flames went higher." -- Sven Olsen
Related Articles

Most Popular ArticlesSmartphone Screen Protectors – What To Look For
September 21, 2016, 9:33 AM
UN Meeting to Tackle Antimicrobial Resistance
September 21, 2016, 9:52 AM
Walmart may get "Robot Shopping Carts?"
September 17, 2016, 6:01 AM
5 Cases for iPhone 7 and 7 iPhone Plus
September 18, 2016, 10:08 AM
Update: Problem-Free Galaxy Note7s CPSC Approved
September 22, 2016, 5:30 AM

Copyright 2016 DailyTech LLC. - RSS Feed | Advertise | About Us | Ethics | FAQ | Terms, Conditions & Privacy Information | Kristopher Kubicki