[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Integrated: 8283903: GetContainerCpuLoad does not return the correct result in share mode
From:       xpbob <duke () openjdk ! java ! net>
Date:       2022-03-30 17:10:45
Message-ID: d-EkhLYs7CORZlKaDrdiWcqBFijfyPmyRuEDE3qAzDo=.7ed165d3-fccf-460c-950c-c782bf9a895a () github ! com
[Download RAW message or body]

On Wed, 30 Mar 2022 01:46:20 GMT, xpbob <duke@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@tencent.com>
Committer: Kevin Walls <kevinw@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic