Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8278951

containers/cgroup/PlainRead.java fails on Ubuntu 21.10

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b06
    • CPU:
      generic
    • OS:
      linux

      Backports

        Description

        Test case: containers/cgroup/PlainRead.java
        OS: Fails on Ubuntu 21.10
        Regression: No, baseline testing

        Exception:
        java.lang.RuntimeException: '^.*CPU Shares is: *(\d+|-1|-2|Unlimited).*$' missing from stdout/stderr

                at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:340)
                at PlainRead.match(PlainRead.java:43)
                at PlainRead.isContainer(PlainRead.java:57)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: '^.*CPU Shares is: *(\d+|-1|-2|Unlimited).*$' missing from stdout/stderr


        Reason:
        Doing a simple ./java -Xlog:os+container=trace -version gives no trace of “CPU Shares” in Ubuntu 21.10 and hence the test fails.


        [0.000s][trace][os,container] OSContainer::init: Initializing Container Support
        [0.000s][debug][os,container] Detected optional pids controller entry in /proc/cgroups
        [0.000s][debug][os,container] Detected cgroups v2 unified hierarchy
        [0.000s][trace][os,container] Path to /memory.max is /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/memory.max
        [0.000s][trace][os,container] Raw value for memory limit is: max
        [0.000s][trace][os,container] Memory Limit is: Unlimited
        [0.000s][trace][os,container] Path to /cpu.max is /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.max
        [0.000s][debug][os,container] Open of file /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.max failed, No such file or directory
        [0.000s][trace][os,container] CPU Quota is: -2
        [0.000s][trace][os,container] Path to /cpu.max is /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.max
        [0.000s][debug][os,container] Open of file /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.max failed, No such file or directory
        [0.000s][trace][os,container] Path to /cpu.weight is /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.weight
        [0.000s][debug][os,container] Open of file /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.weight failed, No such file or directory
        [0.000s][trace][os,container] OSContainer::active_processor_count: 8
        [0.000s][trace][os,container] CgroupSubsystem::active_processor_count (cached): 8
        [0.000s][debug][os,container] container memory limit unlimited: -1, using host value
        [0.000s][debug][os,container] container memory limit unlimited: -1, using host value
        [0.001s][trace][os,container] CgroupSubsystem::active_processor_count (cached): 8
        [0.019s][debug][os,container] container memory limit unlimited: -1, using host value
        [0.025s][trace][os,container] Path to /cpu.max is /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.max
        [0.025s][debug][os,container] Open of file /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.max failed, No such file or directory
        [0.025s][trace][os,container] CPU Quota is: -2
        [0.025s][trace][os,container] Path to /cpu.max is /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.max
        [0.025s][debug][os,container] Open of file /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.max failed, No such file or directory
        [0.025s][trace][os,container] Path to /cpu.weight is /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.weight
        [0.025s][debug][os,container] Open of file /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/cpu.weight failed, No such file or directory
        [0.025s][trace][os,container] OSContainer::active_processor_count: 8
        [0.027s][trace][os,container] Path to /memory.max is /sys/fs/cgroup/user.slice/user-10770.slice/session-2189.scope/memory.max
        [0.027s][trace][os,container] Raw value for memory limit is: max
        [0.027s][trace][os,container] Memory Limit is: Unlimited
        [0.027s][debug][os,container] container memory limit unlimited: -1, using host value
        [0.029s][debug][os,container] container memory limit unlimited: -1, using host value
        java version "18-ea" 2022-03-22
        Java(TM) SE Runtime Environment (build 18-ea+28-1975)
        Java HotSpot(TM) 64-Bit Server VM (build 18-ea+28-1975, mixed mode, sharing)
        [0.029s][debug][os,container] container memory limit unlimited: -1, using host value

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                iklam Ioi Lam
                Reporter:
                pchawdhary PAWAN CHAWDHARY
                Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: