We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6743d18 commit 291fb81Copy full SHA for 291fb81
src/BenchmarksApps/TechEmpower/startprocess.sh
@@ -1,6 +1,18 @@
1
#!/bin/bash
2
3
-dotnet ./PlatformBenchmarks.dll &
4
5
-dotnet ./PlatformBenchmarks.dll
+# Install dependencies
+apt-get update \
+ && apt-get install -y --no-install-recommends \
6
+ cgroup-tools
7
8
+cgcreate -g cpu,cpuset:/cpugroup1
9
+cgcreate -g cpu,cpuset:/cpugroup2
10
+
11
+cgset -r cpuset.cpus=0-5 /cpugroup1
12
+cgset -r cpuset.cpus=6-12 /cpugroup2
13
14
+cgexec -g cpu:/cpugroup1 dotnet ./PlatformBenchmarks.dll &
15
+cgexec -g cpu:/cpugroup2 dotnet ./PlatformBenchmarks.dll
16
17
+cgdelete -g cpu:/cpugroup1
18
+cgdelete -g cpu:/cpugroup2
0 commit comments