I work with lxc user space tools on ubuntu 14.04 and I want to perform some stress tests and benchmarking within a container. I know that free and htop are not working properly in a container.
I am using dd and bonnie++ within a container to stress the hard disk it is a SSD.
Now on the host side, with iotop I can see the read and write io bandwidth used but in the cgroups I do have diverging results. The cgroups only capture a small part of the serviced bytes whereas iotop shows bandwidth usage of several hundred mega bytes.
In the cgroups, I'm capturing this entry: /sys/fs/cgroup/lxc/disk_stress/blkio.throttle.io_service_bytes
Any ideas why the values aren't equal? Which one are the correct ones?