cgroup v2 use unix.InotifyInit() to monitor oom cause too many open files

Open
#364 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
go, linux

Research direction

Start by reading the linked containerd issue comment and tracing cgroup v2 OOM monitoring around unix.InotifyInit(). Confirm how each container creates an inotify instance and reproduce the resulting “too many open files” condition. Done means OOM monitoring no longer exhausts file descriptors when multiple containers are used.

Written by the indexing model from the issue text.

Description

cgroup v2 use unix.InotifyInit() to monitor oom,wil cause too many open files, because every container will create an inotify instance
see:https://github.com/containerd/containerd/issues/10468#issuecomment-2747079482

Dominant language
Go
Stars
1.2k
Forks
255
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from containerd/cgroups

All issues in containerd/cgroups

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.