From: Trond Myklebust Subject: Re: [2.6.30.1] Significant latency playing video file from NFS4 share Date: Tue, 21 Jul 2009 13:58:25 -0400 Message-ID: <1248199105.21343.16.camel@heimdal.trondhjem.org> References: <200907172250.51504.elendil@planet.nl> <1247871086.4945.38.camel@heimdal.trondhjem.org> <200907180131.12586.elendil@planet.nl> <200907211931.50015.elendil@planet.nl> Mime-Version: 1.0 Content-Type: text/plain Cc: linux-nfs@vger.kernel.org, Linux Kernel Mailing List , netdev@vger.kernel.org To: Frans Pop Return-path: Received: from mail-out2.uio.no ([129.240.10.58]:60096 "EHLO mail-out2.uio.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751507AbZGUR63 (ORCPT ); Tue, 21 Jul 2009 13:58:29 -0400 In-Reply-To: <200907211931.50015.elendil-EIBgga6/0yRmR6Xm/wNWPw@public.gmane.org> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Tue, 2009-07-21 at 19:31 +0200, Frans Pop wrote: > Any suggestions based on the data below? Yeah. Sorry for the delay. > Is the problem maybe that the amount of data transferred each time is so > big that the network speed becomes a bottleneck and causes the latency? > I can reproduce the issue with both a 10MBit wired link and with a 54MBit > wireless link. > > Is this a kernel bug or a configuration issue? > elrond:/david mounted on /srv/fjp/david: > > op/s rpc bklog > 0.80 0.00 > read: ops/s kB/s kB/op retrans avg RTT (ms) avg exe (ms) > 0.750 192.196 256.262 0 (0.0%) 1998.933 1999.200 > write: ops/s kB/s kB/op retrans avg RTT (ms) avg exe (ms) > 0.000 0.000 0.000 0 (0.0%) 0.000 0.000 This would be where you are losing your performance. 1998.933 ms rtt means that you are seeing a 2 second delay from the instant the RPC client pushes the request into the socket to the moment that socket receives a reply from the server. Basically, you have either a _very_ slow server, or (more likely) a networking problem. A tcpdump ought to be able to show what the problem is: whether it is the packets getting ACKed very slowly, and/or if you have dropped packet issues or if it is truly a problem with the server taking a long time to reply. Cheers Trond