Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp700070pxu; Thu, 26 Nov 2020 09:23:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBEdDytDjxKhK3ftQeUNQinW47PTNGSfjVA0C3pijJ/K2L5+gH16MGiJBGTUCuoHhYxYHC X-Received: by 2002:a17:906:4a02:: with SMTP id w2mr3662607eju.267.1606411408049; Thu, 26 Nov 2020 09:23:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606411408; cv=none; d=google.com; s=arc-20160816; b=VGKRB/H63yLw539Q97kgjheqLYPioOx6uoUzVWzS98tTpG8sP8parDC0dEA9pQse9w RhXUUmXqQG5nJigOlg8eET8NM/WXQT5EsOduj/p+umRPBPJsnKZ6Kdbtw7dk37czfech uafzgsl/aL3EgLIvDkg6//ah+4kNd+PGpO2tIvQVOod7rA9zxpXEmRoWyR0IMjVKLbje gPTXGkkIMiR/R3TiwJ3vsHfAku7TofZkMigSGTlNHRQ+JTIV5aIv4EHdKsA+J4HTYWvr KJlm0sT8tU+TTmyM/TNk8F9GCvgdEX3BsJUZNCoL7fL4m2shbCurxf5UJrx7ywUXgHD0 ffxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=FjUk2p6yoO4TTcl1GyhKhP517h1UhqfFBMAP0o1N4lU=; b=p1BF7gJAz6xtRd0ynkOZITDgBXpXAO7RtEBUCIK1KPF+MoBmx7ln+GZrNPwXdhqWxd ZdPwr5qEnYqzgJYLecE9bLL/59DajDQwHkpG1muw8DMzQeazE3XnqaQoKre1jiLtgTOc kQLWF7ayS+42vtTZwnVYH4cwctYjXYA4aQ/O9rxdO2cn30BMHgPPixk+OswuAGQVXS9l YfRnVnQryjPIvIVvQjEyLdwhEi4MfUVi2YybiIvD2u6e70bPW8kFeXBptsu45kuwqCNu ZRWswGUekp304eKtA7JLcge6NBbq9LuL/ell5uM6pdFWtcAmggJfh+E/fDMYl9yFfJo/ fuTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=Cg1sTOOu; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si2560752edq.561.2020.11.26.09.23.04; Thu, 26 Nov 2020 09:23:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=Cg1sTOOu; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404330AbgKZRVb (ORCPT + 99 others); Thu, 26 Nov 2020 12:21:31 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:40600 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbgKZRVb (ORCPT ); Thu, 26 Nov 2020 12:21:31 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AQHEaW5077879; Thu, 26 Nov 2020 17:21:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2020-01-29; bh=FjUk2p6yoO4TTcl1GyhKhP517h1UhqfFBMAP0o1N4lU=; b=Cg1sTOOutRFGixVhGGgkjieMk4j9LZWVM7WqF+6j+5TEnceOsRTzJGZTDP7XlfG65eYW DHmVrDqFgPlS0xCGhcRblb+fw4f0Qhz8nP3fBlNS0WEndKbdwXQR0UEHXJNOr7Fjyg1O bW4e+zGAWoic4/RfIzst05sCVst7AJhyTKVpZFBUcgnxKGa67Dm4F85cNtLgEi45cMH2 amHzJCDgyoWLHZWcKtJ0HJ6W8RqHGofjyPW4B5SSJbz9s3Knla6PafGkb4gxwioUu6UA OccJ2sBFZh3iHdIrrfIs7dTefEm7Eh+dTskn1hbR49jgDrECG/olDzzAEDughKafg9dy mA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 351kwhptcv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Nov 2020 17:21:25 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AQHK1aD168681; Thu, 26 Nov 2020 17:21:25 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 351kwgxw10-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 Nov 2020 17:21:25 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0AQHLKPl017603; Thu, 26 Nov 2020 17:21:20 GMT Received: from anon-dhcp-152.1015granger.net (/68.61.232.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 26 Nov 2020 09:21:20 -0800 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: NFS v3 soft mount semantics affected by commit ce368536d From: Chuck Lever In-Reply-To: Date: Thu, 26 Nov 2020 12:21:18 -0500 Cc: "dan@kernelim.com" , "smayhew@redhat.com" , Linux NFS Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <20201126104712.GA4023536@gmail.com> To: Trond Myklebust X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9817 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 phishscore=0 malwarescore=0 spamscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011260107 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9817 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 clxscore=1011 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011260106 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > On Nov 26, 2020, at 8:48 AM, Trond Myklebust = wrote: >=20 > On Thu, 2020-11-26 at 12:47 +0200, Dan Aloni wrote: >> Hi Scott, Trond, >>=20 >> Commit ce368536dd614452407dc31e2449eb84681a06af ("nfs: >> nfs_file_write() >> should check for writeback errors") seems to have affected NFS v3 >> soft >> mount behavior, causing applications to fail on a slow band >> connection >> with a properly functioning server. I checked this with recent Linux >> 5.10-rc5, and on 5.8.18 to where this commit is backported. >>=20 >> Question: while the NFS v4 protocol talks about a soft mount timeout >> behavior at "RFC7530 section 3.1.1" (see reference and patchset >> addressing it in [1]), is it valid to assume that a similar guarantee >> for NFS v3 soft mounts is expected? >>=20 >> The reason why it is important, is because the fulfilment of this >> guarantee seemed to have changed with this recent patch. >>=20 >> Details on reproduction - using the following mount option: >>=20 >> =20 >> vers=3D3,rsize=3D1048576,wsize=3D1048576,soft,proto=3Dtcp,timeo=3D50,re= trans=3D16 >=20 > Sorry, but those are completely silly timeo and retrans values for a > TCP connection. I see no reason why we should try to support them. Indeed. Is there a reason to allow administrators to set these values? >> This is done along with rate limiting on the outgoing interface: >>=20 >> tc qdisc add dev eth0 root tbf rate 4000kbit latency 1ms burst >> 1540 >>=20 >> And performing following parallel work on the mountpoint: >>=20 >> for i in `seq 1 100` ; do (dd if=3D/dev/zero of=3Dx$i &) ; done >>=20 >> Result is that EIOs are returned to `dd`, whereas without this commit >> the IOs simply performed slowly, and no errors observed by dd. It >> appears in traces that the NFS layer is doing the retries. >>=20 >> [1] =20 >> = https://patchwork.kernel.org/project/linux-nfs/cover/20190328205239.29674-= 1-trond.myklebust@hammerspace.com/ >>=20 >=20 > Yes. If you artificially create congestion by telling the client to > keep resending all your outstanding data every 5 seconds, then it is > trivial to set up this kind of situation. That has always been the > case, and the patch you point to has nothing to do with this. >=20 > --=20 > Trond Myklebust > Linux NFS client maintainer, Hammerspace > trond.myklebust@hammerspace.com -- Chuck Lever