• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

CPU Affinity Shortcut for a Program - Create in Windows


Posts
2
#41
Has anyone got this working with OBS Studio 64 bit? I got mine to work, I wanted to contribute to this thread.

This forum is frustrating... I can't post to this thread without Cloudflare blocking it! I get

"Oops! We ran into some problems.
Oops! We ran into some problems. Please try again later. More error details may be in the browser console."

It's blocking he command that OP is talking about. Below is a screenshot of how I got OBS running with this command.

notes-affinity-obs.PNG
 
Last edited:

My Computer

System One

  • OS
    Windows 10 Pro
    Computer type
    PC/Desktop
    CPU
    i9 9900k
    Motherboard
    ASUS Strix
    Memory
    16GB DDR4
    Graphics Card(s)
    MSI 1080 Ti
    Browser
    Chrome
    Antivirus
    Netscape Navigator

z3r010

BOFH
Administrator
Standish, England

Posts
4,667
#42
This forum is frustrating... I can't post to this thread without Cloudflare blocking it! I get

"Oops! We ran into some problems.
Oops! We ran into some problems. Please try again later. More error details may be in the browser console."
I 've never seen it do that before, are you trying to attach something?
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    me
Posts
2
#43
I 've never seen it do that before, are you trying to attach something?
No, I think it has to do with the lines where quotes and .exe is. In the screenshot the second line seems to trigger the Cloudflare error.

One thing to note: I changed my hexadecimal to F to utilize 4 CPU's. OBS didn't like being limited to 2.
 

My Computer

System One

  • OS
    Windows 10 Pro
    Computer type
    PC/Desktop
    CPU
    i9 9900k
    Motherboard
    ASUS Strix
    Memory
    16GB DDR4
    Graphics Card(s)
    MSI 1080 Ti
    Browser
    Chrome
    Antivirus
    Netscape Navigator
Posts
2
#44
Hi Brink,
Excellent post and valuable information. However, I currently have AMD Ryzen 3700x CPU 8 cores, but in task manager I see 16 cores, see snip below. Could you please let me know which of them I have to choose in order to allocate my last core (8)? Do I have to take into consideration 2 cores (I assume one of them is virtual core?). Or do I just allocate one of them? I am running a game which is designed to run on just one core therefore I wanted to allocate my last core which is used the least by my PC and would not interfere with other processes. I tried to allocate myself and noticed that the 14th is the 8th core but then I am left with the 15th core as per task manager. So what do I do with this - should I allocate it together with the 14th core assuming that 2x cores per task manager = 1 real core?

1575930650041.png
1575930666157.png


Your input would be much appreciated.
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen
    Motherboard
    x570
    Memory
    32gb
    Graphics Card(s)
    5700 xt
    Browser
    Chrome

Brink

Administrator
Administrator
mvp
Posts
24,259
#45
Hello @SweetPapaya, and welcome to Eight Forums. :)

AMD has multithreading like Intel's Hyper Threading.

It doubles your physical 8 cores to effectively be 16 (0 to 15) instead.

You could use core 15 for the last one.
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    1TB Samsung 970 EVO Plus M.2,
    250GB Samsung 960 EVO M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone
Posts
2
#46
Hello @SweetPapaya, and welcome to Eight Forums. :)

AMD has multithreading like Intel's Hyper Threading.

It doubles your physical 8 cores to effectively be 16 (0 to 15) instead.

You could use core 15 for the last one.
Thank you, Brink :)

What about core 14 then? Do they not work in a pair?
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen
    Motherboard
    x570
    Memory
    32gb
    Graphics Card(s)
    5700 xt
    Browser
    Chrome

Brink

Administrator
Administrator
mvp
Posts
24,259
#47
Thank you, Brink :)

What about core 14 then? Do they not work in a pair?

They will behave as single cores, but you could select more than one if wanted.
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    1TB Samsung 970 EVO Plus M.2,
    250GB Samsung 960 EVO M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

Fuzzee

New Member
Posts
2
#48
Hi, i am having a few custom Programs that i use with Microsoft Access Runtime 32bit in Windows 10 64 bit and i want them to only use CPU 0.
Some reports in my programs give me in random cases the error message "System Resource Exceeded" and the only solution that works is if manually set the affinity to CPU 0. I am confused on how to make the shortcut to set the affinity from the start at CPU0.
Ms Access is installed in location below:
C:\Program Files (x86)\Microsoft Office\OFFICE11\MSACCESS.EXE
And my Programs are in C:\Apps\.. For example:
C:\Apps\Orders.mde or C:\Apps\Support.mde

i tried the following but with no success!!
C:\Windows\System32\cmd.exe /c start "MSACCESS.EXE" /affinity 1 "C:\Apps\Orders.mde"
C:\Windows\System32\cmd.exe /c start "Orders.mde" /affinity 1 "C:\Apps\Orders.mde"
C:\Windows\System32\cmd.exe /c start "C:\Program Files (x86)\Microsoft Office\OFFICE11" /affinity 1 "C:\Apps\Orders.mde"
C:\Windows\System32\cmd.exe /c start "OFFICE11" /affinity 1 "C:\Apps\Orders.mde"
C:\Windows\System32\cmd.exe /c start "Microsoft Office Access" /affinity 1 "C:\Apps\Orders.mde"
C:\Windows\System32\cmd.exe /c start "Microsoft Office Access (32 bit)" /affinity 1 "C:\Apps\Orders.mde"

Any ideas?
 

My Computer

System One

  • OS
    Win10
    Computer type
    PC/Desktop

Brink

Administrator
Administrator
mvp
Posts
24,259
#49
Hi, i am having a few custom Programs that i use with Microsoft Access Runtime 32bit in Windows 10 64 bit and i want them to only use CPU 0.
Some reports in my programs give me in random cases the error message "System Resource Exceeded" and the only solution that works is if manually set the affinity to CPU 0. I am confused on how to make the shortcut to set the affinity from the start at CPU0.
Ms Access is installed in location below:
C:\Program Files (x86)\Microsoft Office\OFFICE11\MSACCESS.EXE
And my Programs are in C:\Apps\.. For example:
C:\Apps\Orders.mde or C:\Apps\Support.mde

i tried the following but with no success!!
C:\Windows\System32\cmd.exe /c start "MSACCESS.EXE" /affinity 1 "C:\Apps\Orders.mde"
C:\Windows\System32\cmd.exe /c start "Orders.mde" /affinity 1 "C:\Apps\Orders.mde"
C:\Windows\System32\cmd.exe /c start "C:\Program Files (x86)\Microsoft Office\OFFICE11" /affinity 1 "C:\Apps\Orders.mde"
C:\Windows\System32\cmd.exe /c start "OFFICE11" /affinity 1 "C:\Apps\Orders.mde"
C:\Windows\System32\cmd.exe /c start "Microsoft Office Access" /affinity 1 "C:\Apps\Orders.mde"
C:\Windows\System32\cmd.exe /c start "Microsoft Office Access (32 bit)" /affinity 1 "C:\Apps\Orders.mde"

Any ideas?
Hello Fuzzee, and welcome to Eight Forums. :)

You should be able to use this below for the shortcut.

You would have wanted to use the full path of the executable file in the part in red below.

cmd.exe /c start "Microsoft Access" /affinity 1 "C:\Program Files (x86)\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\Apps\Orders.mde"
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    1TB Samsung 970 EVO Plus M.2,
    250GB Samsung 960 EVO M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

Fuzzee

New Member
Posts
2
#50
Hello Fuzzee, and welcome to Eight Forums. :)

You should be able to use this below for the shortcut.

You would have wanted to use the full path of the executable file in the part in red below.

cmd.exe /c start "Microsoft Access" /affinity 1 "C:\Program Files (x86)\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\Apps\Orders.mde"

Thanks Brink it works fine!
 

My Computer

System One

  • OS
    Win10
    Computer type
    PC/Desktop

Brink

Administrator
Administrator
mvp
Posts
24,259
#51

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    1TB Samsung 970 EVO Plus M.2,
    250GB Samsung 960 EVO M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone
Posts
1
#52
Many thanks to OP, this worked great for setting cores on my 3900x, 12c/24T sitting at 10-30% usage under load and running neither program effectively at all.
I was trying to stream on twitch and I was getting stuttering, lag and dropped frames in game and in OBS.
For apex legends I set the affinity in the launcher app-Orgine. Which let all programs it started run with inherited settings, especially helpful since apex didn't allow for easy setting of affinity because of the anti cheat blocked the change.

Using: C:\Windows\System32\cmd.exe /c start "Orgin.exe" /affinity FFF "C:\Program Files (x86)\Origin\Origin.exe"
This set the game to just use the first and fastest CCD0 leaving the slightly slower CCD1 for OBS

Setting up OBS I was greeted with "failed to find locale/en-US.ini" same as wykydtronik above

Using:C:\Windows\System32\cmd.exe /c start "OBS Studio (64bit).Ink" /affinity FFF000 "C:\Program Files\obs-studio\bin\64bit\obs64.exe"


I fixed it by just opening up the shortcut and changing where it started in from C:\Windows\system32 to "C:\Program Files\obs-studio\bin\64bit"
Hopes this helps someone!

The 3900x is a beast I basically dedicated a 3600x to each program. I'm able to run apex legends at 1080p 144hz buttery smooth and run OBS medium 1080p at 6000Kbs with no lag or dropped frames
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    PC/Desktop
    CPU
    3900x
    Motherboard
    Gigabyte Aorus Elite X570 wifi
    Memory
    32gb 3600mhz
    Graphics Card(s)
    msi 1070 TI
    Browser
    firefox
    Antivirus
    windows defender

Brink

Administrator
Administrator
mvp
Posts
24,259
#53
I'm glad it could help @Dracoflame, and welcome to Eight Forums. :)
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    1TB Samsung 970 EVO Plus M.2,
    250GB Samsung 960 EVO M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

Users Who Are Viewing This Thread (Users: 0, Guests: 2)