18
crawlio: Tool that slows down I/O operations
(github.com)
If only there was some framework that already did this….
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.