Setting 2600k CPU affinity in Shortcut text...?

Associate
Joined
16 Oct 2007
Posts
595
Here's the Issue, hopefully a Windows boffin can advise on the solution :)

Windows 7 x64 running 3D software.
2600k set with HyperThreading On.
I run Lightwave 3D which has two separate programs in it.
One program (the modeller) only uses a single CPU core, the other (renderer) takes advantage of all the cores available in 2600k, 8 with HT.

Been reading up on Hyperthreading/Core Parking in Windows 7 and its better performance wise with my single core program to disable all virtual cores.
Core parking is good in this case.

I have been setting CPU Affinity for the program's process in Task Manager, but is a pain in the butt to have to do that every time I restart the program.

I think you can amend the Shortcut for the program to have a command that sets affinity every time the program is run?




Thanks for any help. :)
 
you create a batch file with something like

start "" /D"path to exe" /AFFINITY [hex affinity] exename.exe [parameters]

in it

open a dos window a type
start /?
to show help for start command
 
Hi, thanks for the reply.

It wasn't so much the processer priority I was looking to set though (Right click process in Task manager - Options to set priority(no) or Set Affinity(Yes) , but which CPU cores were activated when i ran the program with the amended shortcut link?


Sorry if I've misunderstood your reply. :)

thanks.
 
C:\Windows\System32\cmd.exe /C start "" /affinity 1 "path to your program"

You could try that as your shortcut, that would start program using only CPU 0.
 
Hi, thanks for the reply.

It wasn't so much the processer priority I was looking to set though (Right click process in Task manager - Options to set priority(no) or Set Affinity(Yes) , but which CPU cores were activated when i ran the program with the amended shortcut link?


Sorry if I've misunderstood your reply. :)

thanks.

No worries I shall explain
start "" /D"path to exe" /AFFINITY [hex affinity] exename.exe [parameters]
/AFFINITY [hex affinity]

^this bit is where you set the affinity for the program you are running
AFFINITY , is which CPU core to run something ON
 
Back
Top Bottom