2

I want to anayse influence of slow disc storage on my application. In order to do it I want to decrease writes thougput to the storage. Can I do it by some configuration or is there any tool dedicated for that?

1 Answers1

2

You could use Linux Kernel cgroups (control groups). See Throttling IO with Linux. Another option is to use virtualization and limit I/O available for the VM. This might be a good setup for testing. For example, QEMU has DiskIOLimits; this page also has a valuable notice:

The availability of disk I/O throttling depends on the underlying storage (image file, LVM, NFS, Ceph). On Linux the cgroups blkio-controller supports I/O throttling on block devices but is a relatively recent feature. More importantly, there is no single mechanism for disk I/O throttling across all underlying storage types and for some types there is no way to throttle at all.

Esa Jokinen
  • 46,944
  • 3
  • 83
  • 129