[Users] Beancounters, cgroup and writes

Mark J. mjohanson at a2hosting.com
Thu Oct 17 14:02:59 PDT 2013


Noticing that the write counter is not incrementing in the beancounter file, nor is it allowing the cgroups to limit the writes either (guessing since the counter isn't changing the cgroup isn't being applied since its not seeing a change).

This is what I am setting for a test:

echo "9:1 10485760" > blkio.throttle.write_bps_device

md1 should be getting throttled to 10M/s but its not when running the following in the vm:

dd if=/dev/zero of=/file bs=1024 count=10485760
5617418240 bytes (5.6 GB) copied, 81.7661 s, 68.7 MB/s

This on the other hand worked just fine to throttle the reads:

echo "9:1 10485760" > blkio.throttle.read_bps_device

dd if=/swapfile3 of=/dev/null
5617418240 bytes (5.6 GB) copied, 544.264 s, 10.3 MB/s

Anyone else having troubles getting the write counter to increment or throttle?

vzctl: 4.5.1
kernerl: 2.6.32-042stab081.5

I think I got everything this time. :p


More information about the Users mailing list