Crawlio is a simple C tool that slows down I/O operations by adding a specified amount of time to each I/O call. It uses LD_PRELOAD.
- Test application behaviour under slow I/O conditions
- Bring back the dial-up nostalgia
- Learn how to use LD_PRELOAD
You must log in or register to comment.
If only there was some framework that already did this….
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.