Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libct/cg: retry opening a cgroup file #4442

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 21, 2024

  1. libct/cg: retry opening a cgroup file

    From time to time we see unexpected errors (ENODEV or ENOENT) trying to
    write to a cgroup file. This is probably due to some races in the
    kernel.
    
    Let's implement a retry when we see ENOENT or ENODEV, but only if a
    directory exists.
    
    Note this can have a negative effect on performance when some cgroup
    features are disabled.
    
    Signed-off-by: Kir Kolyshkin <[email protected]>
    kolyshkin committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    255880c View commit details
    Browse the repository at this point in the history