HardwareLogic

Go Back   HardwareLogic > Specific Hardware > Processors
Home Forums Rules All AlbumsBlogs Subscriptions Register Mark Forums Read

Processors Need help picking the right processor? Need help getting the most out of a processor you already have?

Closed Thread
 
LinkBack Thread Tools
Old September 29th, 2006   #1
 
jph1589's Avatar
 
Join Date: Aug 2006
Posts: 367
Default Setting CPU affinity

Apparently I've been snoozing on this one. I have thought a number of times that I'd like to experiment with permanantly setting the affinity on certain programs to make them run in one core or the other. The only time I really do it (cause it is a pain in the rear) is when i want to run multiple copies of Superpi. I do that after making overclocking tweaks so that I can fully utilize both cores.

The way I do it for Superpi is a little more involved because you have to have a separate folder for each copy because of the temp files it creates while it is running. So essesntailly I have a Superpi-0 and a Superpi-1 folder with all the files in it. I execute the program from each folder and then go into task manager and change the affinity of each so that zero runs in the zero core and one runs in the one core.

For a while I thought I should be able to automate that but never really looked into it. So I never really did any testing of how it might affect other things that I run simultaneously. In my opinion Windows does a poor job of utilizing multiple core systems but that might be clouded by my feelings that Windows does a poor job of a lot of things. LOL I just hate being a captive to it..... ok I degress.

So if there was a way to do this automatically, I can't imagine why it isn't pretty common knowledge. Hark....there is a way. I haven't tested it yet, because I wanted to hear the moans and growns from others who may have previous experiences. I also don't know exactly how to reverse it should it not give me a warm and fuzzy when I'm all done.

So has anyone ever used imagecfg to permanantly set the cpu affinity for a program?

imagecfg -u c:\path\to\file.exe
imagecfg -a 0x1 c:\path\to\file.exe 0x1 = CPU0 (first logical/physical CPU)
0x2 = CPU1 (second CPU)
0x3 = CPU2 (third CPU)
etc...

I am more concerned than anything about being able to reverse it. So I was hoping to see if anyone had knowledge about that.



Commodore 64 overclocked into outerspace
jph1589 is offline  
Old September 30th, 2006   #2
T-Rex
 
polobunny's Avatar
 
Join Date: May 2006
Posts: 5,050
Blog Entries: 6
Default

I see little to no use in setting a permanent process affinity to a certain program.
Whenever you feel a slowdown, CTRL+SHIFT+ESC then set the process affinity for programs taking up your CPU ressources. However if you need to "permanently" set a program affinity because of a problem that occurs when you don't, you can either use imagecfg or the more convenient StartAffinity which works great with Windows XP.
All in all, I think you might be expecting too much from dual core. It is a great technology, but it ain't revolution. ;)



polobunny is offline  
Old September 30th, 2006   #3
 
jph1589's Avatar
 
Join Date: Aug 2006
Posts: 367
Default LOL

Quote:
Originally Posted by polobunny View Post
I see little to no use in setting a permanent process affinity to a certain program.
Whenever you feel a slowdown, CTRL+SHIFT+ESC then set the process affinity for programs taking up your CPU ressources. However if you need to "permanently" set a program affinity because of a problem that occurs when you don't, you can either use imagecfg or the more convenient StartAffinity which works great with Windows XP.
All in all, I think you might be expecting too much from dual core. It is a great technology, but it ain't revolution. ;)
Thank you for the advice. This is probably one of those situations when i just have entirely too much time on my hands and like to see how I can tweak things. I will check out Startaffinity though because imagecfg and I have not managed to get along as of yet.



Commodore 64 overclocked into outerspace
jph1589 is offline  
Old September 30th, 2006   #4
T-Rex
 
polobunny's Avatar
 
Join Date: May 2006
Posts: 5,050
Blog Entries: 6
Default

Oh I would know how it is, I do the same thing all the time. :P



polobunny is offline  
Closed Thread

  HardwareLogic > Specific Hardware > Processors

Tags
affinity, cpu, setting


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound setting at windows start hanafi Software & OSs 1 March 13th, 2008 19:09
Need help setting up Ubuntu for internet Banditman Software & OSs 14 March 4th, 2007 21:56
setting up home network simple_inhibition Internet/Networking 5 March 26th, 2006 16:06


All times are GMT -8. The time now is 16:59.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
© HardwareLogic 2005 - 2008. All Rights Reserved


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52