Skip to content

Commit

Permalink
Add affinity and runEnvVars for MLNET and Roslyn private runs. (#3038)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoopedBard3 authored May 23, 2023
1 parent bf785b7 commit 5ef72fd
Showing 1 changed file with 10 additions and 30 deletions.
40 changes: 10 additions & 30 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -437,20 +437,6 @@ jobs:
buildMachines:
- win-x64
- ubuntu-x64
isPublic: false
jobParameters:
kind: mlnet
csproj: src\benchmarks\real-world\Microsoft.ML.Benchmarks\Microsoft.ML.Benchmarks.csproj
runCategories: 'mldotnet'
channels:
- main
#affinity: '85'

# ML.NET benchmarks
- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/benchmark_jobs.yml
buildMachines:
- win-arm64
- ubuntu-arm64
isPublic: false
Expand All @@ -460,7 +446,11 @@ jobs:
runCategories: 'mldotnet'
channels:
- main
#affinity: '15'
affinity: '85' # (01010101) Enables alternating process threads to take hyperthreading into account
runEnvVars:
- DOTNET_GCgen0size=410000 # ~4MB
- DOTNET_GCHeapCount=4
- DOTNET_GCTotalPhysicalMemory=400000000 # 16GB

# Roslyn benchmarks
- template: /eng/performance/build_machine_matrix.yml
Expand All @@ -469,20 +459,6 @@ jobs:
buildMachines:
- win-x64
- ubuntu-x64
isPublic: false
jobParameters:
kind: roslyn
csproj: src\benchmarks\real-world\Roslyn\CompilerBenchmarks.csproj
runCategories: 'roslyn'
channels: # for Roslyn jobs we want to check .NET Core 3.1 and 5.0 only
- main
#affinity: '85'

# Roslyn benchmarks
- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/benchmark_jobs.yml
buildMachines:
- win-arm64
- ubuntu-arm64
isPublic: false
Expand All @@ -492,7 +468,11 @@ jobs:
runCategories: 'roslyn'
channels: # for Roslyn jobs we want to check .NET Core 3.1 and 5.0 only
- main
#affinity: '15'
affinity: '85' # (01010101) Enables alternating process threads to take hyperthreading into account
runEnvVars:
- DOTNET_GCgen0size=410000 # ~4MB
- DOTNET_GCHeapCount=4
- DOTNET_GCTotalPhysicalMemory=400000000 # 16GB

# ILLink benchmarks
- template: /eng/performance/build_machine_matrix.yml
Expand Down

0 comments on commit 5ef72fd

Please sign in to comment.