Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1360861rdb; Fri, 20 Oct 2023 17:19:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrNQWkbwki6vOVFDO3tU9iEqkisAI1ZHHRdijriOr6PGys1aQtEUKNwOAagS/eeY5599pF X-Received: by 2002:a17:902:ce88:b0:1bc:1e17:6d70 with SMTP id f8-20020a170902ce8800b001bc1e176d70mr4800189plg.24.1697847590688; Fri, 20 Oct 2023 17:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697847590; cv=none; d=google.com; s=arc-20160816; b=ZhAPgNOhcllYyu3O1o7VJOjk8LFUVSMPvq4ZSj94a85fsmfSuuIlfglMIUtjCJ9dN/ jNjetuSz14z2f5ky6mlB4CDaqV1InFTt12Zgb7ZPIy56yT4WHRWFOLp/9hxABRlB88FU aypn3uC+clT1zJi68bJ3bq+jyw0YS2XUy2lWkzT5hTeZM/n7Ck5DPt5Fbzl0gUyvQ58L LXBYG/oKmZoBf/oXtcs0HAt4XirsY0nHaFCl7OcHLsX1G83KqXB9UUXLs/WzdFV9CA+m oPvbBI7vlfbr8LaulgDUnu7QIUZxHnXXxQmDQNcBJZ7efXcSK4Rl6WPVbP7dP2BI+LbR THzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:to:from:date:dkim-signature; bh=e7EidYz+kLXw5JDm0FYXddgWgCZRt0ZZK9u/rRq/3j0=; fh=MONCQVnwV+oQIdkWKjDHs8zDCCw6MCBsTRrLB2uedXA=; b=cE6V2LM1LtenvZ2xKQln/HRrPFuYAPiMUQaIyNn1WZ1r9tnWy2dP9kvGRR7bFcS8fD 2ohHghifkCXKgTeAWhZFPBbxaehz1ptYt/C5RdJLw/YLTWAIXQRwfGQ7npogZSTqpERW zzy0hEXr8mOR9X1UZaUaEUKDb5iCvSG3GvFfAu7eBVuW5hUtPcopTLfeGs2tOOYmUHSJ bDTyLRUy9fJYjO81x9oS9p1PngoAN7F4R0YjE52d7EGKtGhmS8ZPAvaDCO75RrbZTrz+ YF+7bnW/8cPTpbeEPiiNLt76LqxR+uU0IusUt4ulKeFKDBaKfUFcO6bqxUjmzSBOBBlU WdDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=FBx0co3a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o7-20020a170902d4c700b001c774a25b3bsi2719761plg.233.2023.10.20.17.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 17:19:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=FBx0co3a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A74E282FABD2; Fri, 20 Oct 2023 17:19:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232815AbjJUATr (ORCPT + 99 others); Fri, 20 Oct 2023 20:19:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231875AbjJUATp (ORCPT ); Fri, 20 Oct 2023 20:19:45 -0400 Received: from m1311.mail.163.com (m1311.mail.163.com [220.181.13.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7BF76D6B for ; Fri, 20 Oct 2023 17:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Content-Type:MIME-Version: Message-ID; bh=bi2/jAtBO/R7DPkVzRfhSgvjTTTHe65pMfy/zIfTavA=; b=F Bx0co3a/BciTQg855NfD0AWyBLABcqj5buhD332uaXpbBTwAQLptmt5OVeCKjVPV QxRD7RT1Th1LVCld7dEerHq1/F3jkZ8jX9bWWPAxCCatuwAgNab2A08mDcdqMCFN kPZOdLNVTMvmTDJ+58VbzNWaaUOPjgDU+SOckbqLgE= Received: from 00107082$163.com ( [111.35.185.232] ) by ajax-webmail-wmsvr11 (Coremail) ; Sat, 21 Oct 2023 08:19:34 +0800 (CST) X-Originating-IP: [111.35.185.232] Date: Sat, 21 Oct 2023 08:19:34 +0800 (CST) From: "David Wang" <00107082@163.com> To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PERFORMANCE]fs: sendfile suffer performance degradation when buffer size have performance impact on underling IO X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.14 build 20230109(dcb5de15) Copyright (c) 2002-2023 www.mailtech.cn 163com X-NTES-SC: AL_QuySBfSfuE0s4iaYY+kXn0oTju85XMCzuv8j3YJeN500vinW3h4PbG9dHUPX7NOPCSKsoAi7eh9H7vpVcrhYdKYFLfxkO5652uZSTRLRuMUN Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=GBK MIME-Version: 1.0 Message-ID: <28de01eb.208.18b4f9a0051.Coremail.00107082@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: C8GowAA3R1MXGTNle+YPAA--.41289W X-CM-SenderInfo: qqqrilqqysqiywtou0bp/1tbiEA8Qql8YL38cvgAEsU X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 20 Oct 2023 17:19:49 -0700 (PDT) SGksIAoKSSB3YXMgdHJ5aW5nIHRvIGNvbmZpcm0gdGhlIHBlcmZvcm1hbmNlIGltcHJvdmVtZW50 IHZpYSByZXBsYWNpbmcgcmVhZC93cml0ZSBzZXF1ZW5jZXMgd2l0aCBzZW5kZmlsZSwgCkJ1dCBJ IGdvdCBxdWl0ZSBhIHN1cnByaXNpbmcgcmVzdWx0OgoKJCBnY2MgLURVU0VfU0VOREZJTEUgY3Au Y3BwCiQgdGltZSAuL2Eub3V0IAoKcmVhbAkwbTU2LjEyMXMKdXNlcgkwbTAuMDAwcwpzeXMJMG00 Ljg0NHMKCiQgZ2NjICBjcC5jcHAKJCB0aW1lIC4vYS5vdXQgCgpyZWFsCTBtMjcuMzYzcwp1c2Vy CTBtMC4wMTRzCnN5cwkwbTQuNDQzcwoKVGhlIHJlc3VsdCBzaG93IHRoYXQsIGluIG15IHRlc3Qg c2NlbmFyaW8sICB0aGUgcmVhZC93cml0ZSBzZXF1ZW5jZXMgb25seSB1c2UgaGFsZiBvZiB0aGUg dGltZSBieSBzZW5kZmlsZS4KTXkgZ3Vlc3MgaXMgdGhhdCBzZW5kZmlsZSB1c2luZyBhIGRlZmF1 bHQgcGlwZSB3aXRoIGJ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