Uploaded image for project: 'Container Tools'
  1. Container Tools
  2. RUN-3396

[containers/conmon] OOM detection on cgroup v2 not always working

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • conmon
    • 2
    • False
    • Hide

      None

      Show
      None
    • False

      [1738858591] Upstream Reporter: Kir Kolyshkin
      Upstream issue status: Closed
      Upstream description:

      Continuing the investigation that started in https://github.com/cri-o/cri-o/pull/6973

      Apparently, sometimes systemd removes the cgroup before conmon can read its memory.events. I don't have any ideas about how to work around that race (in conmon; that is).

      Another small issue I found is sometimes OOM can be misdetected because the code use the same static counter variable for both oom and oom_kill, which appears to be wrong.

      https://github.com/containers/conmon/blob/ebc6717071589813b3eb4d2f18ef5999b7d263b0/src/cgroup.c#L269-L310


      Upstream URL: https://github.com/containers/conmon/issues/426

              rhn-support-jnovy Jindrich Novy
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: