![]() |
Sharky Extreme : Forums: |
|
![]() |
| ||||||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Tiger Shark
Join Date: Oct 2002
Posts: 567
|
Dual Core Question - Permanently setting CPU affinity for a program; is it possible?
Is it possible to permanently set CPU core affinity for a program? It seems that I have to reset it every time I reopen an application or game. Is there any way to make an affinity permanent? Also, warcraft 3 won't allow me to open the affinity console when I try to open it from the task panel. Here's the message it gives me when I try to do so.
![]() Why is it doing that and is it possible to bypass it so that I can set an affinity? Thanks
__________________
Main Rig - AMD Phenom II 940 | ECS A780GM-A Ultra | Sapphire Radeon HD 4850 | G.SKILL 4GB DDR2 | Audigy 2 ZS Platinum | Enermax EG651P-VE M | Lian Li PC V1200B Plus | Dell 2407WFP | Windows 7 Ultimate Retail |
|
|
|
|
|
#2 |
|
morte prima di disonore
Join Date: Nov 2000
Posts: 19,948
|
Process affinity is dynamic, it cannot be set permanently unless there is a program option or it is hard coded in the program.
The access denied message you received indicates that you do not have sufficient rights to the running program. Do you have a reason you want to change the affinity? If you want the program to run at a higher priority, that can be permanently set by using a batch or script file to run the program using the START command.
__________________
Notebook: Core Duo T7200, 4GB Mem, Seagate 200GB, Quadro NVS 110, Vista Business Workstation: Dual Xeon E5405 Quads, 16GB Mem, Areca 1210 4TB Raid 5, 1.5TB Raid 1, Quadro NVS 290, Viewsonic VP191b & VA2026w, Windows 7, VMware IT questions? Datamation. Server questions? Server Watch Forums. Enterprise questions? Enterprise IT Planet Forums.
ua549.com |
|
|
|
|
|
#3 | |
|
Great White Shark
Join Date: Nov 2000
Location: Duluth, Denial, Only certain songs.
Posts: 7,365
|
You can quasi-permanently set processor affinity by using the command imagecfg on the program you wish to use.
For example, I have had nothing but issues with FarCry, until I set the processor affinity to only a single processor. Weird, but it happens. You use a program called imagecfg.exe It should be in your Windows install. If it isn't, you can download it at several places. You then enter these commands. The first undoes any previous affinity Windows has set. This step isn't necessarily needed, it's just good practice. The next assigns the process to one CPU or the other. file.exe is the program you wish to change the affinity for. Code:
imagecfg -u file.exe imagecfg -a 0x1 file.exe 0x2 is CPU 1 *Edit: One more thing I found: Quote:
__________________
Crusader for the 64-bit Era. New Rule: 2GB per core, minimum. Intel Q9550 @3.20GHz | Zalman 8700NT | Asus P5K-E 8GB PC2-6400 G.Skill DDR2 | EVGA 8800GT 512MB 192.05 drivers | X-Fi Xtreme Gamer Lancool K7 |Silverstone 700w PSU | Klipsch ProMedia 5.1 Ultra | Vista x64 Home Premium Last edited by James; 12-24-2005 at 12:24 PM. |
|
|
|
|
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|