Technology news and Jobs arrow A Meaningful Look arrow Tales of the Forgotten (Part 1) -- Configuring CPU affinity in Windows
Tales of the Forgotten (Part 1) -- Configuring CPU affinity in Windows E-mail
by Tony Austin   
Sunday, 23 September 2007
Okay, you're the proud new owner of a new desktop or laptop computer running Windows XP or Windows Vista. Whether you realize it or not, it's more than likely to sport a spritely multi-core processor, such as an Intel Core 2 Duo or Quad processor or AMD Opteron quad-core. But are you able to take best advantage of these CPUs under Windows?


If you open the Windows task manager's Processes list, then right-click on any task, you'll see a new entry Set Affinity in the context menu when your PC has better than a single processor.

Of course, you'll probably need to be something of a geek to know which system task to select. It would be much nicer if you could do this from the task manager's Applications list.

set_affinity_xp.jpg
 Selecting the "Set Affinity" option

When you click on this entry, you are presented with a dialog box that shows the number of processors that Windows has detected in your system, as shown in the second and third illustrations.

processor_affinity_xp.jpg
Windows XP

processor_affinity_vista.jpg
Windows Vista

I find that for CPU-intensive tasks such as the Copernic Desktop Search indexer, better overall system behavior is obtainable by setting the CPU Affinity to one or other of the CPUs, as demonstrated in the first illustration. Even in periods of heavy indexing, no more than 50 percent of the total processor resource is consumed by the indexer,

When both boxes are checked, I've found the indexer gobbling up to 80 or 90 percent of the CPU resource and behavior is no better than with a single-CPU PC (typically resulting in intermittent periods when the responsiveness of other concurrent applications fluctuates dramatically).

What we have here is the case of hardware features having leapt ahead of software capabilities. The rather crude ability to manually set the Processor Affinity of individual tasks, as just described, must be carried out one task at a time, and worse than that every single time that you restart your system.

I have no insight as to whether Microsoft provides an interface for software makers (such as Copernic, to mention just one, and they're all in the same boat, each and every one of them) to build into their applications a permanent run-time configuration option for you to control the application's processor affinity.

I see this as a major oversight, especially for power users me who want to get the ultimate performance out of their multi-core systems.

History shows that we always keep throwing ever more complex multimedia and other types of workloads on our systems, so the need to have better control over the multiple processor cores via Processor Affinity will need to be addressed both by operating system vendors and the application providers alike.

I haven't even looked at Linux or Macintosh operating systems to find out if the above also applies to them. My guess is that it does, but I'll gladly stand to be corrected.

{moscomment}

Powered By Joomla Tags

Please enable JavaScript in your browser to post your comment!

 
< Next story in category   Previous story in the category >
iTWire user statistics Visitors last 30 days
694,279
Subscribers 15,210
#1 independent technology news advertise here
  •   *  
  • Search
  • AdvSeach
  • Login
  • Events
  • FreeStuff

- Advertisement -

Featured Whitepapers

Follow iTWire on Twitter

About iTWire

iTWire is all about technology news, information, jobs and community for the IT and telecommunications industry professional. Subscribe to our free ICT daily newsletter