|
|
|
#1 |
|
Second Most EVIL
|
HOW TO: Process/File Affinity, Imagecfg Control
With HyperThreading and Dual Core CPUs being common in all kinds of systems there may be alot of people interested in controlling which processes use which CPU. This would work for Dual CPU systems to.
The program to use for this is Imagecfg.exe. You can google it to find a download, or get it off of a Windows 2000 or Windows XP Server Resource Kit. Imagecfg.exe will work with Windows XP(32 bit and 64 bit), Windows 2000, Windows 2003, and hopefully Windows Vista. It is a permanent change to the file, so make a backup before testing. Imagecfg.exe has a bunch of uses, use the "/?" switch to see all of your choices. To set a process's affinity use "imagecfg -a 0xn [File Path] [File Name] Replace n with the CPU you want the process to use. 1 = CPU0 2 = CPU1 4 = CPU2 8 = CPU3 So if you wanted to set C:\Test\Dummy.exe to use the second CPU(CPU1) ir would look like this: imagecfg -a 0x2 C:\Test\Dummy.exe For dual core or dual CPU users both CPUs will perform equally, but with HyperThreading enabled systems the first CPU (CPU0) is faster, because the 2nd CPU is just a virtual CPU recycling unused cycles from the first CPU. By moving processes around it can allow you maximize the performance of CPU intensive programs and games by assigning all necessary processes to 1 CPU, freeing the other CPU for the intensive application. I've just started messing around with this so I don't have any benchmarks or proof that this does anything, theoretically it should help, most likely in a very small ammount though. Flaws: Imagecfg does not seem to recognize folders with spaces in it like "C:\Program Files". To get by this copy the Imagecfg.exe file to that directory and exclude the directory /path. I'll update this with more information as I get it. Mark and Scott on here, Robpol86.com, and PlanetAMD64 Helped me get all this info.
__________________
![]() Chronicles 1 1:04: "Teh baybeez ov Noah (but onlyz da boyz, dey wuz missawjinist): Shem, Ham (om nom nom!), & Japheth. Dey wuz teh Japhethites lulz" Last edited by YARDofSTUF; 09-02-07 at 12:46 PM. |
|
|
|
|
|
#2 |
|
SG Enthusiast
|
Well, not all of it.
|
|
|
|
|
|
#3 | |
|
Second Most EVIL
|
Quote:
My bad, I left you out! I'm not even sure how to benchmark this effectively.
__________________
![]() Chronicles 1 1:04: "Teh baybeez ov Noah (but onlyz da boyz, dey wuz missawjinist): Shem, Ham (om nom nom!), & Japheth. Dey wuz teh Japhethites lulz" |
|
|
|
|
|
|
#4 |
|
resident plumber
Join Date: Apr 2001
Location: Clearwater, FL.
Posts: 12,094
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
are you still using this YoS ?
might try it myself i guess. |
|
|
|
|
|
#5 | |
|
Second Most EVIL
|
Quote:
Yup, use it for folding, run the games off the 2nd core, split EAC and LAME. Works out good.
__________________
![]() Chronicles 1 1:04: "Teh baybeez ov Noah (but onlyz da boyz, dey wuz missawjinist): Shem, Ham (om nom nom!), & Japheth. Dey wuz teh Japhethites lulz" |
|
|
|
|
|
|
#6 |
|
resident plumber
Join Date: Apr 2001
Location: Clearwater, FL.
Posts: 12,094
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
*bump*
just wanted to thank ya YoS, i was having to reset the affinity on each new work unit, just tried setting this up with F@H and it works just fine. |
|
|
|
|
|
#7 | |
|
Second Most EVIL
|
Quote:
Cool, glad it works for ya too. Do remember that each new core you download will start off trying to use both.
__________________
![]() Chronicles 1 1:04: "Teh baybeez ov Noah (but onlyz da boyz, dey wuz missawjinist): Shem, Ham (om nom nom!), & Japheth. Dey wuz teh Japhethites lulz" |
|
|
|
|
|
|
#8 | |
|
resident plumber
Join Date: Apr 2001
Location: Clearwater, FL.
Posts: 12,094
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
|
|
|
|
|
|
|
#9 | |
|
Second Most EVIL
|
Quote:
I usually stop F@H, then run imagecfg then reload F@H
__________________
![]() Chronicles 1 1:04: "Teh baybeez ov Noah (but onlyz da boyz, dey wuz missawjinist): Shem, Ham (om nom nom!), & Japheth. Dey wuz teh Japhethites lulz" |
|
|
|
|
|
|
#10 |
|
resident plumber
Join Date: Apr 2001
Location: Clearwater, FL.
Posts: 12,094
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
mine seems to be saving the affinity setting on new work units according to the task manager.
|
|
|
|
|
|
#11 | |
|
Second Most EVIL
|
Quote:
New units yes, new cores are what I mean. the other *.exe files.
__________________
![]() Chronicles 1 1:04: "Teh baybeez ov Noah (but onlyz da boyz, dey wuz missawjinist): Shem, Ham (om nom nom!), & Japheth. Dey wuz teh Japhethites lulz" |
|
|
|
|
|
|
#12 |
|
resident plumber
Join Date: Apr 2001
Location: Clearwater, FL.
Posts: 12,094
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
ah i see, i set the imagecfg to the console.exe, did you set yours to the individual cores ?
i wonder if i did this right i followed the instructions here and used "imagecfg -a 0x1 c:\path\to\file.exe", where file.exe is the console.exe |
|
|
|
|
|
#13 | |
|
Second Most EVIL
|
Quote:
__________________
![]() Chronicles 1 1:04: "Teh baybeez ov Noah (but onlyz da boyz, dey wuz missawjinist): Shem, Ham (om nom nom!), & Japheth. Dey wuz teh Japhethites lulz" |
|
|
|
|
|
|
#14 | |
|
resident plumber
Join Date: Apr 2001
Location: Clearwater, FL.
Posts: 12,094
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
|
|
|
|
|
|
|
#15 | |
|
Second Most EVIL
|
Quote:
all
__________________
![]() Chronicles 1 1:04: "Teh baybeez ov Noah (but onlyz da boyz, dey wuz missawjinist): Shem, Ham (om nom nom!), & Japheth. Dey wuz teh Japhethites lulz" |
|
|
|
|
|
|
#16 |
|
resident plumber
Join Date: Apr 2001
Location: Clearwater, FL.
Posts: 12,094
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
i just set the console affinity and it seems to work.
|
|
|
|
|
|
#17 |
|
Member
Join Date: May 2007
Posts: 56
![]() ![]() |
Great guide, thanks. How can I undo the settings I added? In other words I want to enable the app on all the cores (I have a q6600)?
Thanks. |
|
|
|
|
|
#18 |
|
Member
Join Date: May 2007
Posts: 56
![]() ![]() |
The answer is to backup the exe first since this utility literally modifies the exe you point it to use. It's only useful if you literally want the app to stay running on one and only one core.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| No delays in birth control prescriptions | BaLa | General Discussion Board | 4 | 04-03-05 01:46 AM |
| Microsoft - Why?! | Joel | General Discussion Board | 7 | 01-13-04 03:27 PM |
| Have you ever dealt with a control freak? | Debbie | General Discussion Board | 41 | 08-18-03 07:38 PM |
| Anyone familiar with Microsoft access? | CoolJ | Software Forum | 6 | 04-16-03 11:33 PM |
| Is everybody on drugs or w33d tonight? | Brent | General Discussion Board | 7 | 04-14-03 10:41 PM |