How to disable dual cpu automatically before launching an application

Hi,

I have an application that does not behave well when ran on dual cpu
systems. I am looking for a simple workaround to disable one cpu just prior
to lauching this application (ie: a batch file, or some other trick).

I have considered other alternatives like:

  1. insert /onecpu in the boot.ini line => but this disables dual cpu for
    all app’s which is not desired.

  2. Start the app in question - do “ctrl-alt-del”, select the process, and
    right click to use the “set affinity” to disable one cpu => does not work
    since the app is already started and damage is already done.

I would appreciate any suggestions.

Thanks!


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

My suggestion is to find the problem with runniong on mulitple CPUs and fix
it. There really isn’t any reason for not doing it.

If that fails to convince you, can you programatically set the affinity when
the program starts. I’m not sure that this is going to help, but it’s worth
a shot.

Dan

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@matrox.com
Sent: Tuesday, April 03, 2001 12:34 PM
To: NT Developers Interest List
Subject: [ntdev] How to disable dual cpu automatically before launching
an application

Hi,

I have an application that does not behave well when ran on dual cpu
systems. I am looking for a simple workaround to disable one cpu just prior
to lauching this application (ie: a batch file, or some other trick).

I have considered other alternatives like:

  1. insert /onecpu in the boot.ini line => but this disables dual cpu for
    all app’s which is not desired.

  2. Start the app in question - do “ctrl-alt-del”, select the process, and
    right click to use the “set affinity” to disable one cpu => does not work
    since the app is already started and damage is already done.

I would appreciate any suggestions.

Thanks!


You are currently subscribed to ntdev as: xxxxx@emulex.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com