imagecfg does not appear to set processor affinity

J

John Burn

I am hoping someone can help me here. I am trying to
force two executables to use only CPU0 when they run. I
don't want to have to config them from Task Mgr every
time they run, so I downloaded the imagecfg.exe utility.
Running imagecfg -u <exec> works, but when I then run
imagecfg -a 0x1 <exec>, the file does not appear to be
patched. Every time I run the executable, it will use the
next CPU, i.e. first time it will use CPU0, the next time
CPU1, the next CPU2 and so on. The application is not
running when I perform the patch.

Here is the output from imagecfg.exe when the commands
are run:

C:\Program Files\Handspring>imagecfg -u HotSync.exe
HotSync.exe contains the following configuration
information:
Subsystem Version of 4.0
Stack Reserve Size: 0x100000
Stack Commit Size: 0x1000
HotSync.exe updated with the following configuration
information:
HotSync.exe contains the following configuration
information:
Subsystem Version of 4.0
Image can only run in uni-processor mode on multi-
processor systems
Stack Reserve Size: 0x100000
Stack Commit Size: 0x1000

C:\Program Files\Handspring>imagecfg -a 0x1 HotSync.exe
HotSync.exe contains the following configuration
information:
Subsystem Version of 4.0
Image can only run in uni-processor mode on multi-
processor systems
Stack Reserve Size: 0x100000
Stack Commit Size: 0x1000

Thanks,
John

P.S. Remove "_nospam" in my e-mail address to contact me
directly.
 
R

rfox71

John said:
I am hoping someone can help me here. I am trying to
force two executables to use only CPU0 when they run. I
don't want to have to config them from Task Mgr every
time they run, so I downloaded the imagecfg.exe utility.
Running imagecfg -u exec works, but when I then run
imagecfg -a 0x1 exec, the file does not appear to be
patched. Every time I run the executable, it will use the
next CPU, i.e. first time it will use CPU0, the next time
CPU1, the next CPU2 and so on. The application is not
running when I perform the patch.


I am having a similar problem iwth imagecfg -a when I apply the mask to
a process it stick but it only seem to be temporay. anything like
rebooting or patching seems to wipe it out. I thought the file change
was supposed to be permanent, but this is not turning out to be the
case...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top