Displaying 1 result from an estimated 1 matches for "write_bps_device".
2011 Feb 09
0
Question about putting vm in blkio cgroup
...$group -g blkio:$alias
pid=`pgrep $alias`
echo $pid > /dev/cgroup/blkio/$alias/tasks
$virsh schedinfo --set cpu_shares=$cpu $alias
echo "8:0 $disk_io" > /dev/cgroup/blkio/$alias/blkio.throttle.read_bps_device
echo "8:0 $disk_io" > /dev/cgroup/blkio/$alias/blkio.throttle.write_bps_device
For example I write:
8:0 10485760 to /dev/cgroup/blkio/$alias/blkio.throttle.*_bps_device
So there should be limit to 10Mbyte/s to acces to /dev/sda
But when I run hdparm -t /dev/vda or dd to test limits I receive value
~ 70 Mbyte/s
--
Nikita A Menkovich
JID: menkovich at gmail.com