Received: by 10.192.165.148 with SMTP id m20csp919171imm; Wed, 25 Apr 2018 09:37:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+v6CCAfEJiO0etA4TuEqtaFWh7P6pfu0gfo3EMX439MQX5lGol2St7D80I6uehHoFiaL69 X-Received: by 10.99.101.194 with SMTP id z185mr24205821pgb.337.1524674234311; Wed, 25 Apr 2018 09:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524674234; cv=none; d=google.com; s=arc-20160816; b=wrvNUP6/wBd2r668Pyl3iGmJs4cl96Rqfv2FrXJW7TIjK2/C/dA3EHRdDWki0gboxH xExnjVw/V8ObVUCQx8pLKjoaEhJ4mvJO3xxmu1TY1CFymorJxHttY2k/muXz/r3sR/dm n6/J3sor2La53xvn4d7sCQUIeD1Wiuii38wXwNpeYDeuJCFa6pbNT/sTUiMU4m9+zd5x 5oGndVm5upabgXlx2PqwJCwY5n2H77j/XkaWk5qFS+WD71tKfCMBnP1MP0yf2YwZqXWP BnfQwWPeYZQ4oXGIb9Kf7FYNuhqyyeZ6WkVDuUd678D+RiWwwCZFBCxM6frWL001jaBd PmWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=IlxhFgsq3/dusSBdVEKc3z9ZT+StUHVJerqZtlS73go=; b=uvwFCGXS3Ofetjdd8NbLGdPFgVJ13jtBMd77ubDvA1HMMbiTJwpbDvC9tTm5tVRH+f nPTck9qg0NVdHgNscKlHYjUC7hMCgBOJy85QpwVaojQX3pI8LAhJ5ANSeDnqNorPQYF9 tkJZYfRVnKvhDRKiN8G0RqbHzAaiNQD2YZCsot9diDEJ6b1I3VXyW/Agj6I2oFYhR8S9 shILbGYASjyFrDjAEj7j7PzV1CEC7u+araURajGSFnD4VfCOaRFS0YKgFIw+GiIBY5sB 9zLQ79sfb57LyluOKAWBTp5etfkF58B3OPpDXNYxNwdMOF/xbd5SV0dOOwI+s6RDU53i z/aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e4dD5cZi; 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; 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 b66-v6si15389941plb.107.2018.04.25.09.36.59; Wed, 25 Apr 2018 09:37:14 -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=pass header.i=@gmail.com header.s=20161025 header.b=e4dD5cZi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756048AbeDYQfQ (ORCPT + 99 others); Wed, 25 Apr 2018 12:35:16 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:46863 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755296AbeDYQfN (ORCPT ); Wed, 25 Apr 2018 12:35:13 -0400 Received: by mail-pg0-f42.google.com with SMTP id z4so806975pgu.13; Wed, 25 Apr 2018 09:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=IlxhFgsq3/dusSBdVEKc3z9ZT+StUHVJerqZtlS73go=; b=e4dD5cZibSLh7lNCyDel3/uazJeuiXbsd1UWbU8uVjS7ONOIWw3r2/n39RttB2W8iO /A/SoLVF/AwjFa1GaPbHwOTQY9S+fi8Ju6hTpZMOAEwDLWqTF2eQsCvidJ1zzPtbWNyz KXUGsXWSsuCR5Mc8GQpsXcUSoYHBSMlPEO1gwt6L5DfETjTv0CQP5HGRRg+0lVWVYfXM WATza/vcgiLEFQx1f04MKh0GU1I45CnROypyyRcAY+i4DH9iyNxO5vXzEhnLPibFEiqU vU3mZqSyA5+W6/spUqIcKCfur2/yV7cphCoDJFkMb5W5NoeG7IuTAzvUvJOYOWe9FFEw ISoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IlxhFgsq3/dusSBdVEKc3z9ZT+StUHVJerqZtlS73go=; b=dwXwd7nCF5QXwFTDZ2QGww7bt5+GIXhF4M/KLX8+SO8f+u19/fDQnCpx3LjfzZQ5k7 K7vQxqZFASHXnAE3SHyoEpEwlOjT61jvVnsmw9/ZF5G/ncd1Zqyq/M+PKpEJvesFJb4D Qj7q5irFrYaaJIsZbt1dKYU3W84PJGI0sfSU53yDiZwzzT6lemXyskklLJ1/06FWJuYy eFqku22DjkqVXVnHPquLaQoQkXcJNkQC3UdcIXa/2eDVlQs7NaXCpqKUOEY8ZWlTukst tVN3jSCs3lcxPJmCIemoqalKOuNsOezVrViIwMF1LHJ9z9kFd1Jh1O/JG3b+anLKRrIq reYQ== X-Gm-Message-State: ALQs6tCMXz7BVaMzWxYeIUIDdZgClZeLNRIK9cB9GiVYXXfM+r+GeTkK rqVrO5VzRuegTgtTKF3PSxE= X-Received: by 10.98.220.78 with SMTP id t75mr27907620pfg.139.1524674112457; Wed, 25 Apr 2018 09:35:12 -0700 (PDT) Received: from ?IPv6:2620:15c:2c1:200:55c7:81e6:c7d8:94b? ([2620:15c:2c1:200:55c7:81e6:c7d8:94b]) by smtp.gmail.com with ESMTPSA id 86sm40596758pfh.93.2018.04.25.09.35.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Apr 2018 09:35:11 -0700 (PDT) Subject: Re: [PATCH net-next 1/2] tcp: add TCP_ZEROCOPY_RECEIVE support for zerocopy receive To: Andy Lutomirski , Matthew Wilcox Cc: Eric Dumazet , Christoph Hellwig , Eric Dumazet , "David S . Miller" , netdev , linux-kernel , linux-mm , Soheil Hassas Yeganeh References: <20180425052722.73022-1-edumazet@google.com> <20180425052722.73022-2-edumazet@google.com> <20180425062859.GA23914@infradead.org> <5cd31eba-63b5-9160-0a2e-f441340df0d3@gmail.com> <20180425160413.GC8546@bombadil.infradead.org> From: Eric Dumazet Message-ID: <155a86d5-a910-c366-f521-216a0582bad8@gmail.com> Date: Wed, 25 Apr 2018 09:35:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/25/2018 09:22 AM, Andy Lutomirski wrote: > In general, I suspect that the zerocopy receive mechanism will only > really be a win in single-threaded applications that consume large > amounts of receive bandwidth on a single TCP socket using lots of > memory and don't do all that much else. This was dully noted in the original patch submission. https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=309c446cb45f6663932c8e6d0754f4ac81d1b5cd Our intent at Google is to use it for some specific 1MB+ receives, not as a generic and universal mechanism. The major benefit is really the 4KB+ MTU, allowing to pack exactly 4096 bytes of payload per page.