If only there was some framework that already did this….
this post was submitted on 14 May 2025
17 points (94.7% liked)
commandline
1977 readers
8 users here now
founded 2 years ago
MODERATORS
What is it
BPF,
or you can just use a CGroup.
https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html
AFAIK you can't do this with BPF as it doesn't have any kind of sleep functionality. I'm also not sure how would you achive this using cgroup, which are about quotas AFAIK.
There is?