network hang trigger
This lends weight to my idea that it might be a timing related deadlock, I put some debug statements in to see just how often the drop: path was called in network_start_xmit (never), and now I almost can't get it to fail. I put printk's in at the start of the function, and before both the returns.
This particular machine is not SMP btw. It is a single CPU PII running at 350Mhz (697 bogomips)
James
Quoted 8 lines
-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of James Harper
Sent: Thursday, 16 September 2004 10:48
To: Bin Ren; [email protected]
Subject: RE: [Xen-devel] network hang triggerThis patch makes no difference on my system. Looking at the line
numbers
Quoted 2 lines
in your patch, your
netfront.cappears to be a different vintage to mine. I applied the patch manually and then rebuilt the xenU kernel
and
Quoted 9 lines
then booted a domain with it. I haven't touched xen0. Is this the correct thing to be doing?
Ping >mtu from xenU to xen0 causes the network to hang immediately. Ping >mtu from xen0 to xenU sometimes causes the network to hang, but not always. 'ping -i 0.1 -s 6000 <xenU ip>' will mostly cause the hang in under 30 iterations.
The recovery time appears to be in the order of 60 seconds or so, with
a
Quoted 4 lines
partial recovery and then relapse at about 30 seconds.
When I was thinking about this problem, I was imagining a deadlock condition where rapid back to back packets (eg a fragmented icmp
packet
Quoted 1 line
from ping or a fragmented udp packet from nfs) was causing a hang
until
Quoted 2 lines
part of the deadlock timed itself out and the packets started flowing again. I couldn't see 1 packet causing a buffer exhaustion unless it
got
Quoted 2 lines
itself into a loop where it kept retrying to send the second fragment and didn't free the buffer each time, but even then the buffer bug
would
Quoted 3 lines
be a side effect.
The deadlock would have to be caused in the transmit from xenU to
xen0,
Quoted 1 line
and something about the difference between sending a ping and
responding
Quoted 14 lines
to a ping is the difference between always causing a lockup and only sometimes causing a lockup.
Maybe we're seeing different manifestations of the same problem?
James
Quoted 7 lines
-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of Bin Ren
Sent: Thursday, 16 September 2004 09:54
To: [email protected]
Subject: Re: [Xen-devel] network hang trigger
Quoted 3 lines
Quoted 1 line
I've just modified the
netfront.c(haven't touchednetback.cyet).I've
Quoted 1 line
done two modifications: (1) free
sk_buffproperly on the transmit
path
Quoted 3 lines
(2)
Quoted 2 lines
In
netif_poll(...)function, packets **should not** be passed tonetif_rx(); instead, use: int netif_receive_skb(structsk_buff
*skb).
Quoted 9 lines
Quoted 3 lines
With these two modifications, under 'ping -s 6000', network only occasionally loses a few packets but *very soon* recovers. It's much
more
Quoted 1 line
stable than before. I'll take a closer look at
netfront.cand
netback.cQuoted 3 lines
tomorrow.
Here is the patch. Please try it out. With your results, the changes
Quoted 8 lines
may
Quoted 2 lines
get pushed into the repository.
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement
on
Quoted 6 lines
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Xen-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php