Skip to contentSkip to conversation

network hang trigger

DISCUSSION James Harper 2 participants 2 messages Sep 16, 2004

lore
Share & tools
lore
#0 lore raw

This patch makes no difference on my system. Looking at the line numbers in your patch, your netfront.c appears to be a different vintage to mine. I applied the patch manually and then rebuilt the xenU kernel and 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 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 from ping or a fragmented udp packet from nfs) was causing a hang until 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 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 be a side effect.

The deadlock would have to be caused in the transmit from xenU to xen0, and something about the difference between sending a ping and responding 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 8 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

I've just modified the netfront.c (haven't touched netback.c yet).

I've

Quoted 1 line

done two modifications: (1) free sk_buff properly on the transmit path

(2)

Quoted 5 lines

In netif_poll(...) function, packets **should not** be passed to netif_rx(); instead, use: int netif_receive_skb(struct sk_buff *skb).

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.c and

netback.c

Quoted 3 lines

tomorrow.

Here is the patch. Please try it out. With your results, the changes

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 who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

#1 lore raw
Quoted 9 lines

When I was thinking about this problem, I was imagining a deadlock condition where rapid back to back packets (eg a fragmented icmp packet from ping or a fragmented udp packet from nfs) was causing a hang until 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 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 be a side effect.

Quoted 4 lines

The deadlock would have to be caused in the transmit from xenU to xen0, and something about the difference between sending a ping and responding to a ping is the difference between always causing a lockup and only sometimes causing a lockup.

Try tcpdumping each end of teh connecttion.

I find that for ping 0->U, the 'seizure' is entirely within DOM0 -- ping responses are still received, but for some reason they don't make it up to the ping application.

For ping U->0, it does look as though the network seizes up -- I see no packets in either direction.

-- Keir

-------------------------------------------------------
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