Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp617760iob; Fri, 13 May 2022 08:49:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy52LmrCTT5H0F2v6+cjLKhZhMjhCm6doRavINIGWR/oLlQyKGzhTfXT/onNDEIaFaC4SaN X-Received: by 2002:a05:6402:908:b0:428:11f5:509d with SMTP id g8-20020a056402090800b0042811f5509dmr40079638edz.253.1652456963573; Fri, 13 May 2022 08:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652456963; cv=none; d=google.com; s=arc-20160816; b=eYN9UZyuN9Q1eQpplE1AVlv6ptde0u8Dg/rk26BDqHKui5tUFtcGTWLz4OwIhz75Sc 53f+wpmiwp31j0RZALz5L6ODnzAjWPLwTTuRRjlX5IgKrZL0dzaiNSddPiYxc1lGC8M6 q9+y717ttJ4Ff/9l+cVeywcdrCwViizPXtDSP0G7ggrjDdr1vM9oqBGb/hDg9he072mx rEzreNjEmwtGuHeClo0c5PpPCYssfq668Um3sDjsQkrpS28DERhDjmol0fto5KsT+mLA ofZfygpYqCJOL2Ey2pfqKcvMu6SQGmZekXIUsyc+YOT+0y9CZiGsNXQ/Aw6lMBX4pqqG 1IzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=eHluz05eQNOi0yx5OamVAfE7RH6QUSsecOJoj8p+2vU=; b=YHZdHTkvfGavpcodwjatUJCORwJd0qZInaDk0pmZFFGmL78/VwxwiA3Le1XQMGEFH4 eKkoHCBr7rifyyFbpSJfvPdoLsORalC6yJIdyncdnx3tDAi/kg/No9LfrzKXW0wCQx9o Drk77LxVlOGrz2JFVJW8viE5v0MQfdadaKGjJ5dxM9GnhLS1le8I2q7ntbD3Q9u6wNLx /QB8VdB7br/S5PPdCaak06uLfzNAOz3OIPA3zEawevCc11tCGEeOhUEsgjx5D+B6uOXW OAjxy3MFek98WqNr/rN57kG7kUztDRwwWWIhTnc7s1ghYWprfLXYGKsSnOLt1k6ZsYuS nmXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DmxBDFhi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq29-20020a1709073f1d00b006f503aa1a11si2409489ejc.863.2022.05.13.08.48.55; Fri, 13 May 2022 08:49:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DmxBDFhi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349321AbiEKXZp (ORCPT + 99 others); Wed, 11 May 2022 19:25:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349228AbiEKXZc (ORCPT ); Wed, 11 May 2022 19:25:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C335210898; Wed, 11 May 2022 16:25:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9E19461DD1; Wed, 11 May 2022 23:25:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAEEDC340EE; Wed, 11 May 2022 23:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652311522; bh=Xr/PGgbfybpVEpcSOPJrloL7Oo2fDa2irJaiFzNYSbc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DmxBDFhiv2XAlPhLcdRkck7Dt+lIq/JWyu0hPYVLlkUUnopoh5NnERA4sBAq4rcq/ oXQKL+ke0kCLJspodU4klWRwgnVLdB0cLww6yvGaiGSzBCthft4unMT7JqesiSNlqE n82eBQe77u4yHuTvHeUb5wk1fTdB+zHEVzu1Va9cbLqiAI7ZhgbV7IR8g5jxf7tI82 QoFyHOh/LD6q1qsiy6cQtC3jO49fLwHjallXRWjYxcMKKyqUN82q1P2vJVjNekvM/f zpPrQdmNFdKRDRO24gKvdeeq2Do0r+rR725Zuzo9L2k+V4m0MIptL/DdoM83hRCMWj 3E0+8KrgGfj8A== Date: Wed, 11 May 2022 16:25:20 -0700 From: Jakub Kicinski To: Joe Damato Cc: netdev@vger.kernel.org, davem@davemloft.net, linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [RFC,net-next,x86 0/6] Nontemporal copies in unix socket write path Message-ID: <20220511162520.6174f487@kernel.org> In-Reply-To: <1652241268-46732-1-git-send-email-jdamato@fastly.com> References: <1652241268-46732-1-git-send-email-jdamato@fastly.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 May 2022 20:54:21 -0700 Joe Damato wrote: > Initial benchmarks are extremely encouraging. I wrote a simple C program to > benchmark this patchset, the program: > - Creates a unix socket pair > - Forks a child process > - The parent process writes to the unix socket using MSG_NTCOPY - or not - > depending on the command line flags > - The child process uses splice to move the data from the unix socket to > a pipe buffer, followed by a second splice call to move the data from > the pipe buffer to a file descriptor opened on /dev/null. > - taskset is used when launching the benchmark to ensure the parent and > child run on appropriate CPUs for various scenarios Is there a practical use case? The patches look like a lot of extra indirect calls.