[Lxc-users] lxc.blkio.weight question

2013-10-17 Thread 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=60135031iu=/4140/ostg.clktrk___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] lxc.blkio.weight question

2013-10-17 Thread Andreas Laut
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=60135031iu=/4140/ostg.clktrk


___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


--
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=60135031iu=/4140/ostg.clktrk___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users