Partager via


SMPProcessorAffinityMask

The SMPProcessorAffinityMask property configures the hexadecimal processor mask. The hexadecimal processor mask indicates to which CPU the worker processes in an application pool should be bound. Before this property takes affect, the SMPAffinitized property must be set to true for the application pool. These properties cannot be set through IIS Manager.

Note

Do not set this property to zero. Doing so causes no SMP affinity to be configured, creating an error condition. The default DWORD value is 4294967295 (or -1), which is represented in hexadecimal as 0xFFFFFFFF. A value of 0xFFFFFFFF in SMPProcessorAffinityMask indicates that all processors are enabled.

In the hexadecimal processor mask, each of the 8 hexadecimal places represents 4 processors where the right-most one is for the first 4 processors on your computer. For example, if you have a computer with 32 processors and you want to enable the 4th, 11th, 16th, 21st, and 31st processors, you would calculate the hexadecimal processor mask as follows.

Processor identification starts at 0, from right to left, so in binary, you would identify processors 4, 11, 16, 21, and 31 as:

0b 1000 0000 0010 0001 0000 1000 0001 0000

This number, converted to hexadecimal, is your processor mask:

0x80210810

Schema Attributes

Attribute Name

Value

ADSI/WMI Data Type

DWORD

ABO Data Type

DWORD_METADATA

Schema Default

4294967295

Internal Default

4294967295

Upper Bound

Not specified

Lower Bound

Not specified

Internal ID

9008

Friendly ID

MD_APPPOOL_SMP_AFFINITIZED_PROCESSOR_MASK

Property Attributes

INHERIT

User Type

IIS_MD_UT_SERVER

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path

IIS Admin Object Type

/LM/W3SVC/AppPools/application_pool_name

IIsApplicationPool

/LM/W3SVC/AppPools

IIsApplicationPools

Flags

There are no flags for this property.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also