On Wed, 30 Mar 2022 01:46:20 GMT, xpbob <d...@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 <bobpeng...@tencent.com>
Committer: Kevin Walls <kev...@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

Reply via email to