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 Display Modes
Old 12-24-2005, 03:17 AM   #1
ynd Aznbnet
Tiger Shark
 
ynd Aznbnet's Avatar
 
Join Date: Oct 2002
Posts: 579
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 | eVGA GTX 460 SC 768MB | 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, 10:05 AM   #2
ua549
morte prima di disonore
 
ua549's Avatar
 
Join Date: Nov 2000
Posts: 20,802
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.
__________________
Men never do evil so completely and cheerfully as when they do it from religious conviction. - Blaise Pascal (1623-1662), Pensées


Retired since 1998 and enjoying every minute of it.
ua549 is offline   Reply With Quote
Old 12-24-2005, 11:05 AM   #3
James
Great White Shark
 
Join Date: Nov 2000
Location: Alpharetta, Denial, Only certain songs.
Posts: 7,820
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 | Intel X25-M G2 80GB
8GB PC2-6400 G.Skill DDR2 | XFX 5770 10.7 Drivers | X-Fi Xtreme Gamer
Lancool K7 |Silverstone 700w PSU | Klipsch ProMedia 5.1 Ultra | Windows 7 Pro x64

Last edited by James; 12-24-2005 at 11:24 AM.
James is offline   Reply With Quote
Reply

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


Thread Tools
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 05:39 PM.




Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

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