Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1559866pxb; Thu, 7 Oct 2021 10:08:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV6K7MWFsViSDlsUmJ0sASJsv+gCOZsq9GSi6S+Q+1JxgVcG/N2YfAJNnzBnJFAXwLdss2 X-Received: by 2002:a17:907:1b02:: with SMTP id mp2mr7047304ejc.196.1633626538604; Thu, 07 Oct 2021 10:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633626538; cv=none; d=google.com; s=arc-20160816; b=WPaBZiVqGu2vreoxxbhGZOshzAjvrHlVAP/C+4yl5pv/MoKEpZ/BkQYzWv+5UOXhDD RBHayK9BATz3w7hSqVLrcctZVFh7ESQsvmWI7fhlCE3G8n+WLWMntnSmvvO9oEDZgtVz RRnHmFOzxvcYrVE80v17iM8KLY3QFBud2tP3PAszXDnf3ee+1MOiI95nAUk9jfuq9x03 keHOvWgZAQ6xT2bqswwysKRARB5EcedA5VHGwTdyMvhcrm6NRwiDOad1x9Me1hJ9zBSp J/25Vldde09/tH0rabQ1H+0WDh5GCAmMSaDgaSYhcAqerodUVfDFofpf9uJRJSR2+mhW LR9w== 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=9Td0WOfqr5Wj1AUKil6/27mHD1GOMPU6hmrAivIIaKY=; b=Iwl5keOMX7gp68EOVIFvkWGUtW7+hQu+HTXmZbFEfBBLg1TH337E9wHkggIfIIGQuT Qf7/Ek21XUwzsyFUV+8kmO92xv3OOZnSF7alv/LRiG0cJ2t0XFxIP8I3b/p9trEcQVvv 4wOWGRE+9mupIGEDeauSWgMUNbhCrZAkb/x8S5zUuk6Id+iU4vt5xE+ygAFmKskhOyeT x0urDZL5ZpOngiqhQLWImwJvVm+S6cMYQXuPb6YGbcdeq6w3dKBRlGx+wYF2GUxvZHuM cILvLR1L1NyepBvjG8GSSYnfkWuz3fVm5cut1uZrYLsIXwffD6RAwPKlGWfMIQebgFsd bbAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tMUKpEvG; 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 c9si82945edk.354.2021.10.07.10.08.35; Thu, 07 Oct 2021 10:08:58 -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=tMUKpEvG; 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 S242996AbhJGRIV (ORCPT + 99 others); Thu, 7 Oct 2021 13:08:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:43906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243098AbhJGRIL (ORCPT ); Thu, 7 Oct 2021 13:08:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BE5D76101A; Thu, 7 Oct 2021 17:06:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633626377; bh=Ux3XZPeUC6HTXcSQafNCJCdBwt4Gii0aCWwGuNCo3W8=; h=From:To:Cc:Subject:Date:From; b=tMUKpEvGdO2toosMnghyufaU2uG30Zzp36JlGHzS5563/OClBdOd1vaX21IlYx6HB 2WtjYkiEoVyPTWjcD8+rCTULhZZXYYZaPADS1LwsTi3EQyVwlz9nvllFxRUuy9n5tm b/HUD5pRV1cYkE2Du4Zqy9DZNlACmgc7XQCurpPfD2cx4hxaLvYJBwegAwZU38zwZY ixZ9G8FKYdUiRLg2BF+G3Mg0ZX2rcN8qOQD6zXL4jTJcnybf0Ocz7sBKLqvEHG3Hmn kgOXymfyzf3Wb0Od6f7DjLNlgtK8E+x5fs1QGpyN/QcEjvmpVhryau5B+crJHz7aIL zrHS1WaT0iRhQ== From: Gao Xiang To: linux-erofs@lists.ozlabs.org, Chao Yu Cc: LKML , Gao Xiang Subject: [PATCH 0/3] erofs: some decompression improvements Date: Fri, 8 Oct 2021 01:06:02 +0800 Message-Id: <20211007170605.7062-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 various data patterns. The third patch introduces a new readmore decompression strategy to avoid partial decompression for large big pcluster. It resolves the randread issue mentioned in the original big pcluster patchset [1]: randread Kernel: 5.15.0-rc2+ pclustersize Vanilla Patched 4096 54.6 MiB/s 54.0 MiB/s 16384 117.4 MiB/s 143.8 MiB/s 32768 113.6 MiB/s 199.6 MiB/s 65536 72.8 MiB/s 236.4 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 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 | 28 ++++++++- fs/erofs/zdata.c | 106 ++++++++++++++++++++++++++--------- fs/erofs/zmap.c | 57 ++++++++++++------- include/trace/events/erofs.h | 2 +- 6 files changed, 150 insertions(+), 56 deletions(-) -- 2.20.1