Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp432082pxb; Tue, 19 Oct 2021 06:00:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJDXMKw22PaZochMNwmdnIf23rHMXu+2Tv3aEIAlCn0bhIjuOU8ttPo8GKwtZJ2ywjZzPS X-Received: by 2002:a17:902:a9c3:b0:13f:c765:148d with SMTP id b3-20020a170902a9c300b0013fc765148dmr8016116plr.28.1634648432674; Tue, 19 Oct 2021 06:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634648432; cv=none; d=google.com; s=arc-20160816; b=W7Rso0Wn/ielj4pk9aQR2TlIXq8kkRfCWZt12gUmn310XKxBfMSkXc0kj0ZUwCPMgq 0qB1zO5oGDd76yhThpQNqvj/Ci1xg3ktDY7yep9VezietSV4lliBl+vm2D0Y4Uzr0RPo NLleHzrdq8LjrDXiJinwQrFhGJ+DHuwm9rXHkIIzojUv4qqVQfBkriRmAz9OoD0lcf0E xMQzuKww6vj+4WDRlfObyML3PnH6mf+592+LP5lSeOzJaWf8g7pwzC8O2+q9Iy4TaE4Q QBFI9hmqjRMRMuwIYP2fvG1MngzX85j2txyVCDKSCdZghyh4z1KYQE6TCqNRMlpEXonu VEFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=caXBS3UB21RWBsaDUtaoarJP8pbeCJWQLJy/YJFswPQ=; b=RaG43ot/iRHco9M/I71Hqjqb8xOzsJ54Ak/CETtNdKfM/xNWxRGaDmJFtzuYRfVr2R hoIYJBSEDcZTiSrE4pBcEHrOTuzLrvqh3ojlpgiH0G53EWxJ5+1s0BwdGVNZZHLZhR52 IVVHq6Z3SMIIvvddXA1fCkTk/is6Zp0/zXYfxEW5Abk7l0y+KAVHA3N4KFVy5X3ZfTwl VbN2wJmQqER60pZ/mJq2CqyP3bk43r9PP9hb5AUcxx4fqNwqRBJnpt4iFldF0Wfx3gPM yKdSGjiEvhrI8GQPzqIHInHGmPXiiGnHp55rLcjootebl1PvCdWRQHhFRXQjjkZwARef mfRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ea+0+2X3; 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 oa15si4285746pjb.40.2021.10.19.06.00.15; Tue, 19 Oct 2021 06:00:32 -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=Ea+0+2X3; 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 S235779AbhJSNBI (ORCPT + 99 others); Tue, 19 Oct 2021 09:01:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:46052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235517AbhJSNBF (ORCPT ); Tue, 19 Oct 2021 09:01:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0988461360; Tue, 19 Oct 2021 12:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634648332; bh=caXBS3UB21RWBsaDUtaoarJP8pbeCJWQLJy/YJFswPQ=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Ea+0+2X3myMrrl1AckG3XgkgqEABOqBxDmZcneYwUggaXTI2ns+2BL5upaUXcE3+7 B//H3a2uueir36sY0Dm5ITDoneULhDra81xX689DVk1e0JbwQ97EFXu/MAhyXGeopy zGRzBqo4+LYhpLfMVP0rUAoXWJFLj+As0GRvqkhSLEk8hhQyHkFjLVbEXQNxwuf1j9 Jg/TaYF6F8Cgvft72uLW8UWITTD5XFx0yaUNxHTpdqHMk9d13rL+vF365bCuaFLZsh abyLmDUOQlJqb9RFLngWHn1XfyqmUYv11VIg3vg/h5FNaBc6YO+ryvOVoUtP6aT+FK 7Bv5GE5VjPCdw== Message-ID: Date: Tue, 19 Oct 2021 20:58:49 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH v2 3/3] erofs: introduce readmore decompression strategy Content-Language: en-US To: Gao Xiang , linux-erofs@lists.ozlabs.org, LKML , Yue Hu , Gao Xiang References: <20211008200839.24541-1-xiang@kernel.org> <20211008200839.24541-4-xiang@kernel.org> <8e39e5d1-285d-52b6-8fea-8bb9ff10bf5a@kernel.org> <20211017154253.GB4054@hsiangkao-HP-ZHAN-66-Pro-G1> From: Chao Yu In-Reply-To: <20211017154253.GB4054@hsiangkao-HP-ZHAN-66-Pro-G1> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/10/17 23:42, Gao Xiang wrote: > On Sun, Oct 17, 2021 at 11:34:22PM +0800, Chao Yu wrote: >> On 2021/10/9 4:08, Gao Xiang wrote: >>> From: Gao Xiang >>> >>> Previously, the readahead window was strictly followed by EROFS >>> decompression strategy in order to minimize extra memory footprint. >>> However, it could become inefficient if just reading the partial >>> requested data for much big LZ4 pclusters and the upcoming LZMA >>> implementation. >>> >>> Let's try to request the leading data in a pcluster without >>> triggering memory reclaiming instead for the LZ4 approach first >>> to boost up 100% randread of large big pclusters, and it has no real >>> impact on low memory scenarios. >>> >>> It also introduces a way to expand read lengths in order to decompress >>> the whole pcluster, which is useful for LZMA since the algorithm >>> itself is relatively slow and causes CPU bound, but LZ4 is not. >>> >>> Signed-off-by: Gao Xiang Looks fine to me now. Reviewed-by: Chao Yu Thanks,