Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-49867

cgroup information may be incorrectly reported in a mixed cgroup2 and cgroup env

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • 7.1.0
    • memcached
    • None
    • Linux
    • Untriaged
    • 1
    • Unknown

    Description

      On my Ubuntu 20.04.3 LTS when running on the bare metal I see my process being put into the following cgroups

      /sys/fs/cgroup/devices/user.slice/cgroup.procs
      /sys/fs/cgroup/pids/user.slice/user-1000.slice/session-2.scope/cgroup.procs
      /sys/fs/cgroup/perf_event/cgroup.procs
      /sys/fs/cgroup/freezer/cgroup.procs
      /sys/fs/cgroup/memory/user.slice/user-1000.slice/session-2.scope/cgroup.procs
      /sys/fs/cgroup/cpuset/cgroup.procs
      /sys/fs/cgroup/net_cls,net_prio/cgroup.procs
      /sys/fs/cgroup/cpu,cpuacct/user.slice/cgroup.procs
      /sys/fs/cgroup/hugetlb/cgroup.procs
      /sys/fs/cgroup/blkio/user.slice/cgroup.procs
      /sys/fs/cgroup/rdma/cgroup.procs
      /sys/fs/cgroup/systemd/user.slice/user-1000.slice/session-2.scope/cgroup.procs
      /sys/fs/cgroup/unified/user.slice/user-1000.slice/session-2.scope/cgroup.procs
      

      /sys/fs/cgroup/unified is the one mounted on cgroup2 and doesn't have the memory controller enabled (as that is in V1).

      We should not pick the V2 version unless it has one (or more) of the expected controllers mounted (we don't support mixing the controllers)

      Attachments

        For Gerrit Dashboard: MB-49867
        # Subject Branch Project Status CR V

        Activity

          People

            trond Trond Norbye
            trond Trond Norbye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty