0

I need reclamation thin disk, so Im trying fill zero on vhdd. But when I run it, so server is overload with 20k IOPS and full satured SAN network. Can you help me how I can slow b/w for this? E.g 10MB/s

Tried this:

ionice -c 3 dd if=/dev/zero of=/www/zeroes bs=4096 && rm -f /www/zeroes

ionice -c 3 cat /dev/zero > zero.fill;sync;

After run server have load 90+

Pavel
  • 487

1 Answers1

0

If your server is using cgroups like I nowadays suspect it is, you can do

    echo "x:y  10485760" > /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device

... where x would be the major number for your device and y the minor one. See from dev which applies to your devices.

My example would throttle the writing speed to about 10 MB/s.