To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here





 Home

News

Forums

Hardware

CPUs

Motherboards

Video

Guides

CPU Prices

RAM Prices

Shop



Sharky Extreme : Forums:


Go Back   Sharky Forums > Hardware Specific > CPU/Processors & Overclocking

CPU/Processors & Overclocking Discuss Intel & AMD CPUs. Need help? Overclockers welcome!

Reply
 
Thread Tools Search this Thread Display Modes
Old 12-24-2005, 04:17 AM   #1
ynd Aznbnet
Tiger Shark
 
ynd Aznbnet's Avatar
 
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
ynd Aznbnet is offline   Reply With Quote
Old 12-24-2005, 11:05 AM   #2
ua549
morte prima di disonore
 
ua549's Avatar
 
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

ua549 is offline   Reply With Quote
Old 12-24-2005, 12:05 PM   #3
James
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
0x1 is CPU 0
0x2 is CPU 1

*Edit: One more thing I found:

Quote:
Flaws:
Imagecfg does not seem to recognize folders with spaces in it like "C:\Program Files". To get by this copy the Imagecfg.exe file to that directory and exclude the directory /path.
__________________

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.
James is offline   Reply With Quote
Reply

Bookmarks
Go Back   Sharky Forums > Hardware Specific > CPU/Processors & Overclocking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:50 PM.




Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.