Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp74639iof; Sun, 5 Jun 2022 21:34:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBTw6E5hCBv+8DKYbta1fRQk9EzI8AyEQ6I4v0Fv8whPwcBxHB3rd6boaT8/YYNrQp4m/s X-Received: by 2002:a17:902:f70c:b0:167:77c6:7c64 with SMTP id h12-20020a170902f70c00b0016777c67c64mr5069942plo.44.1654490044744; Sun, 05 Jun 2022 21:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654490044; cv=none; d=google.com; s=arc-20160816; b=NSpDYE8jIYmtwtIp4cqEZxNNmz/VQ66t040d/KBKT8Jaxfe2J+nFLBJmoDZFxVV5JQ 6ncYEClsqmAf+uR9hQfalr/WHPzVlpVcAYNJU7J1nEn8N6ElmfyvvKEC4dzBNnd1Jr5E fgHy5otP5sWD0jE9j14lc9toUFB6umxSKboZE6uO/48XQ/imv4DKzBxttFA/OBWZOOGx pKNpq5ZHZehqGvKPPMnpJOtmZF4uNzy2lQ8YeiWOTFmsaiTfKIydFXKoLmMcEpNqWCxv ciQieZnb4Rd2jgtMH9z86TUk1/AD1Grvhmkq2gmArIadwHnnxDvfxNkbqPbrS060Nt34 DfTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jti+/hClusDdX5mEjQ70q82JHacK1xdb+tp2pVFM1n8=; b=h7em3C3yYdIwUVVevEggS82wqGRXsAdG3+Y3CEcGSd2kQDE/GxfrTwP/hGs9GOURUP 06CpTvfOf22N6Nft183F8sR3V+qgqUnaqlelfMqsGtvZs0FqnMjwd5K8ryPL8/OPSe/q ksW6j7DZvlxVTTiG0hyGi7oqRLr8+98qb8z47A1Q26SCOG0hW7L1GqXTiI7es10RpF1+ uzEVvxClUNQ3igfiuU6QO/bnbSlG6b8qRyOITdvyabFfQ5Vvc+DwAfgkWMcd/IIRgVQa ah0+UwNPNvP+jqlwnLf3j20p9VmBMm4XuTxhKGNCFv9jLz8x0Detw0bf1rn9Mbqe3ftH mAjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Fd9xTBcS; 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=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a38-20020a056a001d2600b0050ddce187edsi15146101pfx.331.2022.06.05.21.34.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 21:34:04 -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=@chromium.org header.s=google header.b=Fd9xTBcS; 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=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C57CA5A2E7; Sun, 5 Jun 2022 20:59:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245232AbiFCOza (ORCPT + 99 others); Fri, 3 Jun 2022 10:55:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230468AbiFCOz3 (ORCPT ); Fri, 3 Jun 2022 10:55:29 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A24337BDC for ; Fri, 3 Jun 2022 07:55:28 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id kq6so3408683ejb.11 for ; Fri, 03 Jun 2022 07:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jti+/hClusDdX5mEjQ70q82JHacK1xdb+tp2pVFM1n8=; b=Fd9xTBcSvNG6BRqet4SbqmnC1o3LYHcv4CmibDdJ8jlBhCN89cgV6tGGevXEhJtNOM 2fmDmh7rlRG1bghvDHAveyYs6VAYgDIXgalaPpPAUrOFNuqUpIPeFs/oRlyMUJoDcSHX QpaFtonZHOmgcLiH8hJKm6wePMRLDdrliq3Nc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jti+/hClusDdX5mEjQ70q82JHacK1xdb+tp2pVFM1n8=; b=N8Hy8sEQHCOXqRJU2S0cOyRJpTp1sXaT5MYGPttBnwZvPH95lfqJcDY+6fGl/xTtc0 0Isj6r1PB+y4eDkXE8mUQVpQR4he65wG98x+puZDIzvSTEilqElg9bq4xie+YJYHC9YW raUVqVzrJIWT1Wqo3dytIkS0xo4nQ309h3Z1gsgqJ5iKIIzK11RFNDxtp2QWnWfkdxpV jyAoBm/zLekfTeZ7rqTEEz0eBotnOeqBJX8fR11D4+kLGf2RS0v7/tKrsYW/ikMK18tW BkPtY3rroUiz1ZKYULxplFj72WHFved1LH38ZhVfyVmifP94UoYQNNKLcg3dLH+G/tE9 KC7Q== X-Gm-Message-State: AOAM532I+Xsatk3Zd8VGJJOJZZrkLY83qEDED333RUDKWIoO7Hx4r06E RwK0AyZ42+ST++EE3fjRNcQ0dVEqjR0RwCQCUH1hyg== X-Received: by 2002:a17:906:1b19:b0:70d:6fe8:eb44 with SMTP id o25-20020a1709061b1900b0070d6fe8eb44mr4340593ejg.129.1654268126818; Fri, 03 Jun 2022 07:55:26 -0700 (PDT) MIME-Version: 1.0 References: <20220601103922.1338320-1-hsinyi@chromium.org> <20220601103922.1338320-4-hsinyi@chromium.org> <90b228ea-1b0e-d2e8-62be-9ad5802dcce7@samsung.com> In-Reply-To: <90b228ea-1b0e-d2e8-62be-9ad5802dcce7@samsung.com> From: Hsin-Yi Wang Date: Fri, 3 Jun 2022 22:55:01 +0800 Message-ID: Subject: Re: [PATCH v4 3/3] squashfs: implement readahead To: Marek Szyprowski 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 On Fri, Jun 3, 2022 at 10:10 PM Marek Szyprowski wrote: > > 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. > Hi Marek, Are there any obvious squashfs errors in dmesg? Did you enable CONFIG_SQUASHFS_FILE_DIRECT or CONFIG_SQUASHFS_FILE_CACHE? Thanks > Best regards > -- > Marek Szyprowski, PhD > Samsung R&D Institute Poland >