Return-Path: linux-nfs-owner@vger.kernel.org Received: from e9.ny.us.ibm.com ([32.97.182.139]:34796 "EHLO e9.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754858AbaDWVPf (ORCPT ); Wed, 23 Apr 2014 17:15:35 -0400 Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 23 Apr 2014 17:15:34 -0400 Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id DB7DF6E802D for ; Wed, 23 Apr 2014 17:15:24 -0400 (EDT) Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by b01cxnp22035.gho.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s3NLFVie3867026 for ; Wed, 23 Apr 2014 21:15:31 GMT Received: from d01av04.pok.ibm.com (localhost [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s3NLFTBD027737 for ; Wed, 23 Apr 2014 17:15:31 -0400 Date: Wed, 23 Apr 2014 16:15:18 -0500 From: Malahal Naineni To: Cedric Blancher Cc: Linux NFS Mailing List Subject: Re: Tuning Linux NFSv4 for high latency connections? Message-ID: <20140423211518.GA16506@us.ibm.com> References: <20140423202401.GA16168@us.ibm.com> <20140423204405.GB16168@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-nfs-owner@vger.kernel.org List-ID: Cedric Blancher [cedric.blancher@gmail.com] wrote: > On 23 April 2014 22:44, Malahal Naineni wrote: > > Cedric Blancher [cedric.blancher@gmail.com] wrote: > >> On 23 April 2014 22:24, Malahal Naineni wrote: > >> > Cedric Blancher [cedric.blancher@gmail.com] wrote: > >> >> Are there any options to improve the Linux NFSv4 performance over a > >> >> high latency connection? > >> >> > >> >> We currently use Solaris/Illumos as NFSv4 server and client over a > >> >> cross continental Internet connection. Latency is terrible (~220ms) > >> >> but the counter this by running work in parallel so the latency is > >> >> mostly mitigated. > >> >> > >> >> We now wish to migrate (short: Away from Oracle because support is > >> >> basically unbearable) to Linux (tested SuSE 13.1 and current Fedora) > >> >> and build times are 17 times (!!!) SLOWER than on Solaris/Illumos. > >> >> > >> >> Are there any tunables besides actimeo=300? > >> > > >> > rsize and wsize may help! You need to figure out if the read is the > >> > issue or the write before you dig further. > >> > >> I already tried to tune rsize/wsize, making them both smaller or the > >> maximum of 1048576 bytes, with no effect. > >> > >> One possible theory is that maybe something in Linux doesn't allow > >> multiple requests to be issued in parallel and waits for each request > >> to be completed before issuing the next one? > > > > Linux NFS client can issue I/Os in parallel. Should be limited by number > > of RPC slots though. > > What controls the number of RPC slots? is there a tunable? Is there > something to monitor the usage? sysctl sunrpc.tcp_slot_table_entries (if you are using tcp) Also, mountstats would be very helpful. Regards, Malahal.