Simulating slow filesystem

That is one option, yes. Export the LUN as a network block device or use iSCSI and add jitter,packet-loss, bandwidth caps, etc to the QoS definitions of that path. By doing so you're going to see the impact of link characteristics and the block device layer's reaction to that rather than a "slow" file system.

To let the file system appear slow you could fill it up to it's limits in terms of files per directory and/or directory count limits. You could additionally lower the queue depth to a something really small which will impact small (and random) IOs generally.

I'm afraid that this could get difficult without a proper disk drive development and debug hardware kit or special built file system which allows you to do these kind of experiments.


Sounds like you've already come up with one solution - have a look at NBD and the Advanced Routing Howto.

An alternative approach (depending on your programming skills) might be to write your own filesystem using FUSE