Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Processor Affinity - Add Set Affinity to Context Menu

 

Processor Affinity - Add Set Affinity to Context Menu

How to Add or Remove "Run with CPU Affinity" to the Context Menu
Published by Brink
05-10-2010
Default Processor Affinity - Add Set Affinity to Context Menu

How to Add or Remove "Run with CPU Affinity" to the Context Menu

information   Information
By default, Windows 7 and Vista runs an application on all available cores of the processor. If you have a multi-core processor, then this will show you how to add or remove Run with CPU Affinity from all application files and shortcuts context menu to set processor affinity to an application to control which core(s) of the processor an application will run on.

If the application and CPU supports Symmetric Multiprocessing (SMP) or HyperThreading (HT), then Windows will automatically adjust the application's usage of each processor core for the best performance. You will not gain much, if anything, from manually changing the processor affinity for these type od applications.
Note   Note
The affinity changes you make to the current instance of an application or process are only temporary and not set permanently.

Once you close the application or restart your system, Windows forgets your set affinity and automatically sets back the default affinity of the application running on all available cores of the processor.
warning   Warning
I have included REG downloads below to add context menu items for up to a 12 core processor. How many cores you actually have will depend on your processor. You can add one or more of any of the following Run with CPU Affinity context menu items below to use as needed.

DO NOT ADD A CONTEXT MENU ITEM numbered above how many cores you actually have.

You can quickly see how many processor cores you have by opening Task Manager (CTRL+SHIFT+ESC), clicking on the Performance tab, and counting how many CPU Usage History graphs you have.

Processor Affinity - Add Set Affinity to Context Menu-task_manager.jpg

EXAMPLE: Run with CPU Affinity Added or Removed from Context Menu
Processor Affinity - Add Set Affinity to Context Menu-default.jpgProcessor Affinity - Add Set Affinity to Context Menu-added_exe_shortcuts.jpg
Processor Affinity - Add Set Affinity to Context Menu-added_pinned_to_start_menu.jpgProcessor Affinity - Add Set Affinity to Context Menu-added_takbar_icons.jpg




OPTION ONE

Using a REG File Download

NOTE: You can only merge these REG files while logged in as an administrator. See warning box above.

CPU-0 = Processor Core 1, CPU-1 = Processor Core 2, etc.......
1. To Add Run with CPU-0 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-0_Affinity_to_Context_Menu.reg
download
2. To Remove Run with CPU-0 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-0_Affinity_from_Context_Menu.reg
download
3. To Add Run with CPU-1 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-1_Affinity_to_Context_Menu.reg
download
4. To Remove Run with CPU-1 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-1_Affinity_from_Context_Menu.reg
download
5. To Add Run with CPU-2 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-2_Affinity_to_Context_Menu.reg
download
6. To Remove Run with CPU-2 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-2_Affinity_from_Context_Menu.reg
download
7. To Add Run with CPU-3 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-3_Affinity_to_Context_Menu.reg
download
8. To Remove Run with CPU-3 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-3_Affinity_from_Context_Menu.reg
download
9. To Add Run with CPU-4 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-4_Affinity_to_Context_Menu.reg
download
10. To Remove Run with CPU-4 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-4_Affinity_from_Context_Menu.reg
download
11. To Add Run with CPU-5 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-5_Affinity_to_Context_Menu.reg
download
12. To Remove Run with CPU-5 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-5_Affinity_from_Context_Menu.reg
download
13. To Add Run with CPU-6 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-6_Affinity_to_Context_Menu.reg
download
14. To Remove Run with CPU-6 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-6_Affinity_from_Context_Menu.reg
download
15. To Add Run with CPU-7 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-7_Affinity_to_Context_Menu.reg
download
16. To Remove Run with CPU-7 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-7_Affinity_from_Context_Menu.reg
download
17. To Add Run with CPU-8 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-8_Affinity_to_Context_Menu.reg
download
18. To Remove Run with CPU-8 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-8_Affinity_from_Context_Menu.reg
download
19. To Add Run with CPU-9 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-9_Affinity_to_Context_Menu.reg
download
20. To Remove Run with CPU-9 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-9_Affinity_from_Context_Menu.reg
download
21. To Add Run with CPU-10 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-10_Affinity_to_Context_Menu.reg
download
22. To Remove Run with CPU-10 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-0_Affinity_from_Context_Menu.reg
download
23. To Add Run with CPU-11 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-11_Affinity_to_Context_Menu.reg
download
24. To Remove Run with CPU-11 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-11_Affinity_from_Context_Menu.reg
download
25. Click on Save, and save the .reg file to the desktop.

26. Right click the downloaded .reg file on the Desktop and click on Merge.

27. Click on Run, Yes, Yes, and OK when prompted.

28. When done, you can delete the downloaded .reg file(s) on the desktop if you like.





OPTION TWO

Using a BAT File Download

NOTE: You can only merge these BAT files while logged in as an administrator. See warning box above. Special thanks to Dwarf for this option.

CPU-0 = Processor Core 1, CPU-1 = Processor Core 2, etc.......
1. To Add Run with CPU-0 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-0_Affinity_to_Context_Menu.bat
download
2. To Remove Run with CPU-0 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-0_Affinity_from_Context_Menu.bat
download
3. To Add Run with CPU-1 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-1_Affinity_to_Context_Menu.bat
download
4. To Remove Run with CPU-1 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-1_Affinity_from_Context_Menu.bat
download
5. To Add Run with CPU-2 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-2_Affinity_to_Context_Menu.bat
download
6. To Remove Run with CPU-2 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-2_Affinity_from_Context_Menu.bat
download
7. To Add Run with CPU-3 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-3_Affinity_to_Context_Menu.bat
download
8. To Remove Run with CPU-3 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-3_Affinity_from_Context_Menu.bat
download
9. To Add Run with CPU-4 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-4_Affinity_to_Context_Menu.bat
download
10. To Remove Run with CPU-4 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-4_Affinity_from_Context_Menu.bat
download
11. To Add Run with CPU-5 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-5_Affinity_to_Context_Menu.bat
download
12. To Remove Run with CPU-5 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-5_Affinity_from_Context_Menu.bat
download
13. To Add Run with CPU-6 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-6_Affinity_to_Context_Menu.bat
download
14. To Remove Run with CPU-6 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-6_Affinity_from_Context_Menu.bat
download
15. To Add Run with CPU-7 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-7_Affinity_to_Context_Menu.bat
download
16. To Remove Run with CPU-7 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-7_Affinity_from_Context_Menu.bat
download
17. To Add Run with CPU-8 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-8_Affinity_to_Context_Menu.bat
download
18. To Remove Run with CPU-8 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-8_Affinity_from_Context_Menu.bat
download
19. To Add Run with CPU-9 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-9_Affinity_to_Context_Menu.bat
download
20. To Remove Run with CPU-9 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-9_Affinity_from_Context_Menu.bat
download
21. To Add Run with CPU-10 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-10_Affinity_to_Context_Menu.bat
download
22. To Remove Run with CPU-10 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-0_Affinity_from_Context_Menu.bat
download
23. To Add Run with CPU-11 Affinity to Context Menu
A) Click on the Download button below to download the file below.

Add_Run_with_CPU-11_Affinity_to_Context_Menu.bat
download
24. To Remove Run with CPU-11 Affinity from Context Menu
A) Click on the Download button below to download the
file below.

Remove_Run_with_CPU-11_Affinity_from_Context_Menu.bat
download
25. Click on Save, and save the .bat file to the desktop.

26. Right click the downloaded .bat file on the Desktop and click on Run as administrator.

27. Click on Run and Yes when prompted.

28. When done, you can delete the downloaded .bat file(s) on the desktop if you like.
That's it,
Shawn




Published by
Brink's Avatar
Administrator

Join Date: Oct 2008
Location: Texas
Posts: 37,303

Tutorial Tools
Comment

 Processor Affinity - Add Set Affinity to Context Menu problems?



Tutorial Tools



Similar Threads for: Processor Affinity - Add Set Affinity to Context Menu
Windows 7 Tutorial Category
Mouse lag and fps problems related to processor affinity Hardware & Devices
All games crash unless I set affinity - 2 cores Gaming
How to set affinity for Media Center? Media Center
Processor Affinity - Set for Applications Tutorials
Set affinity in task mgr as default Performance & Maintenance


All times are GMT -5. The time now is 03:06 AM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30