[Lxc-users] Dreadful network performance, only to host from container

2010-05-27 Thread Toby Corkindale
Hi, I have several LXC containers, running on Ubuntu Lucid's current kernel, 2.6.32-22. Network performance from the containers to the LAN is fine. However copying files (scp/rsync/whatever) between the containers and their host is extremely slow - a steady 32 kb/sec. I am using bridged network

Re: [Lxc-users] Dreadful network performance, only to host from container

2010-05-27 Thread atp
Hi, Send ifconfig br0from the host ifconfig eth0 from the container and the version of lxc you're using. Do you have anything special with the /etc/sysctl.conf? On a completely blank container with no tuning, I get with scp; host->container squashfs.img 100% 639MB 33.6MB/s 0

Re: [Lxc-users] Dreadful network performance, only to host from container

2010-05-27 Thread Toby Corkindale
On 27/05/10 18:06, atp wrote: As requested: > ifconfig br0 from the host br0 Link encap:Ethernet HWaddr 00:1e:37:4d:8c:d8 inet addr:192.168.1.206 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21e:37ff:fe4d:8cd8/64 Scope:Link UP BROADCAST RUNNI

Re: [Lxc-users] Dreadful network performance, only to host from container

2010-05-27 Thread Daniel Lezcano
On 05/27/2010 10:21 AM, Toby Corkindale wrote: > On 27/05/10 18:06, atp wrote: > As requested: > > > >> ifconfig br0 from the host >> > br0 Link encap:Ethernet HWaddr 00:1e:37:4d:8c:d8 > inet addr:192.168.1.206 Bcast:192.168.1.255 Mask:255.255.255.0 > inet

Re: [Lxc-users] Dreadful network performance, only to host from container

2010-05-27 Thread atp
Toby Just FYI in case you were unaware - it seems one of your MXs is black holed. I tried to email you direct, but messagelabs said; : 74.125.148.10 does not like recipient. Remote host said: 554 5.7.1 Service unavailable; Client host [74.125.149.113] blocked using sbl-xbl.spamhaus.org; http://w

Re: [Lxc-users] Dreadful network performance, only to host from container

2010-05-27 Thread Matt Bailey
/usr/sbin/ethtool -K br0 sg off /usr/sbin/ethtool -K br0 tso off Might fix your problem, YMMV; this worked for me. -- Matt Bailey 303.871.4923 Senior Software Specialist University of Denver, UTS http://du.edu http://system42.net On Thu, May 27, 2010 at 4:48 AM, atp wrote: > Toby > > Just FYI

Re: [Lxc-users] Dreadful network performance, only to host from container

2010-05-27 Thread Toby Corkindale
On 27/05/10 19:52, Daniel Lezcano wrote: > On 05/27/2010 10:21 AM, Toby Corkindale wrote: >> On 27/05/10 18:06, atp wrote: >> As requested: >> >> >>> ifconfig br0 from the host >> br0 Link encap:Ethernet HWaddr 00:1e:37:4d:8c:d8 >> inet addr:192.168.1.206 Bcast:192.168.1.255 Mask:255.255.255.0 >> i

Re: [Lxc-users] Dreadful network performance, only to host from container

2010-05-27 Thread Toby Corkindale
On 28/05/10 05:55, Matt Bailey wrote: > /usr/sbin/ethtool -K br0 sg off > /usr/sbin/ethtool -K br0 tso off > > Might fix your problem, YMMV; this worked for me. Bam! Problem fixed. All I needed was the 'sg' option - tso wasn't enabled anyway. Now getting a healthy 15-16 mbyte/sec. Thanks for th

Re: [Lxc-users] Dreadful network performance, only to host from container

2010-05-28 Thread Daniel Lezcano
On 05/28/2010 02:58 AM, Toby Corkindale wrote: > On 28/05/10 05:55, Matt Bailey wrote: >> /usr/sbin/ethtool -K br0 sg off >> /usr/sbin/ethtool -K br0 tso off >> >> Might fix your problem, YMMV; this worked for me. > > Bam! Problem fixed. > All I needed was the 'sg' option - tso wasn't enabled anywa

Re: [Lxc-users] Dreadful network performance, only to host from container

2010-05-31 Thread Matt Bailey
Performance issues with networking and veth devices can be often linked to the implementation of hardware acceleration in various kernel drivers for various NICs. I found this from a lot of toggling of the acceleration tunables with ethtool. I'm sure there's a deeper issue with the drivers, but it