Skip to content

Commit 7fbe213

Browse files
authored
Merge pull request #118 from retronym/topic/cpusets
Try to make JDK 16 benchmarking work
2 parents eba445a + 0bd4f37 commit 7fbe213

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/benv

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,14 @@ function setupShield() {
194194
checkFail $? "shield kernel processes" "$log"
195195
logOk "moved kernel processes to 'system' CPU set"
196196

197+
# Avoid JDK 16 warning which messes up JMH.
198+
# Is there as better way to do this?
199+
#
200+
# $/usr/lib/jvm/jdk-16.0.1+9/bin/java -version
201+
# [0.000s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /cpusets.
202+
# openjdk version "16.0.1" 2021-04-20
203+
sudo umount /cpusets
204+
197205
checkShield
198206
}
199207

0 commit comments

Comments
 (0)