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
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Neo
    • Neo
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          Build couchbase-server-7.1.0-1834 contains platform commit 6ed6293 with commit message:
          MB-49867: Fix problem with mixing V1 and V2

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-1834 contains platform commit 6ed6293 with commit message: MB-49867 : Fix problem with mixing V1 and V2

          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