43 writes to MaxNodeCount
Microsoft.Build (1)
Instance\ProjectInstance.cs (1)
2719parameters.MaxNodeCount = maxNodeCount;
Microsoft.Build.Engine.UnitTests (41)
BackEnd\BuildManager_Tests.cs (11)
159newParameters.MaxNodeCount = 1; 170newParameters.MaxNodeCount = 3; 361MaxNodeCount = numberOfParallelProjectsToBuild, 2665_parameters.MaxNodeCount = 3; 2735_parameters.MaxNodeCount = 2; 2832_parameters.MaxNodeCount = 2; 2932_parameters.MaxNodeCount = 2; 3018_parameters.MaxNodeCount = 2; 3297MaxNodeCount = 2, 4038MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 4085MaxNodeCount = 1,
BackEnd\LoggingService_Tests.cs (2)
94parameters.MaxNodeCount = 4; 1089parameters.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)
419MaxNodeCount = Environment.ProcessorCount 428MaxNodeCount = Environment.ProcessorCount 745MaxNodeCount = Environment.ProcessorCount, 1250MaxNodeCount = 1 1396MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1469MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1529MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1609MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount()
MSBuild (1)
XMake.cs (1)
1478parameters.MaxNodeCount = cpuCount;
21 references to MaxNodeCount
Microsoft.Build (19)
BackEnd\BuildManager\BuildManager.cs (1)
2902int cpuCount = _buildParameters!.MaxNodeCount;
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (3)
55return ComponentHost.BuildParameters.MaxNodeCount - _nodeContexts.Count; 85if (_nodeContexts.Count + numberOfNodesToCreate > ComponentHost.BuildParameters.MaxNodeCount) 87ErrorUtilities.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)
143return _host.BuildParameters.MaxNodeCount > 1 || _disableInprocNode;
BackEnd\Components\Scheduler\Scheduler.cs (12)
797if (_componentHost.BuildParameters.MaxNodeCount == 1) 824if (_componentHost.BuildParameters.MaxNodeCount == 2) 1038TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 1258TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 1322TraceScheduler("System load limit reached, cannot schedule new work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 1428if (_schedulingData.ExecutingRequestsCount >= _componentHost.BuildParameters.MaxNodeCount) 1435int limit = _componentHost.BuildParameters.MaxNodeCount switch 14382 => _componentHost.BuildParameters.MaxNodeCount + 1 + _nodeLimitOffset, 1439_ => _componentHost.BuildParameters.MaxNodeCount + 2 + _nodeLimitOffset, 1477int availableNodesWithOutOfProcAffinity = _componentHost.BuildParameters.MaxNodeCount - _currentOutOfProcNodeCount; 1921TraceScheduler("System load limit reached, cannot resume any more work. Executing: {0} Yielding: {1} Max Count: {2}", _schedulingData.ExecutingRequestsCount, _schedulingData.YieldingRequestsCount, _componentHost.BuildParameters.MaxNodeCount); 2150if (_componentHost.BuildParameters.MaxNodeCount > 1)
Instance\ProjectInstance.cs (1)
3176buildParameters.MaxNodeCount,
MSBuild (2)
XMake.cs (2)
1517if (parameters.MemoryUseLimit < parameters.MaxNodeCount) 1519parameters.MemoryUseLimit = parameters.MaxNodeCount;