43 writes to MaxNodeCount
Microsoft.Build (1)
Instance\ProjectInstance.cs (1)
2719
parameters.
MaxNodeCount
= maxNodeCount;
Microsoft.Build.Engine.UnitTests (41)
BackEnd\BuildManager_Tests.cs (11)
159
newParameters.
MaxNodeCount
= 1;
170
newParameters.
MaxNodeCount
= 3;
361
MaxNodeCount
= numberOfParallelProjectsToBuild,
2665
_parameters.
MaxNodeCount
= 3;
2735
_parameters.
MaxNodeCount
= 2;
2832
_parameters.
MaxNodeCount
= 2;
2932
_parameters.
MaxNodeCount
= 2;
3018
_parameters.
MaxNodeCount
= 2;
3297
MaxNodeCount
= 2,
4038
MaxNodeCount
= NativeMethodsShared.GetLogicalCoreCount(),
4085
MaxNodeCount
= 1,
BackEnd\LoggingService_Tests.cs (2)
94
parameters.
MaxNodeCount
= 4;
1089
parameters.
MaxNodeCount
= 2;
BackEnd\Scheduler_Tests.cs (10)
295
_host.BuildParameters.
MaxNodeCount
= 4;
320
_host.BuildParameters.
MaxNodeCount
= 3;
343
_host.BuildParameters.
MaxNodeCount
= 3;
379
_host.BuildParameters.
MaxNodeCount
= 3;
421
_host.BuildParameters.
MaxNodeCount
= 3;
451
_host.BuildParameters.
MaxNodeCount
= 3;
481
_host.BuildParameters.
MaxNodeCount
= 3;
518
_host.BuildParameters.
MaxNodeCount
= 3;
542
_host.BuildParameters.
MaxNodeCount
= 4;
573
_host.BuildParameters.
MaxNodeCount
= 3;
BackEnd\TaskHost_Tests.cs (10)
394
_mockHost.BuildParameters.
MaxNodeCount
= 4;
407
_mockHost.BuildParameters.
MaxNodeCount
= 4;
420
_mockHost.BuildParameters.
MaxNodeCount
= 4;
433
_mockHost.BuildParameters.
MaxNodeCount
= 4;
451
_mockHost.BuildParameters.
MaxNodeCount
= 4;
472
_mockHost.BuildParameters.
MaxNodeCount
= 4;
491
_mockHost.BuildParameters.
MaxNodeCount
= 4;
511
_mockHost.BuildParameters.
MaxNodeCount
= 4;
530
_mockHost.BuildParameters.
MaxNodeCount
= 1;
540
_mockHost.BuildParameters.
MaxNodeCount
= 4;
ProjectCache\ProjectCacheTests.cs (8)
419
MaxNodeCount
= Environment.ProcessorCount
428
MaxNodeCount
= Environment.ProcessorCount
745
MaxNodeCount
= Environment.ProcessorCount,
1250
MaxNodeCount
= 1
1396
MaxNodeCount
= NativeMethodsShared.GetLogicalCoreCount(),
1469
MaxNodeCount
= NativeMethodsShared.GetLogicalCoreCount(),
1529
MaxNodeCount
= NativeMethodsShared.GetLogicalCoreCount(),
1609
MaxNodeCount
= NativeMethodsShared.GetLogicalCoreCount()
MSBuild (1)
XMake.cs (1)
1478
parameters.
MaxNodeCount
= cpuCount;
21 references to MaxNodeCount
Microsoft.Build (19)
BackEnd\BuildManager\BuildManager.cs (1)
2902
int cpuCount = _buildParameters!.
MaxNodeCount
;
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (3)
55
return ComponentHost.BuildParameters.
MaxNodeCount
- _nodeContexts.Count;
85
if (_nodeContexts.Count + numberOfNodesToCreate > ComponentHost.BuildParameters.
MaxNodeCount
)
87
ErrorUtilities.ThrowInternalError("Exceeded max node count of '{0}', current count is '{1}' ", ComponentHost.BuildParameters.
MaxNodeCount
, _nodeContexts.Count);
BackEnd\Components\Logging\LoggingService.cs (1)
863
_maxCPUCount = buildComponentHost.BuildParameters.
MaxNodeCount
;
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
143
return _host.BuildParameters.
MaxNodeCount
> 1 || _disableInprocNode;
BackEnd\Components\Scheduler\Scheduler.cs (12)
797
if (_componentHost.BuildParameters.
MaxNodeCount
== 1)
824
if (_componentHost.BuildParameters.
MaxNodeCount
== 2)
1038
TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.
MaxNodeCount
);
1258
TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.
MaxNodeCount
);
1322
TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.
MaxNodeCount
);
1428
if (_schedulingData.ExecutingRequestsCount >= _componentHost.BuildParameters.
MaxNodeCount
)
1435
int limit = _componentHost.BuildParameters.
MaxNodeCount
switch
1438
2 => _componentHost.BuildParameters.
MaxNodeCount
+ 1 + _nodeLimitOffset,
1439
_ => _componentHost.BuildParameters.
MaxNodeCount
+ 2 + _nodeLimitOffset,
1477
int availableNodesWithOutOfProcAffinity = _componentHost.BuildParameters.
MaxNodeCount
- _currentOutOfProcNodeCount;
1921
TraceScheduler("System load limit reached, cannot resume any more work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.
MaxNodeCount
);
2150
if (_componentHost.BuildParameters.
MaxNodeCount
> 1)
Instance\ProjectInstance.cs (1)
3176
buildParameters.
MaxNodeCount
,
MSBuild (2)
XMake.cs (2)
1517
if (parameters.MemoryUseLimit < parameters.
MaxNodeCount
)
1519
parameters.MemoryUseLimit = parameters.
MaxNodeCount
;