jmx-dev Integrated: 8283903: GetContainerCpuLoad does not return the correct result in share mode
xpbob
duke at openjdk.java.net
Wed Mar 30 17:10:45 UTC 2022
On Wed, 30 Mar 2022 01:46:20 GMT, xpbob <duke at openjdk.java.net> wrote:
> ```
> long hostTicks = getHostTotalCpuTicks0();
> int totalCPUs = getHostOnlineCpuCount0();
> int containerCPUs = getAvailableProcessors();
> // scale the total host load to the actual container cpus
> hostTicks = hostTicks * containerCPUs / totalCPUs;
>
> hostTicks=175476155560000000
> totalCPUs=96
> containerCPUs=90
>
> Calculate the overflow
This pull request has now been integrated.
Changeset: a625bfdb
Author: bobpengxie <bobpengxie at tencent.com>
Committer: Kevin Walls <kevinw at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/a625bfdba45d49bc717bcc9be4112db93b50f50a
Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod
8283903: GetContainerCpuLoad does not return the correct result in share mode
Reviewed-by: jiefu, sgehwolf, kevinw, dholmes
-------------
PR: https://git.openjdk.java.net/jdk/pull/8028
More information about the jmx-dev
mailing list