Re: Set Affinity on Dual Core



In article <zqd9wr7z5coi$.1t2k0yxz841pn$.dlg@xxxxxxxxxx>, Michael Fritz
says...
Hi,

I wonder if sbdy knows why I can't set an executables CPU affinity in the
task manager. This menu item is simply disabled. And yes, I've certainly a
Core2Duo ;-)

BTW if setting this option do you know if this it temporary or permanently
after a reboot?

It's temporary.

To get "permanent" affinity you can either force affinity via API calls
(mentioned elsewhere in this thread) or you can use IMAGECFG.EXE to set
the affinity in the EXE itself.

e.g I used IMAGECFG to mark ibserver.exe (InterBase) with affinity to
CPU1, to address the dual cpu/core performance issues that the version
of Interbase that we use

ImageCfg.exe is a Microsoft Util - but I forget how we acquired it.
iirc it was on a Windows 2000 server CD or something.

Google and ye shall find I guess.

:)


Of course, if using ImageCfg to set the affinity of your EXE, you will
need to re-run ImageCfg every time you compile/build before you ship the
EXE.

hth


--
Jolyon Smith
Say, do any of you guys know how to Madison?
.