Citat:
Ursprungligen inskrivet av tva
Endel plattformar skalar nästan 100% och andra skalar väldigt dåligt…
Apples plattform skalade fint från en till två redan för fem år sedan.
(Att nämna mer om detta öppnar bara för troll och skit…)
Jag skulle vilja hävda att det är väldigt få arkitekturer som i det generella fallet skalar nästan 100%, om du vet om någon får du gärna posta en källa. Jag tror inte det skulle öppna för troll om du gav en källa som visade på det.
Angående att skala 100%, av Herb Sutter från Dr. Dobb's Journal, 30(3), March 2005:
Myths and Realities: 2 x 3GHz < 6 GHz
So a dual-core CPU that combines two 3GHz cores practically offers 6GHz of processing power. Right?
Wrong. Even having two threads running on two physical processors doesn’t mean getting two times the performance. Similarly, most multi-threaded applications won’t run twice as fast on a dual-core box. They should run faster than on a single-core CPU; the performance gain just isn’t linear, that’s all.
Why not? First, there is coordination overhead between the cores to ensure cache coherency (a consistent view of cache, and of main memory) and to perform other handshaking. Today, a two- or four-processor machine isn’t really two or four times as fast as a single CPU even for multi-threaded applications. The problem remains essentially the same even when the CPUs in question sit on the same die.
Second, unless the two cores are running different processes, or different threads of a single process that are well-written to run independently and almost never wait for each other, they won’t be well utilized. (Despite this, I will speculate that today’s single-threaded applications as actually used in the field could actually see a performance boost for most users by going to a dual-core chip, not because the extra core is actually doing anything useful, but because it is running the adware and spyware that infest many users’ systems and are otherwise slowing down the single CPU that user has today. I leave it up to you to decide whether adding a CPU to run your spyware is the best solution to that problem.)
If you’re running a single-threaded application, then the application can only make use of one core. There should be some speedup as the operating system and the application can run on separate cores, but typically the OS isn’t going to be maxing out the CPU anyway so one of the cores will be mostly idle. (Again, the spyware can share the OS’s core most of the time.)
Citat:
Ursprungligen inskrivet av tva
Räcker med att dom är mutlitrådade, vilket väl stora majoriteten av program är redan, och även om de går som en tråd så har man ju kapacitet för flera andra program samtidigt. Gör man mer än en sak åt gången så är flera samtidiga trådar en vinst, och redan operativ gör ju massa saker samtidigt. [/B]
Vilket var vad jag menade med "måste programmen vara skrivna speciellt för att ta till vara på fler processorer" (men jag erkänner att det inte var så välformulerat, eftersom man oftast inte skriver multitrådade program speciellt för dual-system utan av andra skäl). Däremot så hävdar jag att de flesta applikationer som en vanlig dödlig använder och som kräver mycket (alltså spel) i väldigt få fall är multitrådade.