If only there was some framework that already did this….
this post was submitted on 14 May 2025
18 points (95.0% liked)
commandline
2026 readers
1 users here now
founded 2 years ago
MODERATORS
There is?
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.