Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp9325512ioo; Sun, 5 Jun 2022 11:04:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjTGEld5b2Aqa0HjTc0AiAF7P4+j7NhbFhQWALMz1Zp440zE9MJ2H2iyxYRXLOJvudiONK X-Received: by 2002:aa7:da06:0:b0:42d:ca38:84ad with SMTP id r6-20020aa7da06000000b0042dca3884admr22685596eds.125.1654452282745; Sun, 05 Jun 2022 11:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654452282; cv=none; d=google.com; s=arc-20160816; b=Tv1LIp+62uRPYoKwinbkKcf4N5YPaedk0DbiGE8lwHqKHlfdQlWm3BIPHuH65Be7ph /DG1wvnSrAa1hCRv7p4pr3z+NaG1ub6FBae8dyc46mxgZvSFOWUHmAxBldLZmLga3GLA +tGyWGU2WseHucyXrHXQX4P3Q6lz5qImMk0OkD6WYK5QCY6NcoTm+kCve+g/wpnc8Niu OA+bbdy8aP2SHCpshUsImENHf8AXuQy32Ub+jeh7riq9+KdwrQQmT0SfpSv+doSgg3HP N65jxPzaYvGR7gMwBDHtfnZUWRhuWVRD+T3u15AwyP7ZwX2yrsdxcq5SRhcMNrjAUDYF SoEw== 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=whma9mCP6VNv/JU5q1dJuWBFyoiR3FSC99N+p5+8j6Y=; b=puhEOwZz50wsMoF7GCWIpZQ1u2yYhI+LlLiZNELClvV9acw0+FM5N+m3xWGvWYUSkO YzInulShuoUvEwxk9hEcvDiUmrGqbQGipjldPD+E8kVXxchL7dZu9px/daQC5E46DO5/ 693DO83yIQa3ffY6bAaT1vnrxHTYK2CXJ1/l9nlA1I4lDGKLlmLXe/N9m6V46WhuBti3 3AnSch/7RLGOT64NQBIhnN69lGlccENjD+x6b5kHhMPOS/CPzBVX//ftHRNWQ4bFQxYq Sj/0jJfJYtfTDD0RwooIiKtvsM3IKHUZu4+zYewcjbgyDKQu5ynRfu+3K/W49zXtyAgk 8i6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="gKKij/up"; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr36-20020a1709073fa400b006ff288d1c02si10560712ejc.805.2022.06.05.11.04.17; Sun, 05 Jun 2022 11:04:42 -0700 (PDT) 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=@samsung.com header.s=mail20170921 header.b="gKKij/up"; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243119AbiFCOKf (ORCPT + 99 others); Fri, 3 Jun 2022 10:10:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237090AbiFCOKd (ORCPT ); Fri, 3 Jun 2022 10:10:33 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1EE919C1A for ; Fri, 3 Jun 2022 07:10:28 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20220603141024euoutp01d750bbd55dc34ad54ce50d6ca12e6539~1IaOQF9SL3135731357euoutp01N for ; Fri, 3 Jun 2022 14:10:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20220603141024euoutp01d750bbd55dc34ad54ce50d6ca12e6539~1IaOQF9SL3135731357euoutp01N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654265424; bh=whma9mCP6VNv/JU5q1dJuWBFyoiR3FSC99N+p5+8j6Y=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=gKKij/upUy2V4ohipkVI4+Lb+OzL88pkptQzOvtpo0NIOM3Gcfn4mpxLp7tD7y/Gi 8LCtbFY4YvTWE6qc5xboHOMQRbFm8c74kokk7sHEGLGggjRIqI53L3HZaFuDIwTCD9 IT+YBBXDj3A7jGVuS2X+ZsGwmje7pskTFEwseQO8= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20220603141024eucas1p2858ccb1a59a73269029758a798f863e0~1IaN-hKRO1811818118eucas1p20; Fri, 3 Jun 2022 14:10:24 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 0C.C5.09580.0561A926; Fri, 3 Jun 2022 15:10:24 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20220603141023eucas1p130b688cb64002397afb1cbfa94bbd749~1IaNgl9rR2700427004eucas1p1t; Fri, 3 Jun 2022 14:10:23 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220603141023eusmtrp12154fd96413c64e02382cdabcd2a3a34~1IaNfw6up1645316453eusmtrp1K; Fri, 3 Jun 2022 14:10:23 +0000 (GMT) X-AuditID: cbfec7f5-9adff7000000256c-ed-629a16500a15 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 82.32.09038.F461A926; Fri, 3 Jun 2022 15:10:23 +0100 (BST) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220603141022eusmtip2ce7c04922aeed93af10f16079c36519b~1IaM2CEWo2678126781eusmtip2C; Fri, 3 Jun 2022 14:10:22 +0000 (GMT) Message-ID: <90b228ea-1b0e-d2e8-62be-9ad5802dcce7@samsung.com> Date: Fri, 3 Jun 2022 16:10:23 +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: Matthew Wilcox Cc: Hsin-Yi Wang , 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+NgFjrKKsWRmVeSWpSXmKPExsWy7djP87oBYrOSDGavYLWYs34Nm8WmQ2/Y LCa0bme2uLxrDpvFvTX/WS06Vt5jtTjas5nN4uqueovfP4Din3a9Z7W49u4Mm8X3B5uZHHg8 ZjdcZPFoOfKW1WPzCi2PTZ8msXucmPGbxWP3gs9MHlO+Pmf2+LxJzmP9lq1MAZxRXDYpqTmZ ZalF+nYJXBnN++8zFqzkrTiyvIe9gfEzVxcjJ4eEgInE/N/vGLsYuTiEBFYwSuxZtoEZwvnC KLHoyVRWCOczo0Rz9zsWmJauXbPZIRLLGSV+rnzICpIQEvjIKHF5U20XIwcHr4CdxMxV/CBh FgEViYa7R5hAbF4BQYmTM5+AzREVSJKYv60Vr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TmZZalF+nYJehnN++8zFqzkrTiy vIe9gfEzVxcjJ4eEgIlE167Z7F2MXBxCAksZJRb2fWOGSMhInJzWwAphC0v8udbFBlH0nlFi Zv9pxi5GDg5eATuJmav4QWpYBFQkGu4eYQKxeQUEJU7OfMICYosKJEnM27uaEcQWFrCUeLBr Odh8ZgFxiVtP5jOBjBER0JB4s8UIZDyzwD1miQnHNzFC7JrHJHFn/k+wQWwChhJdb0GO4OTg BLq6Y+1xJohBZhJdW7sYIWx5ie1v5zBPYBSaheSOWUj2zULSMgtJywJGllWMIqmlxbnpucVG esWJucWleel6yfm5mxiBsbzt2M8tOxhXvvqod4iRiYPxEKMEB7OSCG/ZvJlJQrwpiZVVqUX5 8UWlOanFhxhNgYExkVlKNDkfmEzySuINzQxMDU3MLA1MLc2MlcR5PQs6EoUE0hNLUrNTUwtS i2D6mDg4pRqYeM0/OmyTLr+80/Gyo7m1rsTNvcFRD7TLGuazvrTmO/nuiEHguwdcadIPbHo1 X9h6C3Rvr/x3v1U9ivGdJdP5BYefXLlcXepS79eR8P6fyaccS6kKnfgHejuKlx57Oy/X4osJ i3qKlEV8+wlJVlYW03yz1/rr23a9uiS35s793X023skv7tp6HfxjusrBd2KK3ytnj50vM89u n9H5KeB8xLmo049Fm6dk1yX6cNvavepTX8F6JWND7TXd2qchC7X3C2VN2GkX93nms2PKKq/K Dx3X3n87a7qWt1J/9ovPSdxtOvdTrrktDrlyRmO6hYdkvsS9z8HvLhxl4WAuKTUQPvmwvcWo yFIqsWnzPyklluKMREMt5qLiRAAi7J49bgMAAA== X-CMS-MailID: 20220603141023eucas1p130b688cb64002397afb1cbfa94bbd749 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> X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Matthew, 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. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland