Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16395673rwd; Mon, 26 Jun 2023 09:24:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7kpTIDKtECjWbi0Sf6gu+QYJXaMaFW7NPe8vEgmlvklG2ntCHeAL9vToO2Il2/MxrK2l+p X-Received: by 2002:a17:906:9b86:b0:982:21a1:c4e0 with SMTP id dd6-20020a1709069b8600b0098221a1c4e0mr28409467ejc.56.1687796657285; Mon, 26 Jun 2023 09:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687796657; cv=none; d=google.com; s=arc-20160816; b=DRoAJIxGotVQpKbfpbhh1qO1MZ117xlRw0sXO5ykn2l1POousEo4OP8vbBDV+BAKCS UmXpOrn1tYzYFazSe/Tvnmal1VC5LV4msG/bmLGsgO3LCZiq/T6RDfZ06+38JSfoSC3L vlRX4QKWjVd3PGptEX8ehsuLkZnNFQL8MZg7LQUSbsMZ2dhs+/GXBt1RDRR4xDf9mT0m PW6XAlSZqdzY3UtYYxMdQAzQwJ3BAHIFJsnILOFgTDDCVrNXC0E0Osr0ICqngOYMT1fI j3uxIRTpVtufEtMRHcnqgWYOkBouSCUlkVkxLtln/PSDek+zsW98KjzHrDUoDFjcHXti APrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=o89Xl8sumR+a/JQGWKqb/MvKGfCSwc6E741ND5ks+BU=; fh=LjG57/xhNymJeHvCYkXV5dN1FMn8k3P6RGOhbmkzhhI=; b=NPu2bOzZSE9BuE58OXkc3vcaLmQK0UGfbsDdnUL5RunvPBEATaQg6pmRORM2ZMS9ZQ OjMzFtQnpHf/p9PNidOzvtQ65xjIgAH2B7KdbF9n0RK4WP/9kHxHalC8Qh96C+ZmvFYu lfOlpyzVpdJwOj/SzbjV/8DkkXsE55glXEeduVK8qSeQQJ/IrxttF2IbkWVnILflb0tl /ard0XpSvkqXAOT7bwYaQfA4KxTssD9VcFMRlV1uK7vD2ihIUG9CwfEqC04uuwnrkIH9 NtXOUTWs33NlpRwzFEQxogomMUuLezbSpcT1LJGz9U82OURSK6AUXB7AefGHG73inGCx M33g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UvHZ1p09; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a170906178d00b0098d5b116e6fsi3002976eje.856.2023.06.26.09.23.49; Mon, 26 Jun 2023 09:24:17 -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=@gmail.com header.s=20221208 header.b=UvHZ1p09; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229501AbjFZPxC (ORCPT + 99 others); Mon, 26 Jun 2023 11:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjFZPxB (ORCPT ); Mon, 26 Jun 2023 11:53:01 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1EEAAA; Mon, 26 Jun 2023 08:52:47 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-991aac97802so183932466b.1; Mon, 26 Jun 2023 08:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687794766; x=1690386766; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=o89Xl8sumR+a/JQGWKqb/MvKGfCSwc6E741ND5ks+BU=; b=UvHZ1p093j9l8Bo4IqKhWyxuMi83Z9LqBZk6+ZbEfd52QkuOS5jCFKgbi5TLH7G87w TMk9esoBHsBIueS7mc+2HystrO5BPvRUmAcFzjXoziOg4eDJXi7ZHkFJRCi6kDWjlpYl buM5YSJpTfmZqgPKFrWVYnm7d4pYLIFEcq5IXSnzlEs8PsNgo8Z5F2OgWBiMHrubucik PrgbDIWro9z9lmKS2nC/wnbJxpA7ABI//Aw78sBdzbp8XRLy4IK0jS+STAkGhVcQCrtj kbbDaGu+sH1ZNYesQIzTBydurRb/ZAvcf+jIvHHLu0lIv8ELog0H/YpGTEu7O9oF9y8c +iEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687794766; x=1690386766; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o89Xl8sumR+a/JQGWKqb/MvKGfCSwc6E741ND5ks+BU=; b=GGlpW+5E8VtQED6EnM9xqm8tkLwzQYOhYW80uAed4V4hFfey9MLluI8ej2fYYjYCv4 VoikhxOL1LPs10/d95bQclSu+dWD2PW0Pm3hn5Z7WSt4QNNOHzyk2ACr29C/e+JPUDIS vtu8UOtotHac5nIddx6f+dKwDVs0uX53m51jZ51az2g1Qok1a/oLvRiX8XAGRAX7WVoF xCjVlumset7x/fL+3kcHJPqHwyppwu/iD+VmYYDXZckIbZ9r8UpZEg7BGOUwrWYD4Cau 3VJLS4QODcppouZ8sHHpWFv6knmnqgeWTbUY304z8jEgdDLqgip9tWxec7d1B/tVgSzC Z5RQ== X-Gm-Message-State: AC+VfDzwv2hOtdJntML5BM8xjGbcCvC6LDsaS4v7MwNrHQby6Vm7zgvk ZlY1/OcAcGG1NAxx3Qul+vqWBbqtE4qz40ks1Zg= X-Received: by 2002:a17:907:97cf:b0:991:e961:a5f4 with SMTP id js15-20020a17090797cf00b00991e961a5f4mr1282227ejc.20.1687794766223; Mon, 26 Jun 2023 08:52:46 -0700 (PDT) MIME-Version: 1.0 References: <20230623225513.2732256-1-dhowells@redhat.com> <20230623225513.2732256-4-dhowells@redhat.com> <3070680.1687792331@warthog.procyon.org.uk> In-Reply-To: <3070680.1687792331@warthog.procyon.org.uk> From: Ilya Dryomov Date: Mon, 26 Jun 2023 17:52:34 +0200 Message-ID: Subject: Re: [PATCH net-next v5 03/16] ceph: Use sendmsg(MSG_SPLICE_PAGES) rather than sendpage To: David Howells Cc: netdev@vger.kernel.org, Alexander Duyck , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , David Ahern , Matthew Wilcox , Jens Axboe , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Xiubo Li , Jeff Layton , ceph-devel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Mon, Jun 26, 2023 at 5:12=E2=80=AFPM David Howells = wrote: > > Ilya Dryomov wrote: > > > > - int flags =3D MSG_DONTWAIT | MSG_NOSIGNAL | more; > > Btw, why are you setting MSG_DONTWAIT? If you're in the middle of > transmitting a message on a TCP socket, surely you can't just switch to > transmitting a different message on the same socket without doing some so= rt of > reframing? We don't want to hog kworker threads. You are correct that we can't switch to transmitting a different message on the same socket but Ceph is massively parallel and there can be dozens or even hundreds of other sockets to work on. Thanks, Ilya