RFR: 8283903: GetContainerCpuLoad does not return the correct result in share mode [v4]

xpbob duke at openjdk.java.net
Wed Mar 30 11:02:18 UTC 2022


> ```        
>                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

xpbob has updated the pull request incrementally with one additional commit since the last revision:

  Change the expression

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8028/files
  - new: https://git.openjdk.java.net/jdk/pull/8028/files/a1fda8a4..96184502

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8028&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8028&range=02-03

  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8028.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8028/head:pull/8028

PR: https://git.openjdk.java.net/jdk/pull/8028


More information about the serviceability-dev mailing list