From: Nils Toedtmann Subject: Re: kernel oops/IRQ exception when networking between many domUs Date: Wed, 08 Jun 2005 14:34:36 +0200 Message-ID: <1118234076.25392.48.camel@tpol.nils.toedtmann.net> References: <1117904746.7507.31.camel@lomin> <20050605165716.GA1231@exp-math.uni-essen.de> <49e83a846cc77d6605f4adc2c0f34858@cl.cam.ac.uk> <1118047945.1972.9.camel@lomin> <1118061010.7357.10.camel@lomin> <1118162845.19043.83.camel@tpol.nils.toedtmann.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1118162845.19043.83.camel@tpol.nils.toedtmann.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Birger =?ISO-8859-1?Q?T=F6dtmann?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Am Dienstag, den 07.06.2005, 18:47 +0200 schrieb Nils Toedtmann: > Am Montag, den 06.06.2005, 14:30 +0200 schrieb Birger T=F6dtmann:=20 > > Am Montag, den 06.06.2005, 10:26 +0100 schrieb Keir Fraser: > > [...] > > > > somewhere around the magic 128 (NR_IRQS problem in 2.0.x!) when t= he > > > > crash happens - could this hint to something? > > >=20 > > > The crashes you see with free_mfn removed will be impossible to deb= ug=20 > > > -- things are very screwed by that point. Even the crash within=20 > > > free_mfn might be far removed from the cause of the crash, if it's = due=20 > > > to memory corruption. > > >=20 > > > It's perhaps worth investigating what critical limit you might be=20 > > > hitting, and what resource it is that's limited. e.g., can you can=20 > > > create a few vifs, but connected together by some very large number= of=20 > > > bridges (daisy chained together)? Or can you create a large number = of=20 > > > vifs if they are connected together by just one bridge? > >=20 > > This is getting really weird - as I found out I'll enounter problems > > with far fewer vifs/bridges that suspected. I just fired up a networ= k > > with 7 nodes, all with four interfaces each connected to the same fou= r > > bridge interfaces. The nodes can ping through the network, however > > after a short time, the system (dom0) crashes as well. This time, it > > dies in net_rx_action() at a slightly different place: > >=20 > > [...] > > [] kfree_skbmem+0x12/0x29 > > [] __kfree_skb+0xa5/0x13f > > [] net_rx_action+0x23d/0x4df > > [...] > >=20 > > Funnily, I cannot reproduce this with 5 nodes (domUs) running. I'm a > > bit unsure where to go from here... Maybe I should try a different > > machine for further testing. >=20 > I can confirm this bug on AMD Athlon using xen-unstable from june 5th > (latest ChangeSet 1.1677).=20 [...] errr ... sorry for the dupe. > Further experiments show that its seems to be the amount of traffic (an= d > the number of connected vifs?) which triggers the oops: with all OSPF > daemons stopped, i could UP all bridges & vifs. But when i did a flood- > broadcast ping (ping -f -b $broadcastadr) on the 52th bridge (that one > with more that two active ports), dom0 OOPSed again. >=20 > I could only reproduce that "too-much-traffic-oops" on bridges > connecting more that 10 vifs. >=20 > Would be interesting if that happens with unicast traffic, too. Have no > time left, test more tomorrow. Ok, reproduced the dom0 kernel panic in a simpler situation: * create some domUs, each having 1 interface in the same subnet * bridge all the interfaces together (dom0 not having an ip on that bridge) * trigger unicast traffic as much as you want (like unicast flood pings): No problem. * Now trigger some broadcast traffic between the domUs: ping -i 0,1 -b 192.168.0.255 BOOOM. Instead, you may down all vifs first, start the flood broadcast ping in the first domU and bring up one vif after the other (wait each time >15sec until the bridge put the added port in forwarding state). After bringing up 10-15 vifs, dom0 panics.=20 I could _not_ reproduce this with massive unicast traffic. The problem disappears if i set "net.ipv4.icmp_echo_ignore_broadcasts=3D1" in all domains. Maybe the probem rises if to many domUs answer to broadcasts at the same time (collisions?). /nils.