NTVDM - Affinity command
 

This procedure has not been tested by Zycomp Systems Limited technical support department.

Ensure that you turn off the workstations 'System's Restore' and then reboot the pc before changing anything.

Ensure that you backup a copy of the existing ntvdm.exe to another drive source before attempting these next few steps.


To download the ImageCFG affinity mask tool, click here.

Copy imagecfg.exe to %systemroot%\system32 (or C:\Windows\system32), and %systemroot%\system32\dllcache (or C:\Windows\system32\dllcache). Doing so will make imagecfg a system command.
This tool only works on NT based operating systems (Windows NT, 2000 Family, XP Family, 2003 Family, Vista).
It will work on Multiprocessor machines and Uniprocessor machines with HyperThreading Technology (and multicore processors).
I was unable to find any documentation for this tool on Microsoft's website.

To use this tool to set affinity masks for an executable, type the following command in a command prompt window or run dialog:
            imagecfg -a 0x1 c:\path\to\file.exe

If the above didnt work, try typing the following:
            imagecfg -u c:\path\to\file.exe
            imagecfg -a 0x1 c:\path\to\file.exe

  • 0x1 = CPU0 (first logical/physical CPU)
  • 0x2 = CPU1 (second CPU)
  • 0x3 = CPU2 (third CPU)
  • etc...

This is what you should see in the command prompt window

 
       
  ©  1996 - 2007 - Zycomp Systems Limited.  All Rights Reserved.  Terms of use.  



 learn morelearn more