[Users] Beancounters, cgroup and writes
Andrew Vagin
avagin at parallels.com
Mon Oct 28 02:15:07 PDT 2013
On Thu, Oct 17, 2013 at 05:02:59PM -0400, Mark J. wrote:
> 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
You are writing in page cache. What it a ram size on this host?
>
> 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
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://lists.openvz.org/mailman/listinfo/users
More information about the Users
mailing list