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
https://github.com/serpent7776/crawlio
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.
5 Comments
chonkyninja@lemmy.world · -1 pts · 1y
If only there was some framework that already did this….
Serpent7776@programming.dev · 0 pts · 1y
There is?
ExperimentalGuy@programming.dev · 0 pts · 1y
What is it
chonkyninja@lemmy.world · 2 pts · 1y
BPF,
or you can just use a CGroup.
https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html
Serpent7776@programming.dev · 1 pts · 1y
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.