-
Bug
-
Resolution: Fixed
-
P4
-
8, 12, 13
-
b09
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8289733 | 11.0.17 | Severin Gehwolf | P4 | Resolved | Fixed | b01 |
In file test/hotspot/jtreg/runtime/containers/docker/TestCPUAwareness.java, in line 178, `period` should be `shares`.
The shares parameter means CPU usage weight, and period is used to specify how long the container should be reassigned for CPU usage.
diff -r f940579715a5 test/hotspot/jtreg/runtime/containers/docker/TestCPUAwareness.java
--- a/test/hotspot/jtreg/runtime/containers/docker/TestCPUAwareness.java Thu Feb 14 15:27:46 2019 -0800
+++ b/test/hotspot/jtreg/runtime/containers/docker/TestCPUAwareness.java Fri Feb 15 10:27:59 2019 +0800
@@ -175,7 +175,7 @@
System.out.println("cpuset = " + cpuset);
System.out.println("quota = " + quota);
System.out.println("period = " + period);
- System.out.println("shares = " + period);
+ System.out.println("shares = " + shares);
System.out.println("usePreferContainerQuotaForCPUCount = " + usePreferContainerQuotaForCPUCount);
System.out.println("expectedAPC = " + expectedAPC);
A patch and reported by Wang Haomin <wanghaomin@loongson.cn>
The shares parameter means CPU usage weight, and period is used to specify how long the container should be reassigned for CPU usage.
diff -r f940579715a5 test/hotspot/jtreg/runtime/containers/docker/TestCPUAwareness.java
--- a/test/hotspot/jtreg/runtime/containers/docker/TestCPUAwareness.java Thu Feb 14 15:27:46 2019 -0800
+++ b/test/hotspot/jtreg/runtime/containers/docker/TestCPUAwareness.java Fri Feb 15 10:27:59 2019 +0800
@@ -175,7 +175,7 @@
System.out.println("cpuset = " + cpuset);
System.out.println("quota = " + quota);
System.out.println("period = " + period);
- System.out.println("shares = " + period);
+ System.out.println("shares = " + shares);
System.out.println("usePreferContainerQuotaForCPUCount = " + usePreferContainerQuotaForCPUCount);
System.out.println("expectedAPC = " + expectedAPC);
A patch and reported by Wang Haomin <wanghaomin@loongson.cn>
- backported by
-
JDK-8289733 [TESTBUG] runtime/containers/docker/TestCPUAwareness.java typo of printing parameters (period should be shares)
- Resolved