[Lxc-users] lxc.blkio.weight question

Andreas Laut andreas.laut at spark5.de
Thu Oct 17 14:17:03 UTC 2013


You have to run the tests on both containers at the same time, then you 
will see the difference.
If no container need IO, your first container will get the same speed as 
your second.

Regards,
Andreas

Am 17.10.2013 10:54, schrieb autumn_sky_is:
> Hi, i'm using lxc in my project, i want to control disk io speed, so i 
> use blkio.weight, but the result is confusing.
> I create 2 containers lxc1 and lxc2
> lxc1: lxc.blkio.weight=100;   lxc2:lxc.blkio.weight=1000
> the running scripts are same in lxc1 and lxc2:
>     sync
>     echo 3 > /proc/sys/vm/drop_caches
>     dd if=/var/a.img of=/dev/null bs=1M count=2000
> I have read [1], and I check the io scheduler:
>     noop anticipatory deadline [cfq]
>
> I suppose that lxc1 is slower than lxc2, but the test turn out that 
> they are in same speed.
> Can you help me figure it out? Thank you.
> PS: my kernel is 2.6.32, lxc version is 0.9.0
> [1] http://osdir.com/ml/lxc-chroot-linux-containers/2011-12/msg00083.html
>
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20131017/179a6504/attachment.html>


More information about the lxc-users mailing list