lkml.org 
[lkml]   [2001]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectlinux-2.4.[45] 8139too nfs performance
Hi,

Starting with kernel 2.4.4 the nfs performance with the 8139too driver
is very bad. It seems there are interrupts missing, but the 8139
interrupt is not stuck.

Look at this tcpdump:

Server side ..

19:12:42.840489 192.168.1.1.2049 > 192.168.1.2.3717744806: reply ok 1472 (frag 29651:1480@0+)
19:12:42.840583 192.168.1.1 > 192.168.1.2: (frag 29651:1480@1480+)
19:12:42.840651 192.168.1.1 > 192.168.1.2: (frag 29651:1480@2960+)
19:12:42.840760 192.168.1.1 > 192.168.1.2: (frag 29651:1480@4440+)
19:12:42.840868 192.168.1.1 > 192.168.1.2: (frag 29651:1480@5920+)
19:12:42.840970 192.168.1.1 > 192.168.1.2: (frag 29651:928@7400)
19:12:43.525919 192.168.1.2.3717744806 > 192.168.30.1.2049: 116 read fh 0,24/3019440128 [|nfs] (DF)
19:12:43.526761 192.168.1.1.2049 > 192.168.1.2.3717744806: reply ok 1472 (frag 29652:1480@0+)
19:12:43.526857 192.168.1.1 > 192.168.1.2: (frag 29652:1480@1480+)

... and a similar event at the client side ...

19:20:22.665977 192.168.1.1.2049 > 192.168.1.2.1301891238: reply ok 1472 (frag 29741:1480@0+)
19:20:22.666099 192.168.1.1 > 192.168.1.2: (frag 29741:1480@1480+)
19:20:22.666222 192.168.1.1 > 192.168.1.2: (frag 29741:1480@2960+)
19:20:22.666342 192.168.1.1 > 192.168.1.2: (frag 29741:1480@4440+)
19:20:22.666467 192.168.1.1 > 192.168.1.2: (frag 29741:1480@5920+)
19:20:23.360031 192.168.1.2.1301891238 > 192.168.30.1.2049: 116 read fh 0,24/3019440128 [|nfs] (DF)
19:20:23.361095 192.168.1.1 > 192.168.1.2: (frag 29741:928@7400)
19:20:23.361114 192.168.1.1.2049 > 192.168.1.2.1301891238: reply ok 1472 (frag 29742:1480@0+)
19:20:23.361224 192.168.1.1 > 192.168.1.2: (frag 29742:1480@1480+)


Please notice the huge time lag of the last nfs reply fragment (frag 29741).
Short after the client re-asks the server, it also gets the missing packet,
which is the last fragment of the IP Packet.

Sending ping(8) over the same link improves the performance a bit. The nfs
timeout is reduced to the time of the next ICMP echo request arriving.
So this IP packet can be seen as a reanimate packet for a lost interrupt.

There was already a Message on this list
"NFS-performance drop with 2.4.4 and 8139too"
but no result was posted. I tried the recommended patch with 2.4.5, but the
patch (for sched.c) was incompatible with 2.4.5.

It is strange to me that these effects do not happen with ftp traffic.
I perceive very good performance with ftp. Maybe because ftp is not using
fragmented IP packets.

any ideas?

PS:
I have a second linux client, with almost the same configuration (8139too) and
the same kernel (identical binary). On this host, the effects are also
existent, but happen far less often as with the reported host.
Even more confusing.
--
Eduard Hasenleithner
student of
Salzburg University of Applied Sciences and Technologies
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.046 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site