Setting programs with custom affinity

TheDecentGatsby

Prominent
Jul 23, 2017
23
0
510
Hey guys,

I am running Windows 10 primarily for gaming purposes and I would like to set some of my programs to only run on a few cores. I am using an AMD FX-9590.

For example, I always have Discord running in the background and would like to have that set to only use maybe 1 or 2 of my cores instead of all 8. There's really no reason for Discord to use all 8. I have to manually set the affinity every time I reboot or restart. Just getting annoying.

I'd also like Steam to run on less cores as well, granted this wont interfere with games when they are opened (Like having Steam use 4 cores won't make a game open and use only 4 as well).

I know there are many guides, but most are confusing to me.

Any help is appreciated
 
Solution
cmd.exe /c start "Program Name" /affinity # "Full path of application file"​
example:
(For only on CPU 0)
cmd.exe /c start "Process Monitor" /affinity 1 "E:\Programs\Process Monitor 3.05\Procmon.exe"

(For on CPU 0 and CPU 3)
cmd.exe /c start "Process Monitor" /affinity 9 "E:\Programs\Process Monitor 3.05\Procmon.exe"

source: https://www.eightforums.com/threads/cpu-affinity-shortcut-for-a-program-create-in-windows.40339/
cmd.exe /c start "Program Name" /affinity # "Full path of application file"​
example:
(For only on CPU 0)
cmd.exe /c start "Process Monitor" /affinity 1 "E:\Programs\Process Monitor 3.05\Procmon.exe"

(For on CPU 0 and CPU 3)
cmd.exe /c start "Process Monitor" /affinity 9 "E:\Programs\Process Monitor 3.05\Procmon.exe"

source: https://www.eightforums.com/threads/cpu-affinity-shortcut-for-a-program-create-in-windows.40339/
 
Solution