Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-13 Thread Blue Swirl
On 4/13/10, Blue Swirl wrote: > On 4/12/10, Paul Brook wrote: > > > A major reason for this deadlock could likely be removed by shutting > > > down the tap (if peered) or dropping packets in user space (in case of > > > vlan) when a NIC is stopped or otherwise shut down. Currently most (if >

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-13 Thread Blue Swirl
On 4/12/10, Paul Brook wrote: > > A major reason for this deadlock could likely be removed by shutting > > down the tap (if peered) or dropping packets in user space (in case of > > vlan) when a NIC is stopped or otherwise shut down. Currently most (if > > not all) NIC models seem to signal bot

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-13 Thread Paul Brook
> Paul Brook wrote: > >> A major reason for this deadlock could likely be removed by shutting > >> down the tap (if peered) or dropping packets in user space (in case of > >> vlan) when a NIC is stopped or otherwise shut down. Currently most (if > >> not all) NIC models seem to signal both "queue f

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-13 Thread Jan Kiszka
Paul Brook wrote: >> Paul Brook wrote: A major reason for this deadlock could likely be removed by shutting down the tap (if peered) or dropping packets in user space (in case of vlan) when a NIC is stopped or otherwise shut down. Currently most (if not all) NIC models seem to s

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-13 Thread Paul Brook
> Paul Brook wrote: > >> But anyway, this flow control mechanism is buggy - what if instead of > >> an interface down, you just have a *slow* guest? That should not push > >> back so much that it makes other guests networking with each other > >> slow down. > > > > The OP described multiple guests

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-13 Thread Jan Kiszka
Paul Brook wrote: >> But anyway, this flow control mechanism is buggy - what if instead of >> an interface down, you just have a *slow* guest? That should not push >> back so much that it makes other guests networking with each other >> slow down. > > The OP described multiple guests connected vi

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-13 Thread Jan Kiszka
Jamie Lokier wrote: > Paul Brook wrote: >>> A major reason for this deadlock could likely be removed by shutting >>> down the tap (if peered) or dropping packets in user space (in case of >>> vlan) when a NIC is stopped or otherwise shut down. Currently most (if >>> not all) NIC models seem to sign

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-13 Thread Jan Kiszka
Paul Brook wrote: >> A major reason for this deadlock could likely be removed by shutting >> down the tap (if peered) or dropping packets in user space (in case of >> vlan) when a NIC is stopped or otherwise shut down. Currently most (if >> not all) NIC models seem to signal both "queue full" and "

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-12 Thread Paul Brook
> But anyway, this flow control mechanism is buggy - what if instead of > an interface down, you just have a *slow* guest? That should not push > back so much that it makes other guests networking with each other > slow down. The OP described multiple guests connected via a host bridge. In this c

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-12 Thread Jamie Lokier
Paul Brook wrote: > > A major reason for this deadlock could likely be removed by shutting > > down the tap (if peered) or dropping packets in user space (in case of > > vlan) when a NIC is stopped or otherwise shut down. Currently most (if > > not all) NIC models seem to signal both "queue full" a

Re: [Qemu-devel] How to lock-up your tap-based VM network

2010-04-12 Thread Paul Brook
> A major reason for this deadlock could likely be removed by shutting > down the tap (if peered) or dropping packets in user space (in case of > vlan) when a NIC is stopped or otherwise shut down. Currently most (if > not all) NIC models seem to signal both "queue full" and "RX disabled" > via !ca

[Qemu-devel] How to lock-up your tap-based VM network

2010-04-12 Thread Jan Kiszka
Hi, we found an ugly issue of the (pseudo) flow-control mechanism in tap-based networks: In recent Linux kernels (>= 2.6.30), the tun driver does TX queue length accounting and stops sending packets if any local receiver does not return enough of them. This aims at throttling the TX side when the