Windows: restrict service to 2 cpus by default
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 14 Jan 2012 15:31:01 +0000 (10:31 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 18 Jan 2012 15:35:35 +0000 (07:35 -0800)
commit69196e41ec9c5a6ce8efd370fb8582f66667bcf7
tree68ee9ce63fa3de0f73de5f9b375125bcf3f0b2e2
parent7ae2c0df3373bdce129694efaf8d0097bab606da
Windows: restrict service to 2 cpus by default

Performance drops off considerably when the number of processors
increases due to lock contention and the cm_SyncOp wait processing.
If the MaxCPUs registry value is not set, limit ourselves to two.
Setting MaxCPUs to zero permits use of all CPUs.

Change-Id: I4bae328ed589811b0ea2a514501a0c1aa74e8015
Reviewed-on: http://gerrit.openafs.org/6555
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/afsd/afsd_init.c