2 writes to MaxNodeCount
Microsoft.Build (1)
Instance\ProjectInstance.cs (1)
2824parameters.MaxNodeCount = maxNodeCount;
MSBuild (1)
XMake.cs (1)
1519parameters.MaxNodeCount = cpuCount;
27 references to MaxNodeCount
Microsoft.Build (25)
BackEnd\BuildManager\BuildManager.cs (3)
1254maxNodeCount: _buildParameters?.MaxNodeCount, 1275MaxNodeCount = _buildParameters?.MaxNodeCount, 3171int cpuCount = _buildParameters!.MaxNodeCount;
BackEnd\Components\Communications\NodeProviderInProc.cs (3)
110int maxNodeCount = _componentHost.BuildParameters.MultiThreaded ? _componentHost.BuildParameters.MaxNodeCount : 1; 127if (host.BuildParameters?.MaxNodeCount > 0) 131capacity: host.BuildParameters.MaxNodeCount);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (3)
55return ComponentHost.BuildParameters.MaxNodeCount - _nodeContexts.Count; 85if (_nodeContexts.Count + numberOfNodesToCreate > ComponentHost.BuildParameters.MaxNodeCount) 87return InternalError.Throw<IList<NodeInfo>>($"Exceeded max node count of '{ComponentHost.BuildParameters.MaxNodeCount}', current count is '{_nodeContexts.Count}' ");
BackEnd\Components\Logging\LoggingService.cs (1)
901_maxCPUCount = buildComponentHost.BuildParameters.MaxNodeCount;
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
145return _host.BuildParameters.MaxNodeCount > 1 || _disableInprocNode;
BackEnd\Components\Scheduler\Scheduler.cs (13)
856if (_componentHost.BuildParameters.MaxNodeCount == 1) 883if (_componentHost.BuildParameters.MaxNodeCount == 2) 1105TraceScheduler($"System load limit reached, cannot schedule new work. Executing: {_schedulingData.ExecutingRequestsCount} Yielding: {_schedulingData.YieldingRequestsCount} Max Count: {_componentHost.BuildParameters.MaxNodeCount}"); 1325TraceScheduler($"System load limit reached, cannot schedule new work. Executing: {_schedulingData.ExecutingRequestsCount} Yielding: {_schedulingData.YieldingRequestsCount} Max Count: {_componentHost.BuildParameters.MaxNodeCount}"); 1389TraceScheduler($"System load limit reached, cannot schedule new work. Executing: {_schedulingData.ExecutingRequestsCount} Yielding: {_schedulingData.YieldingRequestsCount} Max Count: {_componentHost.BuildParameters.MaxNodeCount}"); 1493if (_schedulingData.ExecutingRequestsCount >= _componentHost.BuildParameters.MaxNodeCount) 1500int limit = _componentHost.BuildParameters.MaxNodeCount switch 15032 => _componentHost.BuildParameters.MaxNodeCount + 1 + _nodeLimitOffset, 1504_ => _componentHost.BuildParameters.MaxNodeCount + 2 + _nodeLimitOffset, 1543int maxInProcNodeCount = _componentHost.BuildParameters.MultiThreaded ? _componentHost.BuildParameters.MaxNodeCount : 1; 1546int availableNodesWithOutOfProcAffinity = _componentHost.BuildParameters.MultiThreaded ? 0 : _componentHost.BuildParameters.MaxNodeCount - _currentOutOfProcNodeCount; 1991TraceScheduler($"System load limit reached, cannot resume any more work. Executing: {_schedulingData.ExecutingRequestsCount} Yielding: {_schedulingData.YieldingRequestsCount} Max Count: {_componentHost.BuildParameters.MaxNodeCount}"); 2225if (_componentHost.BuildParameters.MaxNodeCount > 1)
Instance\ProjectInstance.cs (1)
3281buildParameters.MaxNodeCount,
MSBuild (2)
XMake.cs (2)
1560if (parameters.MemoryUseLimit < parameters.MaxNodeCount) 1562parameters.MemoryUseLimit = parameters.MaxNodeCount;