RFR: 8269851: OperatingSystemMXBean getProcessCpuLoad reports incorrect process cpu usage in containers [v2]
xpbob
github.com+7837910+xpbob at openjdk.java.net
Thu Jul 8 03:50:51 UTC 2021
On Wed, 7 Jul 2021 10:34:51 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> > This patch seems fine in principle [...]
>
> Let me revise this. It looks like imposing CPU limits via cpuset-cpus would go down a path which won't have this fixed with the current patch.
use (getProcessCpuLoad0() * totalCPUs / containerCPUs) for CPU limits via cpuset-cpus
-------------
PR: https://git.openjdk.java.net/jdk/pull/4702
More information about the serviceability-dev
mailing list