加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows-server-2008-r2 – 处理器关联掩码(IIS)的公式

发布时间:2020-12-13 23:30:59 所属栏目:Windows 来源:网络整理
导读:我有一个24核/ 48 GB RAM服务器机器,我想通过IIS高级设置将工作进程的处理器关联设置为最后12个核心,是否有任何公式,我不想通过任务管理器设置亲和力作为此池经常被回收. http://www.iis.net/configreference/system.applicationhost/applicationpools/add/c
我有一个24核/ 48 GB RAM服务器机器,我想通过IIS高级设置将工作进程的处理器关联设置为最后12个核心,是否有任何公式,我不想通过任务管理器设置亲和力作为此池经常被回收.
http://www.iis.net/configreference/system.applicationhost/applicationpools/add/cpu

smpProcessorAffinityMask
Optional uint attribute.

Specifies the hexadecimal processor mask for multi-processor
computers,which indicates to which CPU the worker processes in an
application pool should be bound. Before this property takes effect,
the smpAffinitized attribute must be set to true for the application
pool.

Note: On 64-bit computers,the smpProcessorAffinityMask attribute
contains the low-order DWORD for the processor mask,and the
smpProcessorAffinityMask2 attribute contains the high-order DWORD for
the processor mask. On 32-bit computers,the smpProcessorAffinityMask2
attribute has no effect.

If you set the value to 1 (which corresponds to 00000000000000001 in
binary),the worker processes in an application pool run on only the
first processor. If you set the value to 2 (which corresponds to
0000000000000010 in binary),the worker processes run on only the
second processor. If you set the value to 3 (which corresponds to
0000000000000011 in binary) the worker processes run on both the first
and second processors.

Note: Do not set this property to 0. Doing so disables symmetric
multiprocessing (SMP) affinity and creates an error condition. This
means that processes running on one CPU will not remain affiliated
with that CPU throughout their lifetime.

The default value is 4294967295.

首先,将smpAffinitized设置为true.

处理器识别从右到左.从处理器0开始.设置与最后12个处理器的亲和性:

0000 0000 1111 1111 1111 0000 0000 0000

然后将其转换为十六进制:

0x1FFE000

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读