From: Demi Marie Obenour <demiobenour@gmail.com>
To: Linux cgroups development <cgroups@vger.kernel.org>
Cc: Alyssa Ross <hi@alyssa.is>,
Spectrum OS Development <devel@spectrum-os.org>
Subject: Implementing a control group manager that isn't a persistent daemon
Date: Sun, 12 Jul 2026 18:50:57 -0400 [thread overview]
Message-ID: <d83a6cc2-73bf-46fd-9ec2-abd667828d6e@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 815 bytes --]
Hello!
I'm currently implementing a control group manager that isn't a
persistent daemon. Instead, it's a command-line tool. The system
I'm working on uses s6 instead of systemd, and s6 doesn't have native
control group support.
The current plan is to offer a few options:
1. Create a cgroup if it doesn't exist. If it does, wait for it to
be empty. Then execute a program in that cgroup.
2. Create a program in a cgroup, without waiting for the cgroup to
be empty.
2. Kill all programs in a cgroup.
Unfortunately, I'm not able to wait for a cgroup to become empty.
I don't seem to be getting EPOLLPRI or EPOLLERR events. What
is the proper way to get those events? Is there a kernel version
with a bug in this area?
--
Sincerely,
Demi Marie Obenour (she/her/hers)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
reply other threads:[~2026-07-12 22:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d83a6cc2-73bf-46fd-9ec2-abd667828d6e@gmail.com \
--to=demiobenour@gmail.com \
--cc=cgroups@vger.kernel.org \
--cc=devel@spectrum-os.org \
--cc=hi@alyssa.is \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.