Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp81636iof; Sun, 5 Jun 2022 21:47:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqE6F9QBqdXuBL/iNTZDjtrY75EDQHm/rSthuZ35atzCfH4UG3Rx3PqQlWeiGXD8GaWOUD X-Received: by 2002:a17:90a:7787:b0:1e8:6974:70c7 with SMTP id v7-20020a17090a778700b001e8697470c7mr7957068pjk.88.1654490872610; Sun, 05 Jun 2022 21:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654490872; cv=none; d=google.com; s=arc-20160816; b=FnuMzpbqaooYov7+xEkn2VenZNmy62HTnhAEd3wXkyAmPIafXn+G0Fx4ShqjPLyMqg YN+zUWSd66pEdp69XYALicytjXakjjOj5E4AzJR6Elx+fEiZt7n+aU59g+b3MrlTRZKm cphIcO3SiHYSKMhpm+o5wjpeY11uPZRm2+rLo5G4FdCfi1Clf6ThQtDd9s9jQ+xGM5Wn +r/rRYrQzENouUiGVaN/5azAi8X9LwHMeebwr5yVR1CDQQ4ZJRp5ZYUmUwoJFZb1w35H +i63yjk+vNO6S1bzIuH39owmzWub55NuIC5pH4ZN9JBm0zidjMZK/S1147QouUKLteCu dtNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :in-reply-to:from:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=v2T37rlFE2CMfUMl+duH71R/RYEVVTZdUzJd8Rr66Tc=; b=CtcIldE8khFkV5fmUnf3tYzPmFN8u1rZDF+uc30Tjn3iPml63FnkhPu5zK/0Whz0AI D5ehRVSBZQ3WJp00uVXGs9tcO9Zkc5Eql2AP8szNzp6IOCyybGM/FchfDizC/HmViPjI RVywnfNB/WLQjZ67Qm+2+YPE3sXQ03TldstBJu1NIYXOkzuBvZ6h4dgucTN2PugjSlJZ Y3R/r4gPXr297wdnldRe4NBCG/rhMLGb5cQlbfdQpPSMlVlt25bGYX1rGv9ajIjSEpPy wuWkkEsmaZ6DNh/pJezAUBIceRcnbrw30CFkC4qIO4P8o0TiOlMfQl2QK8T7kcxJFviR bo6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="GY2/yeam"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o13-20020a170902d4cd00b001637dbe1bc4si21042623plg.44.2022.06.05.21.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 21:47:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="GY2/yeam"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7BBAE9B1B8; Sun, 5 Jun 2022 21:05:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245350AbiFCPLX (ORCPT + 99 others); Fri, 3 Jun 2022 11:11:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230486AbiFCPLV (ORCPT ); Fri, 3 Jun 2022 11:11:21 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E833393FD for ; Fri, 3 Jun 2022 08:11:16 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20220603151111euoutp01e62be51b86be8b4b13987ef91c4cddec~1JPSo_1D42909329093euoutp01e for ; Fri, 3 Jun 2022 15:11:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20220603151111euoutp01e62be51b86be8b4b13987ef91c4cddec~1JPSo_1D42909329093euoutp01e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654269071; bh=v2T37rlFE2CMfUMl+duH71R/RYEVVTZdUzJd8Rr66Tc=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=GY2/yeamdC6ZFH3LHjP6rs56BDHoz5cBuwl7xaBIkWxvBtxs6GpFy+4fnkDTvhyN7 NICmcrsaFfO2kKvj20sMl9gCUWwLH6ZiVSRg3gRkwlS3zm3YOv4R4qSEBciofxKgbp 8EzSF5WexMYs7moqyq7I1qEGwnm2ACSa2cDxc4OE= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20220603151110eucas1p2e503daf8d171b7e73149b01ed6f6a863~1JPSOnn_31666116661eucas1p2S; Fri, 3 Jun 2022 15:11:10 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 76.AE.09580.E842A926; Fri, 3 Jun 2022 16:11:10 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20220603151110eucas1p2b4bd47b123dd88c446e4784b51c775a0~1JPRwXiV-1666116661eucas1p2R; Fri, 3 Jun 2022 15:11:10 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220603151110eusmtrp135dcfa5d2e20640cad9eef52705832df~1JPRu861_2050820508eusmtrp1R; Fri, 3 Jun 2022 15:11:10 +0000 (GMT) X-AuditID: cbfec7f5-9adff7000000256c-62-629a248ed1a1 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 39.C7.09038.E842A926; Fri, 3 Jun 2022 16:11:10 +0100 (BST) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220603151109eusmtip1fca24cf6d9e43528f30e443154081c84~1JPRH_Hwf3034830348eusmtip1V; Fri, 3 Jun 2022 15:11:09 +0000 (GMT) Message-ID: Date: Fri, 3 Jun 2022 17:11:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v4 3/3] squashfs: implement readahead Content-Language: en-US To: Hsin-Yi Wang Cc: Matthew Wilcox , Phillip Lougher , Xiongwei Song , Zheng Liang , Zhang Yi , Hou Tao , Miao Xie , Andrew Morton , "linux-mm @ kvack . org" , "squashfs-devel @ lists . sourceforge . net" , linux-kernel@vger.kernel.org From: Marek Szyprowski In-Reply-To: Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOKsWRmVeSWpSXmKPExsWy7djP87p9KrOSDL4vN7GYs34Nm8WmQ2/Y LCa0bme2uLxrDpvFvTX/WS06Vt5jtTjas5nN4uqueovfP4Din3a9Z7W49u4Mm8X3B5uZHHg8 ZjdcZPFoOfKW1WPzCi2PTZ8msXucmPGbxWP3gs9MHlO+Pmf2+LxJzmP9lq1MAZxRXDYpqTmZ ZalF+nYJXBnrdr9hKXgkUtF1dBpLA+NywS5GTg4JAROJu3O2sXQxcnE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zCi2PTZ8msXucmPGbxWP3gs9MHlO+Pmf2+LxJzmP9lq1MAZxRejZF+aUl qQoZ+cUltkrRhhZGeoaWFnpGJpZ6hsbmsVZGpkr6djYpqTmZZalF+nYJehnrdr9hKXgkUtF1 dBpLA+NywS5GTg4JAROJ3TdfsnYxcnEICSxllFgy/RQzREJG4uS0BlYIW1jiz7UuNoii94wS b2c0ghXxCthJ/Jp4hQnEZhFQkXh5bSsTRFxQ4uTMJywgtqhAksS8vasZQWxhAUuJB7uWg/Uy C4hL3HoyH6xeREBNYuqlvywgC5gFHjBLfNi3F+qkWcwSH6/uYAOpYhMwlOh62wVmcwoESvwH hgjEJDOJrq1djBC2vMT2t3OYJzAKzUJyyCwkC2chaZmFpGUBI8sqRpHU0uLc9NxiI73ixNzi 0rx0veT83E2MwHjeduznlh2MK1991DvEyMTBeIhRgoNZSYS3bN7MJCHelMTKqtSi/Pii0pzU 4kOMpsDQmMgsJZqcD0woeSXxhmYGpoYmZpYGppZmxkrivJ4FHYlCAumJJanZqakFqUUwfUwc nFINTPM5vJR5t095+kbp5DXGfc3hzIonmddWnBf3fsoXIX9736Ll81+usj+5a43NxIPWMhzd Ex3vNfg7WM8oPJVnramkc1F15+u1S1QkY1malK8tPyZw7+2VavdV8mXccd9rQnO/hVXsXftw oolNUNoMRb/U9Lcbdws5x/i89GNY1zJ5gd4jZb/q48/yXpYH9b1YrMtpLLxG4aotX+ob01Nn ZDpu/1OS2Gz4euF1swsK/3anqba9WvFWOXdJOatITHPCCfVTjmFbH1UccAno85jzKe8934Iv M4yv2M5ZX3pl++mSA2ydycIztx/KsjSS5GznYfv3i2XnfjY9I6ez/VxzDuvuXzzDQ0JMjlFi /junGCWW4oxEQy3mouJEAFtENKBwAwAA X-CMS-MailID: 20220603151110eucas1p2b4bd47b123dd88c446e4784b51c775a0 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20220603125421eucas1p17da286a3e7f2d4759aa4c7639dd62f75 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220603125421eucas1p17da286a3e7f2d4759aa4c7639dd62f75 References: <20220601103922.1338320-1-hsinyi@chromium.org> <20220601103922.1338320-4-hsinyi@chromium.org> <90b228ea-1b0e-d2e8-62be-9ad5802dcce7@samsung.com> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi, On 03.06.2022 16:55, Hsin-Yi Wang wrote: > On Fri, Jun 3, 2022 at 10:10 PM Marek Szyprowski > wrote: >> On 03.06.2022 14:59, Matthew Wilcox wrote: >>> On Fri, Jun 03, 2022 at 02:54:21PM +0200, Marek Szyprowski wrote: >>>> On 01.06.2022 12:39, Hsin-Yi Wang wrote: >>>>> Implement readahead callback for squashfs. It will read datablocks >>>>> which cover pages in readahead request. For a few cases it will >>>>> not mark page as uptodate, including: >>>>> - file end is 0. >>>>> - zero filled blocks. >>>>> - current batch of pages isn't in the same datablock or not enough in a >>>>> datablock. >>>>> - decompressor error. >>>>> Otherwise pages will be marked as uptodate. The unhandled pages will be >>>>> updated by readpage later. >>>>> >>>>> Suggested-by: Matthew Wilcox >>>>> Signed-off-by: Hsin-Yi Wang >>>>> Reported-by: Matthew Wilcox >>>>> Reported-by: Phillip Lougher >>>>> Reported-by: Xiongwei Song >>>>> --- >>>> This patch landed recently in linux-next as commit 95f7a26191de >>>> ("squashfs: implement readahead"). I've noticed that it causes serious >>>> issues on my test systems (various ARM 32bit and 64bit based boards). >>>> The easiest way to observe is udev timeout 'waiting for /dev to be fully >>>> populated' and prolonged booting time. I'm using squashfs for deploying >>>> kernel modules via initrd. Reverting aeefca9dfae7 & 95f7a26191deon on >>>> top of the next-20220603 fixes the issue. >>> How large are these files? Just a few kilobytes? >> Yes, they are small, most of them are smaller than 16KB, some about >> 128KB and a few about 256KB. I've sent a detailed list in private mail. >> > Hi Marek, > > Are there any obvious squashfs errors in dmesg? Did you enable > CONFIG_SQUASHFS_FILE_DIRECT or CONFIG_SQUASHFS_FILE_CACHE? Here are related config entries from my .config: CONFIG_SQUASHFS=y CONFIG_SQUASHFS_FILE_CACHE=y # CONFIG_SQUASHFS_FILE_DIRECT is not set CONFIG_SQUASHFS_DECOMP_SINGLE=y # CONFIG_SQUASHFS_DECOMP_MULTI is not set # CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU is not set # CONFIG_SQUASHFS_XATTR is not set CONFIG_SQUASHFS_ZLIB=y # CONFIG_SQUASHFS_LZ4 is not set CONFIG_SQUASHFS_LZO=y CONFIG_SQUASHFS_XZ=y # CONFIG_SQUASHFS_ZSTD is not set # CONFIG_SQUASHFS_4K_DEVBLK_SIZE is not set # CONFIG_SQUASHFS_EMBEDDED is not set CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3 (I've used standard ARM 32bit multi_v7_defconfig) Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland