Skip to content

Commit 85f7ebd

Browse files
committed
cgroups
1 parent 6a48c96 commit 85f7ebd

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/bash
22

3-
dotnet ./PlatformBenchmarks.dll &
4-
dotnet ./PlatformBenchmarks.dll &
5-
dotnet ./PlatformBenchmarks.dll &
6-
dotnet ./PlatformBenchmarks.dll
3+
cgcreate -g cpu,cpuset:/cpugroup1
4+
cgcreate -g cpu,cpuset:/cpugroup2
5+
6+
cgset -r cpuset.cpus=0-27 /cpugroup1
7+
cgset -r cpuset.cpus=28-55 /cpugroup2
8+
9+
cgexec -g cpu:/cpugroup1 dotnet ./PlatformBenchmarks.dll &
10+
cgexec -g cpu:/cpugroup2 dotnet ./PlatformBenchmarks.dll
11+
12+
cgdelete -g cpu:/cpugroup1
13+
cgdelete -g cpu:/cpugroup2

0 commit comments

Comments
 (0)