* Implementing a control group manager that isn't a persistent daemon
@ 2026-07-12 22:50 Demi Marie Obenour
2026-07-14 2:56 ` Dhaval Giani
0 siblings, 1 reply; 2+ messages in thread
From: Demi Marie Obenour @ 2026-07-12 22:50 UTC (permalink / raw)
To: Linux cgroups development; +Cc: Alyssa Ross, Spectrum OS Development
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Implementing a control group manager that isn't a persistent daemon
2026-07-12 22:50 Implementing a control group manager that isn't a persistent daemon Demi Marie Obenour
@ 2026-07-14 2:56 ` Dhaval Giani
0 siblings, 0 replies; 2+ messages in thread
From: Dhaval Giani @ 2026-07-14 2:56 UTC (permalink / raw)
To: Demi Marie Obenour, Tom James Hromatka, Kamalesh Babulal
Cc: Linux cgroups development, Alyssa Ross, Spectrum OS Development
[-- Attachment #1: Type: text/plain, Size: 1007 bytes --]
On Sun, Jul 12, 2026 at 3:51 PM Demi Marie Obenour <demiobenour@gmail.com>
wrote:
> 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.
>
>
Why can libcgroup not do the same for you?
Dhaval
> 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: Type: text/html, Size: 1620 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-15 9:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-12 22:50 Implementing a control group manager that isn't a persistent daemon Demi Marie Obenour
2026-07-14 2:56 ` Dhaval Giani
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).