Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp52589ybj; Thu, 19 Sep 2019 10:32:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwwsC8MLK58d76M+llKCWGZXn7Q7iOATl2FexUrtCkGnXCx1u099SRJQPoCVYVqHGc2bAZ X-Received: by 2002:a17:906:8041:: with SMTP id x1mr15291783ejw.132.1568914335866; Thu, 19 Sep 2019 10:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568914335; cv=none; d=google.com; s=arc-20160816; b=O5/s5OKZSJvtUkACjfD1yB1dxyRWemt2W4lyFWI6Hn8YL0vnTPkkWdLkpx3GSGQYWF rcztaTbCgDuAmsj7lYdbpRMrLqpO2HljpPVHZDSratErGMbYfaWkrypg655h1oqfwAj+ gR7y9iKcHFFSDqK4Y6x/1u+aFEitwbgGdatBNJGxuzSbedKZ8jW3Myhg0/I4U0EAS74Y 7XPjw0+CkJI0QH1Y12ZxqXARKuIbvmTcIVxKkBpkfsBl/6ok2wodauBm33UnrA8mdXmb qbZTNYL6yZHCEk73WZ+2JjffFOK9oPv6YrJ9kXMmLsegoWVjuIiqBs97q0mcn5cW/J16 LZow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7Q/kkfVVsj6sw5lYCmq8HgqPXsWbozaGSHVGGTc0OmU=; b=t3tZoQQnCK7UrxM97ibgSAS9orwUk6bRVzaYAPOKWsWCOkFhXR0yqmHFQ31fryfzgp aq3/Nx4GOU9ApJriHt3ydxG9CE9VsQRaUmlvtV1AJz/CZZmtUTHqPuO3jjOJJGmu3d5r JYz8e1Y8Q4yC2JhQu1KNomU2QsVcU7FZmtzdNRxaAw5PdpK6RGIN3ibHgivvvdzL0uut oFvZ3ZDzrj/ErYT2YWIFM6t8ERcpiKgbAzsr5/dODrO5RGsfrllHYEn8JpyjgOvlF+pz w1OdE4SJcxwu6NGMFT9T1BZ9eZzBw+7CFL7TkKtn4MyNHv604O3/HKZSp6PkxmO7OoGt yiCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XE4NhdvN; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y19si4840819ejp.196.2019.09.19.10.31.44; Thu, 19 Sep 2019 10:32:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XE4NhdvN; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390929AbfISPI7 (ORCPT + 99 others); Thu, 19 Sep 2019 11:08:59 -0400 Received: from mail-io1-f44.google.com ([209.85.166.44]:37923 "EHLO mail-io1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388808AbfISPI7 (ORCPT ); Thu, 19 Sep 2019 11:08:59 -0400 Received: by mail-io1-f44.google.com with SMTP id k5so8531648iol.5 for ; Thu, 19 Sep 2019 08:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7Q/kkfVVsj6sw5lYCmq8HgqPXsWbozaGSHVGGTc0OmU=; b=XE4NhdvNXktFcq5mkhIJ0rF0NRT063Bm7lueTbqe7EYRhaO2r3QN0A8LuFqVTXJaGK BWnsu5Mi4b0u2SPtoE0kdwAjVzu29u/KAY0+K7JpiiPm1EZFvR4t1JDgM2cZdPofiy8X 9PBPYJasSQAnVPnTyKw13bQg3AbZDTKxN+t4UjgQMbB1AbQUFsGfzL6nEuRAEXcF4Gn3 5J63zJUFX3zkDUzLcJmSOIyLgm1mfjomuon/Z2+nJ26nqWDSMTHGevkD8zonxlhpKZF8 SmQ5I2QTJ+puWnVvft4se0g/5GTcIXWDPmn6pcHsc94XHAZM0yNS7OPS4T51HjKjOkYi Wz8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7Q/kkfVVsj6sw5lYCmq8HgqPXsWbozaGSHVGGTc0OmU=; b=JOfeYkXpCIbqljbH6WcTPe3teLn9NnzbFYNE6fAhsDcDsLzqsNgenB8XXGwnK6ilCc 3f7Q2V3M2tN/ERoTOTfvh4FxhFsunXWERQ/b462ySmqd3KTH/MMDSuQt7O4G3diQeV8U KmAHTMW5VCeOeDITpNv/2IVl8i9+mz5BbBF73RjbPMPPTscqs+kuevShIyJIrjc+2Bn/ SB2yKtuypqG68UbSBVLGr1Jqk0RUQ8X83uMR5AJGNueP3JLUtCnIvUDJdRrm+UxmQgas POvRakzwanVj4gK3T2UD7yok93IIi/RETj+ZUHkTiq9VQRRTvQyGiUOPopHxk/KkU12u 43iA== X-Gm-Message-State: APjAAAVUWGjhTHf2ZPxqylNKhsoBm/eUkmmODPlg1p6JkSIcUbtViXUp 1c0EB440ebn8sHS2M2SllVfCc6kXo1hPwOV6DQ== X-Received: by 2002:a02:2302:: with SMTP id u2mr12837744jau.70.1568905737764; Thu, 19 Sep 2019 08:08:57 -0700 (PDT) MIME-Version: 1.0 References: <80353d78-e3d9-0ee2-64a4-cd2f22272fbe@gmail.com> In-Reply-To: <80353d78-e3d9-0ee2-64a4-cd2f22272fbe@gmail.com> From: Trond Myklebust Date: Thu, 19 Sep 2019 11:08:46 -0400 Message-ID: Subject: Re: rsize,wsize=1M causes severe lags in 10/100 Mbps, what sets those defaults? To: Alkis Georgopoulos Cc: linux-nfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, 19 Sep 2019 at 03:44, Alkis Georgopoulos wrote: > > Hi, in any recent distribution that I tried, the default NFS wsize/rsize > was 1 MB. > > On 10/100 Mbps networks, this causes severe lags, timeouts, and dmesg > fills with messages like: > > > [ 316.404250] nfs: server 192.168.1.112 not responding, still trying > > [ 316.759512] nfs: server 192.168.1.112 OK > > Forcing wsize/rsize to 32K makes all the problems disappear and NFS > access more snappy, without sacrificing any speed at least up to gigabit > networks that I tested with. > > I would like to request that the defaults be changed to 32K. > But I didn't find out where these defaults come from, where to file the > issue and my test case / benchmarks to support it. > > I've initially reported it at the klibc nfsmount program that I was > using, but this is just using the NFS defaults, which are the ones that > should be amended. So initial test case / benchmarks there: > https://lists.zytor.com/archives/klibc/2019-September/004234.html > > Please Cc me as I'm not in the list. > The default client behaviour is just to go with whatever recommended value the server specifies. You can change that value yourself on the knfsd server by editing the pseudo-file in /proc/fs/nfsd/max_block_size. Cheers Trond