-
Bug
-
Resolution: Fixed
-
P4
-
openjdk8u332, 11.0.14.1, 17.0.4
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8298611 | 17.0.7-oracle | Alex Menkov | P4 | Resolved | Fixed | b01 |
JDK-8292514 | 17.0.5 | Jie Fu | P4 | Resolved | Fixed | b03 |
JDK-8298615 | 11.0.19-oracle | Alex Menkov | P4 | Resolved | Fixed | b01 |
JDK-8292646 | 11.0.17 | Jie Fu | P4 | Resolved | Fixed | b04 |
JDK-8293190 | openjdk8u362 | Andrew Hughes | P4 | Resolved | Fixed | b01 |
Get the runtime data through redefineclass as follows
hostTicks=175476155560000000
totalCPUs=96
containerCPUs=90
In the following code
```
long hostTicks = getHostTotalCpuTicks0();
int totalCPUs = getHostOnlineCpuCount0();
int containerCPUs = getAvailableProcessors();
// scale the total host load to the actual container cpus
hostTicks = hostTicks * containerCPUs / totalCPUs;
```
(hostTicks * containerCPUs ) Calculate the overflow
reproduce bug:
totalCPUs=96
docker share model
Computationally intensive programs that run for sufficient time
- backported by
-
JDK-8292514 GetContainerCpuLoad does not return the correct result in share mode
- Resolved
-
JDK-8292646 GetContainerCpuLoad does not return the correct result in share mode
- Resolved
-
JDK-8293190 GetContainerCpuLoad does not return the correct result in share mode
- Resolved
-
JDK-8298611 GetContainerCpuLoad does not return the correct result in share mode
- Resolved
-
JDK-8298615 GetContainerCpuLoad does not return the correct result in share mode
- Resolved
- links to
-
Commit openjdk/jdk8u-dev/9f037b06
-
Commit openjdk/jdk11u-dev/42dc282b
-
Commit openjdk/jdk17u-dev/2c988d18
-
Commit openjdk/jdk/a625bfdb
-
Review openjdk/jdk8u-dev/105
-
Review openjdk/jdk11u-dev/1332
-
Review openjdk/jdk17u-dev/633
-
Review openjdk/jdk17u/351
-
Review openjdk/jdk/8028