Win7 Permanently set affinity to certain cores ?

C64

C64

Soldato
Joined
16 Mar 2007
Posts
12,884
Location
London
Anyone any idea what the command line to add to firefox would be to permanently use cores 3 and 4 on a Q6600 ?
 
Why? :/

And I am sure I have read about a small utility that will do it. I am far too lazy to search for it though. Have a look.
 
change the target line on the shortcut to this,

c:\windows\system32\cmd.exe /C start /affinity 1 "C:\Program Files\Mozilla Firefox\firefox.exe"

the number 1 correlates to cpu 0 and if you changed it to 2 it would relate to cpu1 etc.

it should flash up a dos window and then close it as it launches firefox, not sure if it works on xp 32bit, but apperently its on xp 64 and vista and above.
 
change the target line on the shortcut to this,

c:\windows\system32\cmd.exe /C start /affinity 1 "C:\Program Files\Mozilla Firefox\firefox.exe"

the number 1 correlates to cpu 0 and if you changed it to 2 it would relate to cpu1 etc.

it should flash up a dos window and then close it as it launches firefox, not sure if it works on xp 32bit, but apperently its on xp 64 and vista and above.

Can you actually confirm this works?
I tried this with TS3 to set affinity on start-up and it did not change it
ended up writing a batch file to start it normally and then used process.exe
to set the affinity once it had launched
 
lurkio, ive never tried it, just read about it. With the quote marks because of the space in the path you might need to remve the /C as it is possible that it thinks the end of the command is where the quote starts, shouldnt, but is possible.

Failing that method, there is somthing called imagecfg that Ive read about that can modify the .exe to always run on a specific core, but make a backup first as since it modifies the exe any patches etc will fail.
 
lurkio, ive never tried it, just read about it. With the quote marks because of the space in the path you might need to remve the /C as it is possible that it thinks the end of the command is where the quote starts, shouldnt, but is possible.

Failing that method, there is somthing called imagecfg that Ive read about that can modify the .exe to always run on a specific core, but make a backup first as since it modifies the exe any patches etc will fail.

Yeah I thought you had not tried it

I tried it myself a while ago, the app would launch fine but it never set the affinity at all :(

Ended up getting process.exe from here http://www.beyondlogic.org/solutions/processutil/processutil.htm


then wrote a batch file to do the rest (my TS3 start batch file below)


start "" /b /D"%CD%" ts3client_win64.exe

PING 1.1.1.1 -n 1 -w 3000 >NUL

process -a ts3client_win64.exe 01
 
Really curious why you'd want to do this with Firefox :confused:. Better to let windows handle which cores threads get time on, unless there's a serious problem you're having running on all cores, e.g. with older games as Jokester mentions..
 
You might need to use the old filename format in order for the shortcut to work, at least in my experience. In CMD dir /x shows you the old name.
 
I want to do it so when watching flash it all runs on the cooler 2 cores.

ideally I want plug in container too thanks to the guy that posted the target line
 
Back
Top Bottom