Windows 10: How to permanently set cpu affinity for programs?

Discus and support How to permanently set cpu affinity for programs? in Windows 10 Performance & Maintenance to solve the problem; Using the command "wmic process where name="mspaint.exe" CALL setpriority128" would set paint to a high priority but what if i want to set the affinity... Discussion in 'Windows 10 Performance & Maintenance' started by quicksilverstud, Nov 19, 2019.

  1. How to permanently set cpu affinity for programs?


    Using the command "wmic process where name="mspaint.exe" CALL setpriority128" would set paint to a high priority but what if i want to set the affinity of paint, is there a command for program affinity?

    If not i know process hacker supposedly does the trick but i dont know how accurate and legit process hacker is. Do you guys know any tricks?

    :)
     
    quicksilverstud, Nov 19, 2019
    #1
  2. Yolvi Ell Win User

    CPU / CPU Processor problems / Processor affinity

    We appreciate the information you provided. Your processor is working as expected. CPU affinity is only showing CPU (0) since 1 processor is working at the moment. It's very likely that your computer is using a balanced power plan, so we suggest changing
    your power plan to High Performance by following these steps:

    • Right-click Start.
    • Click Power Options.
    • Choose High Performance.

    In addition to that, we recommend installing the latest updates to keep your system current and secure. Go to
    Start > Settings > Update & Security > Check for updates.

    Some programs may also be automatically launching whenever you boot your computer, affecting the performance. To disable them, follow these steps:

    • Right-click your taskbar.
    • Click Task Manager.
    • Under the Startup tab, find the programs that you don't need.
    • Right-click the program and choose Disable.

    You're also using your computer for a game that was designed to run on an earlier version of Windows, so it's possible that it's slowing down your computer. In this case, use the Compatibility Troubleshooter to find and fix problems with the program using
    these steps:

    • Click Start.
    • Type Troubleshooting and press Enter.
    • Click Run programs made for previous versions of Windows.
    • Click Next.
    • Choose the program from the list and click Next.

    Let us know if you need further assistance with your computer.
     
    Yolvi Ell, Nov 19, 2019
    #2
  3. Davie_C Win User
    How to set 8 core cpu in affinity settings

    Here is how to set your affinity settings using 8 core cpu splitting them into two 4 cpu cores

    cmd.exe /c start "WoWSLauncher" /affinity F "C:\Games\World_of_Warships\WoWSLauncher.exe"

    As you can see I added "F" next to /affinity that will let you use just 4 cores 0,1,2,3

    I can do it easy in task manager but got to keep doing it everytime i want to play the game.

    So if you want to use 0 1 2 3 cores just for the game you would add "F" in your line like so..

    for cores 4,5,6,7 Do this....

    Add F0 next to /affinity like so

    cmd.exe /c start "obs32" /affinity F0 "C:\Program Files (x86)\obs-studio\bin\32bit\obs32.exe"

    cmd.exe /c start "obs64" /affinity F0 "C:\Program Files (x86)\obs-studio\bin\64bit\obs64.exe"

    Depends on if using 32 or 64bit of the os.

    If doing it for obs it will not work as it can't find locale\eng-US.ini and failed to load locale but file is there.

    So thats how you would set your affinity settings splitting 8 cores into two 4 cores

    Am using windows 10.

    You want to use 0,1,2,3 for the game and 4,5,6,7 for obs.

    Only thing is that it does not save the settings of affinity after you exit the game it will return back to 8 cores when you start the game again.

    So if anyone knows how to Save the settings then please post here as i have hunted on the net for awhile now.
     
    Davie_C, Nov 19, 2019
    #3
  4. How to permanently set cpu affinity for programs?

    Permanent CPU Affinity ? without installing/running more software [SOLVED]

    I cannot Edit the old thread...

    Permanent CPU Affinity ? without installing/running more software

    Answer was very easy... Works with all software that does Not Run in Administrator Mode...

    Some softwares in Administrator Mode will Override the settings.

    depends on the software.

    just create a .bat file with the same name of the software in the same folder..

    for example:

    software.exe

    software.bat

    inside the .bat file:

    -----

    Code:
    @echo offstart /AFFINITY 0xHEX software.exepause----
    pause is just in case, the software gives an error, you can see what is it, but Not required if the software Works.

    replace HEX with a real Hexadecimal Value of the # of Cores.

    for example:

    Code:
    Hex 0x1 = core 0 "in TaskManager"Hex 0x2 = core 1 Hex 0x3 = core 0+1Hex 0x4 = core 2Hex 0x5 = 0+2Hex 0x6 = 1+2Hex 0x7 = 0+1+2HEx 0x8 = 3Hex 0x9 = 0+3Hex 0xA = 1+3Hex 0xB = 0+1+3Hex 0xC = 2+3Hex 0xD = 0+2+3Hex 0xE = 1+2+3Hex 0xF = 0+1+2+3Hex 0x10 = 4etc...
    Windows Calculator has Programmers Mode + Basic. (Alt+3) (Ctrl+F4)

    Click Bin,

    type the Cores/Threads you want, in Binary, for example: 10101010 or 01010101

    Click Hex to convert the values from Binary to Hexadecimal.

    Software Works in Hexadecimal, but Hardware Works in Binary.

    some softwares that have built-in --AFFINITY and --Threads in the command line, also needed.

    Almost No Software has that.

    ----------

    Code:
    start /AFFINITY 0xHEX software.exe --affinity 0xHEX --Threads #
    ----------

    create a shortcut for the .bat file.

    Run the .bat file.

    can also be a .cmd file.
     
    JuanPC2002, Nov 19, 2019
    #4
Thema:

How to permanently set cpu affinity for programs?

Loading...
  1. How to permanently set cpu affinity for programs? - Similar Threads - permanently set cpu

  2. How to permanently set cpu affinity for programs?

    in Windows 10 Gaming
    How to permanently set cpu affinity for programs?: Using the command "wmic process where name="mspaint.exe" CALL setpriority128" would set paint to a high priority but what if i want to set the affinity of paint, is there a command for program affinity?If not i know process hacker supposedly does the trick but i dont know how...
  3. How to permanently set cpu affinity for programs?

    in Windows 10 Software and Apps
    How to permanently set cpu affinity for programs?: Using the command "wmic process where name="mspaint.exe" CALL setpriority128" would set paint to a high priority but what if i want to set the affinity of paint, is there a command for program affinity?If not i know process hacker supposedly does the trick but i dont know how...
  4. How to permanently set cpu affinity for programs?

    in Windows 10 BSOD Crashes and Debugging
    How to permanently set cpu affinity for programs?: Using the command "wmic process where name="mspaint.exe" CALL setpriority128" would set paint to a high priority but what if i want to set the affinity of paint, is there a command for program affinity?If not i know process hacker supposedly does the trick but i dont know how...
  5. How to Permanently Set Priority & Affinity With Shortcut File

    in Windows 10 BSOD Crashes and Debugging
    How to Permanently Set Priority & Affinity With Shortcut File: You can set the priority and affinity of a program you want to run into a shortcut file, it does have some drawbacks. The most notable is that you have to be able to launch the process manually. If you can’t or the process is spawned by another program, it won’t work. For...
  6. How to Permanently Set Priority & Affinity Into Shortcut Program

    in Windows 10 Software and Apps
    How to Permanently Set Priority & Affinity Into Shortcut Program: You can set the priority and affinity of a program you want to run into a shortcut file, it does have some drawbacks. The most notable is that you have to be able to launch the process manually. If you can’t or the process is spawned by another program, it won’t work.1. Open...
  7. How to Permanently Set Priority & Affinity Into Shortcut Program

    in Windows 10 BSOD Crashes and Debugging
    How to Permanently Set Priority & Affinity Into Shortcut Program: You can set the priority and affinity of a program you want to run into a shortcut file, it does have some drawbacks. The most notable is that you have to be able to launch the process manually. If you can’t or the process is spawned by another program, it won’t work.1. Open...
  8. How to Permanently Set Priority & Affinity Into Shortcut Program

    in Windows 10 Gaming
    How to Permanently Set Priority & Affinity Into Shortcut Program: You can set the priority and affinity of a program you want to run into a shortcut file, it does have some drawbacks. The most notable is that you have to be able to launch the process manually. If you can’t or the process is spawned by another program, it won’t work.1. Open...
  9. How to set CPU affinity permanently for .exe without third party software

    in Windows 10 Customization
    How to set CPU affinity permanently for .exe without third party software: I want to set permanent CPU affinity for .exe file to one logical processor. But below are my restrictions for it.1 I don't want to use any third party software.2 I don't want to use shortcut or batch file of the .exeIs there any way I can set the affinity permanently so...
  10. How do I set affinity and priority for program permanently/automatically

    in Windows 10 Customization
    How do I set affinity and priority for program permanently/automatically: I have an app that seems to only be stable when given certain cores and a high priority, but each time I open it, I have to manually go into task manager todo this. How do I make it so that its affinity and priority are automatically set to these when I open it?...

Users found this page by searching for:

  1. obs cpu affinity permamently

    ,
  2. how to permanently set affinity in windows 10

    ,
  3. how to permanently set cpu affinity on windows 10

    ,
  4. permanently set cpu affinity windows 10,
  5. set affinity,
  6. Set /High /Affinity 3,
  7. wmic process where name= affinity,
  8. set cpu affinity windows 10 permanently,
  9. permanently set core affinity,
  10. how to set affinity permanently,
  11. affinity F0 scorpio.exe,
  12. set affinity permanently windows 10