Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is an iprelay (or ip_relay) package to shape TCP bandwidth, and it is really useful to test how stuff works on slow connections.

Is there something similar to iprelay, which will allow me to shape filesystem write (and / or read, independently) speed? Preferably, just for some directory tree that I run my tests against, so that everything else is still fast. (Note that it is for developer machine testing / debugging only, I do not need it to be secure, to do load balancing and other production stuff.)

I'm thinking about using iprelay with sshfs or something, but it seems to me a bit too convoluted. Any better methods out there?

share|improve this question
up vote 1 down vote accepted

Check out blkio and cgroups:

There is also an earlier variant for this, only using pids:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.