Also, bandwidth between containers is very bad...<br>scp a file doesn't get over 2.1MB/s - On gigabit interface - and drop over time.<br><br><div class="gmail_quote">On Thu, Aug 11, 2011 at 9:32 AM, Mauras Olivier <span dir="ltr"><<a href="mailto:oliver.mauras@gmail.com">oliver.mauras@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">So here's my results.<br>On 55 packets transmitted for the mysql request<br>25 correct checksums<br>28 incorrect <br>
<br>Disabling TSO and GSO doesn't help much, got exact same result<br><br>As for the macvlan bridge mode how can i check if it's available or not?? Would it let things work even if not supported?<br>
--- Misc ---<br>Veth pair device: enabled<br>Macvlan: enabled<br>Vlan: enabled<br>File capabilities: enabled<br><br><br>Thanks,<br><font color="#888888">Olivier</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">
On Wed, Aug 10, 2011 at 6:25 PM, Daniel Lezcano <span dir="ltr"><<a href="mailto:daniel.lezcano@free.fr" target="_blank">daniel.lezcano@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 08/10/2011 05:54 PM, Daniel Lezcano wrote:<br>
</div><div><div></div><div>> On 08/10/2011 04:51 PM, Mauras Olivier wrote:<br>
>> Hello,<br>
>><br>
>> I have several containers running on a host - ~10<br>
>> One of them is running a MySQL database. Several of the others are running<br>
>> php code under apache that fetch datas from the database.<br>
>><br>
>> Host is using eth0, while my containers are on a bridge using eth1, and<br>
>> configured in macvlan bridge mode. Host runs SL6 with 2.6.32 RH kernel -<br>
>> Host is a VMWare ESX virtual machine for that matter.<br>
>> Ping latency between containers is at an average of 0.050 ms<br>
>><br>
>> What i noted, is that one webapp were getting very slow... After<br>
>> investigating, the only thing that i could find, is that requests from<br>
>> containers are _slower_ than from any other hosts.<br>
>><br>
>> See below:<br>
>><br>
>> container1 ~ # time (echo "select * from testsuites;" | mysql -h<br>
>> container_mysql -u nmp -pxxx testlink)<br>
>> id      details<br>
>> 42<br>
>> (... cut only 25 entries anyway)<br>
>><br>
>> real    *0m0.875s*<br>
>><br>
>> Time varies between 0.8 and 1.2s<br>
>><br>
>> >From the host or another VM on the same network with the exact same request:<br>
>><br>
>> real    *0m0.022s*<br>
>><br>
>><br>
>> So that particular app that can loop over 19 requests takes sometimes up to<br>
>> 20s to display a page instead of ~0.5s from another host...<br>
>><br>
>> Is there some sysctl/settings to tweak or it's just not relevant to make<br>
>> requests between containers on the same host??<br>
> Hmm, thanks for the detailed explanation.<br>
><br>
> Can you check with tcpdump if there are problems with the patch checksums ?<br>
> And try to disable the TSO and SGO of eth1 if there are available ?<br>
<br>
</div></div>Oh, and another question. AFAIK, the bridge mode is available since the<br>
2.6.33 kernel.<br>
If we try to enable the bridge mode on a macvlan while this is not<br>
supported, no error is reported.<br>
So I don't know if the RH kernel did backport the bridge mode in their<br>
.32 kernel.<br>
</blockquote></div><br>
</div></div></blockquote></div><br>