Processor Affinity (IIS 6.0)
This feature of IIS 6.0 is available only when IIS is running in worker process isolation mode.
On multi-CPU servers, application pools can be configured to establish affinity between worker processes and multiple CPUs to more efficiently use CPU caches. Processor affinity is used in conjunction with the processor affinity mask setting to specify CPUs.
You can set processor affinity from the command line by using the set command with Adsutil.vbs. To set processor affinity, configure the SMPAffinitized and SMPProcessorAffinityMask metabase properties. Assigning processor affinity involves these steps:
To enable processor affinity for an application pool
To assign processor affinity by binding an application pool to a specified processor
For example, if you want to bind the worker processes that serve your FinanceAppPool to processors 0, 1, 2, and 3 of an eight-processor computer, type the following command:
cscript %SystemDrive%\Inetpub\AdminScripts\adsutil.vbs set W3SVC/AppPools/FinanceAppPool/SMPProcessorAffinityMask 0xF