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

Extend the OSContainer API to support the pids controller of cgroups

    XMLWordPrintable

Details

    • b10
    • generic
    • linux

    Backports

      Description

        Existing cgroup v1 and v2 metrics for Hotspot have been introduced with the container
        detection code. It is using os::Linux::print_container_info() which in turn uses OSContainer Linux-
        only API.
        Extend the OSContainer API in order to also support the pids controller of cgroups.

        There is a --pids-limit flag to docker/podman which seems to use the same cgroups interface files.
        systemd seems to use the same functionality to limit the number of tasks a user can start.


        More info
        https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
        https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/pids.html
        https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#pid

        Attachments

          Issue Links

            Activity

              People

                mbaesken Matthias Baesken
                mbaesken Matthias Baesken
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: