Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp492011rwj; Sat, 17 Dec 2022 11:24:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf4cAuVXwXOm2M/0Syqs7C6AvwYq+/LEb5HLOjm/+hFbIIS6c0DNbrppMLyl/Y4IEk1AOT88 X-Received: by 2002:a50:ed98:0:b0:46f:9a53:fdce with SMTP id h24-20020a50ed98000000b0046f9a53fdcemr26031360edr.41.1671305091607; Sat, 17 Dec 2022 11:24:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671305091; cv=none; d=google.com; s=arc-20160816; b=kZzJXMAr9l1Po+dd6nZxy4PzzweimKPhiwDFrSdlIFMWlbSmH7aVp/8UyPnSPU7qJd k0DXrHvZn6avZ1sR+OC4nwr4A6KpriKH7jPyC40GKyB08q4Q8P+goLKo5ThkTboIVCnO h1MGymU6NpJYXQHg38OkB7pEhUCf0kRQZqvnj0HZYY9O9+w0iMtQP6VEY23mzytRtvLx rLof/3e3o0SveexgAgr/y7UAzqZwyk55CoQyrRFSvTVcCdhcLPBm0mx/CiiQO2ytQUqe N5VN1rQCCSd+O9iElgvD9DSqwr1gqpERvS5AaFPNXL9QUM4Dj1m+RWmvrCFJb7Mfmc2w SU2w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=cQvKWX9oxZ8qf4HKTzFAJpzwOKnJig3zefwHcLSTHTo=; b=B4AY5QCw73o895JzEu8WJsv67eDsyKcY1VYvAOr9dnogw3sDgWeSdjqXVHEjLuIn4c ODSThT+YLiirmbEsp19EuuhWOnGcnzf2nZkPdsQSdamug+gq2uHEeM6mg8DXFNUT7Gv1 x5lWDYH3qsnoTJEbOEDhFaEerUebwGffVUKJUfYDKoiPjQV1M6iBip1vvCnCi4w9PuC5 PuRGfw5evFNLi80J5LeS+SJkY01ForOnCcOf0LWj1t1nC+QAV8ONhCG2NgwNBX1qOvea oEGNncd0Ksi4L1Jm2izDEzSeyxoEh35vm2p5MnKN7+w5YBGun6504zI5bLrnbH2flT0l +xmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@icloud.com header.s=1a1hai header.b=cpqpUkL5; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=icloud.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a056402280900b0045b293121f1si6959217ede.12.2022.12.17.11.24.35; Sat, 17 Dec 2022 11:24:51 -0800 (PST) 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=@icloud.com header.s=1a1hai header.b=cpqpUkL5; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=icloud.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230393AbiLQTFY (ORCPT + 69 others); Sat, 17 Dec 2022 14:05:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230064AbiLQTFB (ORCPT ); Sat, 17 Dec 2022 14:05:01 -0500 X-Greylist: delayed 413 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 17 Dec 2022 10:59:37 PST Received: from ms11p00im-qufo17291601.me.com (ms11p00im-qufo17291601.me.com [17.58.38.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0868A1182D for ; Sat, 17 Dec 2022 10:59:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1671303163; bh=cQvKWX9oxZ8qf4HKTzFAJpzwOKnJig3zefwHcLSTHTo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=cpqpUkL5+Nrd7bTaRYhHCYRnPHrGByhDcGgVfwqSdUJ6UBp7ziBdODf+y1gx6elYH fSJKRskBSQtAOnk+a2dhKRfwzxc8aE799KMF3f9BRZJBbHDB5a5tY9ZT0OJIoMtg0P jUquAFMO7yXEK7HTEYVCQJQBRiuLKTnsoQEUcuKQLqGz9u7HCbQ2aVasHDqKEcWGjl H74s/7MEq2xSjES8h7t5uQ2prJPXAWdYXzGnZ1yX74dwejugvSfPuBRvs3EyRzNrSj Plu7pof4mO0gXOavSTQsXiht6LB47lkZjMBdT6ZUyFRetXTFnvvR+vcg2CrbPkXYLP j8mZ6A4Y51EjQ== Received: from thundercleese.localdomain (ms11p00im-dlb-asmtpmailmevip.me.com [17.57.154.19]) by ms11p00im-qufo17291601.me.com (Postfix) with ESMTPSA id B9AAF3A050B; Sat, 17 Dec 2022 18:52:38 +0000 (UTC) From: Eric Van Hensbergen To: v9fs-developer@lists.sourceforge.net, asmadeus@codewreck.org, rminnich@gmail.com, lucho@ionkov.net Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux_oss@crudebyte.com, Eric Van Hensbergen Subject: [PATCH] Improve 9p performance for read operations Date: Sat, 17 Dec 2022 18:52:04 +0000 Message-Id: <20221217185210.1431478-1-evanhensbergen@icloud.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: M3HM9CylG59iES4mWdLXbl-B15ehdZXk X-Proofpoint-ORIG-GUID: M3HM9CylG59iES4mWdLXbl-B15ehdZXk X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-14=5F01:2022-01-14=5F01,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1011 adultscore=0 mlxlogscore=677 malwarescore=0 phishscore=0 bulkscore=0 suspectscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2212170174 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS 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 This patch series adds a number of features to improve read/write performance in the 9p filesystem. Mostly it is focused on fixing readahead caching to help utilize the recently increased MSIZE limits, but there are also some fixes for writeback caches in the presence of readahead and/or mmap operations. Altogether, these show roughly 10x speed increases on simple file transfer. Future patch sets will improve writeback cache behavior and directory caching. These patches are also available on github: https://github.com/v9fs/linux/tree/ericvh/9p-next-121722 Tested against qemu, cpu, and diod with fsx, dbench, and some simple benchmarks. Signed-off-by: Eric Van Hensbergen