this post was submitted on 14 May 2025
17 points (94.7% liked)
commandline
1977 readers
1 users here now
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.