Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4066552rwb; Tue, 16 Aug 2022 13:53:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR57TQJ+vBRC2qGRq9f9DaRZ0DscZKv80bP34y7dS8d8UqRp6sf4LbCPsmEhPFZEoYnJpvpl X-Received: by 2002:a05:6a00:1c49:b0:52e:4e9a:a07a with SMTP id s9-20020a056a001c4900b0052e4e9aa07amr22519420pfw.26.1660683199702; Tue, 16 Aug 2022 13:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660683199; cv=none; d=google.com; s=arc-20160816; b=Su0+Fc/160lHSo4ZaOrboB93zKmjDD4x4FbH/jTh0oKi8yvK43CqNjQiF5tbmEs04v WWW+DNgYzK+cULO21ulQGCsKLCCyT78ZN3HCKobTMUgMuSKn2BmJk4fqriDLPFQgiRzw 0lndZg7lEI6RzwxBD5KnWo3Ej5ZhvO+cC4i/jYEHLzi+8v9oC7bb7IW2wwFdecHP68+T wUxjz6xwGN3DUM/uFuIp6c8Hz6AVL3XUAm2fkd8o4xo+1O6jkK5W74pq3IARr7w2qlID YBcDKian5Tny8ZxpDLdsXYp2sScOg3zUWFqPVRe0y+wV97VSJ4AR/S9c6OKcAhkeQnRT dVYg== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=6+6bp0UvwjogljRJhOGhWfCRSjIzqUNPjPja8SrhKaM=; b=q3tSGPQW3VhaL9Wn8dym/mQV3Der/DgvTc+xYNrDwBAa4esNuuT4gEUuHWyHaTJAkI hByby+90vHyAssPKjTuEwBTQEj1XGNGJLw9rt319J+FNVkUzvcQdXkj7HWTCqSf0gzzS Uu1ObOaQEn+oG+wpm2GjYUWSY+owgdisW4XDXwEF0kWfJQ0yFK+iAiuFUXvYkhBd30ES deenMHY19wX6s7EkTwa3/COOtz2IhLlIFnGwp2Q2qr6CDSDeXEV8y3VHaGZwIgqcGmz1 N8JoOOuV+L+qvED2NoBje5zPG7X9j4hywb2sAch8U8+dg9FdLJlVZEbOQwOudZEdbG42 rl8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a635802000000b0040512c0ebfcsi14931855pgb.297.2022.08.16.13.53.00; Tue, 16 Aug 2022 13:53:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237203AbiHPUqI (ORCPT + 99 others); Tue, 16 Aug 2022 16:46:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiHPUqH (ORCPT ); Tue, 16 Aug 2022 16:46:07 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45D3A88DEE; Tue, 16 Aug 2022 13:46:04 -0700 (PDT) Received: from [192.168.1.138] ([37.4.248.80]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MO9r5-1o0Dxc2Fk9-00OTr7; Tue, 16 Aug 2022 22:45:49 +0200 Message-ID: Date: Tue, 16 Aug 2022 22:45:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [Regression] ext4: changes to mb_optimize_scan cause issues on Raspberry Pi Content-Language: en-US To: Jan Kara Cc: linux-ext4@vger.kernel.org, Ojaswin Mujoo , Harshad Shirwadkar , Theodore Ts'o , Ritesh Harjani , linux-fsdevel@vger.kernel.org, Linux Kernel Mailing List , Geetika.Moolchandani1@ibm.com, regressions@lists.linux.dev, Florian Fainelli References: <0d81a7c2-46b7-6010-62a4-3e6cfc1628d6@i2se.com> <20220728100055.efbvaudwp3ofolpi@quack3> <64b7899f-d84d-93de-f9c5-49538bd080d0@i2se.com> <20220816093421.ok26tcyvf6bm3ngy@quack3> From: Stefan Wahren In-Reply-To: <20220816093421.ok26tcyvf6bm3ngy@quack3> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:QATVIxUIzO4XNP67B+8HP4QQNAu7SDUyzpY148ZnYDJfs7tnRBJ P4nHE8TnbMh+WgAS4rs/lgc7XTshocNV1OpZ44YQvy18WcgxRaLBk+kobb43uc74GoOFyUp gR19howWA1OqDL8Aq7YNa5EhexZE8b5NFYrK0PM4hMG49wBDM/sICkgNrOWNn1soXhDp+O8 TqJAbNdm7pr3HJsnooNqA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Dra9fYDHkDA=:LvzOC2xL//tX1hAXYwU6nP Xf8alCLDOQOQVZ1lFlSGB67f41WkgrfgssPP1f4+UaS3E3TG4cGF0tsXcRWiFUN4G9iS0FMah PfPmyvrCtS0hTE2PxsxyoA1jZttLzTnGWoDD72bDtMalXNh1BJFx5BL/JHLMMg3C9T2xCgBO+ EaeBMnfhvgUCiVIuJC+xJJ19ULU0VIr/x+NclzX0Awh8QgGj0ImzqqW6lPtkTOwcjplQGXpXV qJFD/Nyy9NrT9TcSNnL2urdRZh0Sdt79CcFlGiqyLGHsEPHQly2MOS1R980Pfwz9dk/vwgBx3 8PM0SILNrkSW57E/ebKxgzhzoWcg9e+4CP4PT8gKy0z+owfBgbry7NQLrni4dLDgiRa+/KCGJ S4k8aA9an1czUvCWKOvTghF0ItEE65m3HK7p+9LZn4gYRCzdRwjtlnnfJl/NjzV5dilVZHEip vuNDwZr+qi3FJdRwvayJafSpWBulsOcNVXpxnmQmQFWcYKGue2BSPk6bVefWqWYKTqSQrmybU LSzgd0IRYtVKNnYn7HvQ91MwBCDATC4NMyvdboc0p6smOgcwuixLPz23NBibReFoPTuMfvES0 qELwYqY1vOAGwZshxk9S4yHJsC5digby73z7VshICqFAvOEoUuI8C0631KS+oQ8yIKJ69a3ye 8euDAUwAqvZMis6VzjlfpFpuQvvd3DrYyUIV/0ACn9+XcaOSx3E1okAxgw7RrGIVEFDXi+f+x zuITU/bdK06q5H2UVfcfhxbuIaXn960VSqOyEgTHQQwhHBfaLtvHmZZdZoc= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,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-ext4@vger.kernel.org Hi Jan, Am 16.08.22 um 11:34 schrieb Jan Kara: > Hi Stefan! > So this is interesting. We can see the card is 100% busy. The IO submitted > to the card is formed by small requests - 18-38 KB per request - and each > request takes 0.3-0.5s to complete. So the resulting throughput is horrible > - only tens of KB/s. Also we can see there are many IOs queued for the > device in parallel (aqu-sz columnt). This does not look like load I would > expect to be generated by download of a large file from the web. > > You have mentioned in previous emails that with dd(1) you can do couple > MB/s writing to this card which is far more than these tens of KB/s. So the > file download must be doing something which really destroys the IO pattern > (and with mb_optimize_scan=0 ext4 happened to be better dealing with it and > generating better IO pattern). Can you perhaps strace the process doing the > download (or perhaps strace -f the whole rpi-update process) so that we can > see how does the load generated on the filesystem look like? Thanks! i didn't create the strace yet, but i looked at the source of rpi-update. At the end the download phase is a curl call to download a tar archive and pipe it directly to tar. You can find the content list of the tar file here: https://raw.githubusercontent.com/lategoodbye/mb_optimize_scan_regress/main/rpi-firmware-tar-content-list.txt Best regards > > Honza