Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2695863pxb; Fri, 8 Oct 2021 13:09:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnUS7OPe/K++1k9kDjFXWK5yv2/70pCED0An7Z+FC5ARDQpYUgPgHxJDfcrgg5+CLJopSg X-Received: by 2002:aa7:808d:0:b0:44b:31ab:c763 with SMTP id v13-20020aa7808d000000b0044b31abc763mr12460113pff.4.1633723794748; Fri, 08 Oct 2021 13:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633723794; cv=none; d=google.com; s=arc-20160816; b=YqQrP5VkvNbQVupY0NaQF5E3dfB9rw3eAW8ExAN2ah7zEBXyk30lihGyeHzUdqg2QU TTXIKbMZQvGbQXFExxdTHFbekS04/vo2vauay8MwZgVeVeWIU4xhUKrfx8mztesfCThE 4qu/sm+9Br2ww1I1HwrAEvs2N8+Q5ZccA3vkaw/979OR6/2TCGTiCFd0/MvXqhhnS9pH cnP2rpUC+CCnL3HGoKoaepVO0Kb/dOaSP5ajvUULUfq7KWH7e+y94dvXqe6hXPDNpIgp eySXG/on5//M00mpvqLfq1iI3tGKRw34A7e9CdvAKk7kk6RzUbuwiriZ/QkAqUOTEXLB 5tBA== 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=An3GfD2CRs19r0Sew5BDKTiUlv+yh5xUR18CffQG0z8=; b=FVS5Q/mY3g5bx1KBktVSb9K8xSWbdXJnx6iD3dAE4zdfvBdLGHiVSM0SOLNlUye7Pl 7m79yrAtrGuPzIFCKzkkSMYG0XodoPaLBrcU1NAdqpR1irb57Pp0xK+A6TZs6dZPTL1f j2vQPjXPwsofqK8bHyq+/oLhvWzPuAtFe/N/BkZh5KP9xmnMRaAbGjV9B46ovRpvdebQ OiQq1vzDOo7i+QXHld0jvTJESnbtKsnOYbWtm9PJwOiwDglMruSOHIFXXubvUbAbhgJo 7B3LYRZ1IjL4p6F1ybQfb6c20owWOv9lrsAC9Kf1MGoSVGFiaajFrcIX2jESLLK7UaXd QfFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ss4BtCT8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c24si325194plo.107.2021.10.08.13.09.41; Fri, 08 Oct 2021 13:09:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ss4BtCT8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S241974AbhJHUKy (ORCPT + 99 others); Fri, 8 Oct 2021 16:10:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:46496 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231584AbhJHUKw (ORCPT ); Fri, 8 Oct 2021 16:10:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4976061019; Fri, 8 Oct 2021 20:08:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633723737; bh=KmFExuavQRUuydLea0+sQnpoCrziI5QQDHZyRBAlaRk=; h=From:To:Cc:Subject:Date:From; b=ss4BtCT858+oMIVNCW5FkfXH8WqCytzMnSLRG/Gu0wLcVbXOu5sNrmaUevj/uHJ75 iZxvxzQsulresQ48q4G3EalGeuN8XoproPlEAGEtULugSKasLWUyxeMeaJxQxYaGV1 lMTGpbOjqMmUgbAqPSvMzhhjBWbnqKn+zV88Bl+IQv1wWugO2mSw5nYxipI7GqeiYz Bw8BclYABXtTRF8A5uGaDI+em5pi+Ad3pUsElcTDb+Qit3sPQygXdcu2kXIu+ObYOk sE+j20C5fExvX3cung6DW4Nc9R1yccOofKD87N7mN4b2stt/ps5euQqQDvCez1wgzO bdx6NI0H76pWg== From: Gao Xiang To: linux-erofs@lists.ozlabs.org Cc: Chao Yu , LKML , Yue Hu , Gao Xiang Subject: [PATCH v2 0/3] erofs: some decompression improvements Date: Sat, 9 Oct 2021 04:08:36 +0800 Message-Id: <20211008200839.24541-1-xiang@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, This patchset is mainly intended for the upcoming LZMA preparation, but they still have some benefits to the exist LZ4 decompression. The first patch looks up compression algorithms on mapping instead of in the decompression frontend, which is used for the rest patches. The second patch introduces another compression HEAD (HEAD2) so that each file can be compressed with two different algorithms at most, which can be used for the upcoming LZMA compression and LZ4 range dictionary compression for different data/access patterns. The third patch introduces a new readmore decompression strategy trying to improve randread for large LZ4 big pcluster and the upcoming LZMA decompression. It mainly addresses the previous issue mentioned in the original big pcluster patchset [1]: FIO randread Testdata: enwik9 Kernel: Linux 5.15.0-rc2 pclustersize Vanilla Patched 4096 54.6 MiB/s 56.1 MiB/s 16384 117.4 MiB/s 145.6 MiB/s 32768 113.6 MiB/s 203.4 MiB/s 65536 72.8 MiB/s 236.1 MiB/s The latest version can also be fetched from git://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git -b erofs/readmore [1] https://lore.kernel.org/r/20210407043927.10623-1-xiang@kernel.org Thanks, Gao Xiang Changes since v1: - correct the function name to z_erofs_map_blocks_iter() in the commit message pointed out by Yue; - fix the readmore logic which mainly impacts the LZMA approach later, therefore test the Patched version again. Gao Xiang (3): erofs: get compression algorithms directly on mapping erofs: introduce the secondary compression head erofs: introduce readmore decompression strategy fs/erofs/compress.h | 5 -- fs/erofs/erofs_fs.h | 8 ++- fs/erofs/internal.h | 25 +++++++- fs/erofs/zdata.c | 111 +++++++++++++++++++++++++++-------- fs/erofs/zmap.c | 55 +++++++++++------ include/trace/events/erofs.h | 2 +- 6 files changed, 151 insertions(+), 55 deletions(-) -- 2.20.1