<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">You have to run the tests on both
containers at the same time, then you will see the difference.<br>
If no container need IO, your first container will get the same
speed as your second.<br>
<br>
Regards,<br>
Andreas<br>
<br>
Am 17.10.2013 10:54, schrieb autumn_sky_is:<br>
</div>
<blockquote
cite="mid:6bcba2cf.fbf7.141c59f3c54.Coremail.autumn_sky_is@163.com"
type="cite">
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">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.<br>
I create 2 containers lxc1 and lxc2<br>
lxc1: lxc.blkio.weight=100; lxc2:lxc.blkio.weight=1000<br>
the running scripts are same in lxc1 and lxc2:<br>
sync<br>
echo 3 > /proc/sys/vm/drop_caches<br>
dd if=/var/a.img of=/dev/null bs=1M count=2000<br>
I have read [1], and I check the io scheduler:<br>
noop anticipatory deadline [cfq]<br>
<br>
I suppose that lxc1 is slower than lxc2, but the test turn out
that they are in same speed.<br>
Can you help me figure it out? Thank you.<br>
PS: my kernel is 2.6.32, lxc version is 0.9.0<br>
[1]
<a class="moz-txt-link-freetext" href="http://osdir.com/ml/lxc-chroot-linux-containers/2011-12/msg00083.html">http://osdir.com/ml/lxc-chroot-linux-containers/2011-12/msg00083.html</a></div>
<br>
<br>
<span title="neteasefooter"><span id="netease_mail_footer"></span></span>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">------------------------------------------------------------------------------
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 >
<a class="moz-txt-link-freetext" href="http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk">http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk</a></pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lxc-users@lists.sourceforge.net">Lxc-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/lxc-users">https://lists.sourceforge.net/lists/listinfo/lxc-users</a>
</pre>
</blockquote>
<br>
</body>
</html>