Received: by 10.192.165.148 with SMTP id m20csp838480imm; Wed, 25 Apr 2018 08:26:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx48njvKHzqd4XinvbKosU68WvP5KIu7QzdTH7kzlZJ2+rTkz7ROIzNWGwtQBhNAjzvcXU1/1 X-Received: by 2002:a17:902:a50d:: with SMTP id s13-v6mr29206797plq.228.1524669988776; Wed, 25 Apr 2018 08:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524669988; cv=none; d=google.com; s=arc-20160816; b=O6gkmX8UWn4NUsmcuaZl0WD3yfBRoHSs/2ED6KB5VvESbQ7Qf8X6EngkZ7UmiiDR7V 5huB6Y9GQ7kVjyXejoha50wg0JCsvR7VWJdtj+tSHG0/FS0TqBSM1wtvSrSC3rV+Vdhq 2BbCOpAGl2jrrr63jHSJVRag0Py3IKeOluTa9u22JZPG8TBUQomyYkKf2PpKRRuZ65Hb HjwEoWyQBkm82jsslaiO94UoSiIbG3e0one+JBz6zHbJIM6trtvMRON8G4JHDopOhIY2 b2S47+3Q7DBw7vliSpzBujloMKxOTgKUVEa94kk3jW0NSZiithcH3vh8QsXNsCw7oCNh 3L0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=cQEDk9Cyrog6zkJhMGq38g4mlMWFQoRD3JbJjrYL/Ew=; b=yRDSoll07g69sZ3/yzRzXw6dDKrXQ1jGgRiECJ9R0WBHQZNnl6OcR2OfBysPaCwVPT C54NBUQne4E3l158RBS61PyHpIpm3LVVK1itoCs9MfZb7CuAGo5tMhkuqVQ1i2twq+Zr faDcKHAekZ3Kal5CrPsc6OPcZ6zhx1ODHb5yhnCiEzbIVLIGM1IhdRKw0FpTTrfNDPYo 7AXmrdHslj92HP8R/Brg7FUXakYZC1hCCXjKrCs/iRH3vopVtktTQGeWjfDkUgwCKvtZ VC2Wa0ZyjWUl15ipFtDRz0blNDbbxlSYLU4NGPvckkeEDVKDZUpguNk+lzQCOCvAfQgG 0bYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gSt+6k8p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l27si16340286pfb.69.2018.04.25.08.26.14; Wed, 25 Apr 2018 08:26:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gSt+6k8p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754807AbeDYPY1 (ORCPT + 99 others); Wed, 25 Apr 2018 11:24:27 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53730 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754320AbeDYPYX (ORCPT ); Wed, 25 Apr 2018 11:24:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cQEDk9Cyrog6zkJhMGq38g4mlMWFQoRD3JbJjrYL/Ew=; b=gSt+6k8pS+sWZGFy0NKtV/tbK wsG1heT37DAhknSOVJes89vBP+gJnfmhdZ0XcZE/BF5H28LfL7OcmXppLVVAE+msyyjQifC5zAzgj 5ExZdKYqQez2T8yPU+Q1Rif3rOvBN+XB/YKqcp9sBidJLYrzyB/CNka4Lot4iX0gz+zEgJi8sbYn8 Bfk5wAeI3QHFduwRR5yeUPMmas0OiImRr9vA6kMmR9RN3/588W7eBiciY+RLufxYuBubmDfBsJ3lR gndsQkYHlT3V5P9qTNHPoqVJC3M/A+VnS8TK5LwKFCfYwPMyfvjvXlLFChpJeo/YSWFlhEXckgkrv W9MUikpNA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBMHO-0008EX-EM; Wed, 25 Apr 2018 15:24:22 +0000 Date: Wed, 25 Apr 2018 08:24:22 -0700 From: Christoph Hellwig To: Eric Dumazet Cc: Christoph Hellwig , Eric Dumazet , "David S . Miller" , netdev , Andy Lutomirski , linux-kernel , linux-mm , Soheil Hassas Yeganeh Subject: Re: [PATCH net-next 1/2] tcp: add TCP_ZEROCOPY_RECEIVE support for zerocopy receive Message-ID: <20180425152422.GB27076@infradead.org> References: <20180425052722.73022-1-edumazet@google.com> <20180425052722.73022-2-edumazet@google.com> <20180425062859.GA23914@infradead.org> <5cd31eba-63b5-9160-0a2e-f441340df0d3@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5cd31eba-63b5-9160-0a2e-f441340df0d3@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 06:01:02AM -0700, Eric Dumazet wrote: > Thanks Christoph > > Note the high cost of zap_page_range(), needed to avoid -EBUSY being returned > from vm_insert_page() the second time TCP_ZEROCOPY_RECEIVE is used on one VMA. > > Ideally a vm_replace_page() would avoid this cost ? No my area of expertise, I'll defer to the MM folks..