Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3391999pxb; Mon, 9 Nov 2020 09:56:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCsBceWRhZ0yg28N/5fC3YUzPondMuGsDLSzpW0lSZjsyVELzk7ZnOlQZbf3ODPOPHjfg8 X-Received: by 2002:a17:906:1643:: with SMTP id n3mr15916872ejd.459.1604944608108; Mon, 09 Nov 2020 09:56:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604944608; cv=none; d=google.com; s=arc-20160816; b=a6ILfozQ8U1cjVivDzWt65j8uUOaT76r0UCW050DQeX3nRb37SDNX+CjriM7bT6OAe 7WPDtRR6xRw15/68AJnus+9+GJholtOQZfM23fRv4YKynAvX87DDjgi49Y/mfaEzx/r1 snG3l5Wlg4GnHAUIZM5VLxFrjlUzX2DZ6MYIj69SAq5Yh9W0VJSZjMi2beed/Zw1c+Eq ERzZitd7paBKtZX6jvKesTDn/fpUQmCC1km99Hf3Ai5YWumuYRttUdsCdqpxzUFxInKF eteFwZW7HppAmpzdsUW+rB8oil4mIg5uQGW1oMnJlmEk1+toy/gW3L4z/LmSvdxq2eG/ fUfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=3bMCJ6oV4LyUEOFexrWIXMDsBYHsUZ6jBKyfSZ6GZAg=; b=etR8ZvTx6tNXs74DbEuNxd4n0enXShwzWNerpOd96K3BYdH2YA+3XiJ5YwpSlXNU5D n0l+BFyV88ruv9PBSaaacMmJgLYOXkM63QdLufUkaO3p4xLbyobjyZ1YqgzLCBQFWOkF AF9ly/7jsX1ru0J5EALYtpgliXEb6L2TOJGqdYzGXpJlJZRL/LT9Zs7Vjpyis6+CUogb 1qtzELe/3rHRM9tIjR+FGKDu4Yg+OMRsKtL9AV66rWA7idP8OrtYrqkfKNhhsDYPG5ye iuR/GduILOd9MkY00xtXZP1r/FHy3fNbs93PTFMXVuaOnBaNgIqA8jfzteME20c76cAh VzUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=wQOvZu2P; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f5si7080426ejk.374.2020.11.09.09.56.17; Mon, 09 Nov 2020 09:56:48 -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=@fieldses.org header.s=default header.b=wQOvZu2P; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729941AbgKIRzx (ORCPT + 99 others); Mon, 9 Nov 2020 12:55:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729923AbgKIRzw (ORCPT ); Mon, 9 Nov 2020 12:55:52 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2291C0613CF; Mon, 9 Nov 2020 09:55:52 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 9768B1C79; Mon, 9 Nov 2020 12:55:51 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 9768B1C79 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1604944551; bh=3bMCJ6oV4LyUEOFexrWIXMDsBYHsUZ6jBKyfSZ6GZAg=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=wQOvZu2Pbp/isw5mcfB+atX+QmeeTpreMzJ3DMd8juj/0xa56YlEgLBeUvU5TFw6k WzDLo+CJ4UO/9YBG/BZyTiJKhy8oyAgEwg2ANtGaFEndc7B8lPMXOgri+yb6l6A/zu WNNVrYzt9vcSVgrgapLVXd5sTKs3sGzlqQsPo9Ps= Date: Mon, 9 Nov 2020 12:55:51 -0500 To: Chuck Lever Cc: Trond Myklebust , Linux NFS Mailing List , "netdev@vger.kernel.org" Subject: Re: [PATCH RFC] SUNRPC: Use zero-copy to perform socket send operations Message-ID: <20201109175551.GC11144@fieldses.org> References: <160493771006.15633.8524084764848931537.stgit@klimt.1015granger.net> <9ce015245c916b2c90de72440a22f801142f2c6e.camel@hammerspace.com> <0313136F-6801-434F-8304-72B9EADD389E@oracle.com> <5056C7C7-7B26-4667-9691-D2F634C02FB1@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5056C7C7-7B26-4667-9691-D2F634C02FB1@oracle.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Nov 09, 2020 at 12:36:15PM -0500, Chuck Lever wrote: > > On Nov 9, 2020, at 12:32 PM, Trond Myklebust wrote: > > On Mon, 2020-11-09 at 12:12 -0500, Chuck Lever wrote: > >> I assume you mean the client side only. Those issues aren't a factor > >> on the server. Not setting SOCK_ZEROCOPY here should be enough to > >> prevent the use of zero-copy on the client. > >> > >> However, the client loses the benefits of sending a page at a time. > >> Is there a desire to remedy that somehow? > > > > What about splice reads on the server side? > > On the server, this path formerly used kernel_sendpages(), which I > assumed is similar to the sendmsg zero-copy mechanism. How does > kernel_sendpages() mitigate against page instability? We turn it off when gss integrity or privacy services is used, to prevent spurious checksum failures (grep for RQ_SPLICE_OK). But maybe that's not the only problematic case, I don't know. --b.