Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp4067016pxm; Tue, 1 Mar 2022 10:31:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVfYB40belFJmpI6FIULKxe4T3Sq6+KD/0mhcZC6Gs1gtu1vZI9zimOZi0hPYwwk7epGpI X-Received: by 2002:aa7:d794:0:b0:413:1057:8f2e with SMTP id s20-20020aa7d794000000b0041310578f2emr25255601edq.160.1646159510087; Tue, 01 Mar 2022 10:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646159510; cv=none; d=google.com; s=arc-20160816; b=rVzCxFi3B35LHz28iiLxp6PUQ4/SXtJUuC8rljCidsJvmlBN4QW7XbiFOMJ42qQT1C n/QGdLT5VL7JEJJVFas0HPVrn4+ZNfAbXHfv3/9awE36Z3Py4OWeNE9MXzAKSUiyPpD7 xN6vDAShJeLTkPzKS3TfI+eVFZdS74tWzeINFXNyVtTbk7DhOKO2jbvB93xidMDdL+V2 VO0WcnSWI+CJbCwwTg3l60FbmMGwkrrSEXGL1tyv0u9dMdAD6+J6TOw2sNTAig997DGp V8LDWwz7d37+xtmBRFeIdO9MtfuG+Be2wd7VEgPDij2fXhl8CvoABsJY3cN+RXJ/IRL9 5hYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=M/uo9+7oYuoIa/0dLJ0KHw3fl1/ss2APv56WN658e9M=; b=lqp8f/k24gs3kBqjOarDNMH/NWMLyviI2fty39Nzq5Rmbkko7j6SHaB1II+hlGbICC ujYDyZW6sOZoTwKdvyzfSgkLxclOEbXCpxridz4ACGgzhNA6TWKkwWyP+/m6SXgrBi22 EAYS3FQvFxTZgyLrScAtiRjJsDx09MFOrm5h215TU/mMugnsCriQkVEA6kjbTZ7MtfSb 9DCcQzVtgyBhzX/SmtJDHKBEB4tSajPPF9X7cpf/iu3nPIu1DWOnbH/o/m3yb08PN98x k4NPFFPoJayyAuwq3NsAOxez701a72E5g2Ug6uB94l7Xsk/b4L0jHGp1jqp2fFnVw57U +q7g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i26-20020a17090639da00b006d0a32c03easi7973416eje.782.2022.03.01.10.31.27; Tue, 01 Mar 2022 10:31:50 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235508AbiCAPGl convert rfc822-to-8bit (ORCPT + 99 others); Tue, 1 Mar 2022 10:06:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232090AbiCAPGk (ORCPT ); Tue, 1 Mar 2022 10:06:40 -0500 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA570A6468; Tue, 1 Mar 2022 07:05:58 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id B0E44609B3C0; Tue, 1 Mar 2022 16:05:55 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0v40nSVbi-hE; Tue, 1 Mar 2022 16:05:55 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 33003609B3D3; Tue, 1 Mar 2022 16:05:55 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Kz-2b_1qeBCK; Tue, 1 Mar 2022 16:05:55 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id F2CA5609B3C0; Tue, 1 Mar 2022 16:05:54 +0100 (CET) Date: Tue, 1 Mar 2022 16:05:54 +0100 (CET) From: Richard Weinberger To: Jan Kara Cc: wuchi zero , =?utf-8?Q?Rafa=C5=82_Mi=C5=82ecki?= , tj , mszeredi , sedat dilek , axboe , Andrew Morton , torvalds , linux-mm , linux-mtd , linux-fsdevel , linux-kernel Message-ID: <719960584.100772.1646147154879.JavaMail.zimbra@nod.at> In-Reply-To: <20220301103218.ulbmakdy4gbw2fso@quack3.lan> References: <2104629126.100059.1646129517209.JavaMail.zimbra@nod.at> <20220301103218.ulbmakdy4gbw2fso@quack3.lan> Subject: Re: Different writeback timing since v5.14 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: Different writeback timing since v5.14 Thread-Index: A7tsGqUsSQ3AY4M1uWfsU/0uR9rf+A== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR 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 Jan, ----- Ursprüngliche Mail ----- > Von: "Jan Kara" >> Is this expected? >> Just want to make sure that the said commit didn't uncover an UBIFS issue. > > Yes, I think it is expected. Likely the background threshold for UBIFS bdi > is very small (probably UBIFS is not used much for writeback compared to > other filesystems). Previously, we just used wb_stat() which returned 0 > (PCP counter inexact value) and so background writeback didn't trigger. Now > we use wb_stat_sum() when threshold is small, get exact value of dirty > pages and decide to start background writeback. Thanks for the prompt reply! > The only thing is, whether it is really expected that the threshold for > UBIFS bdi is so small. You can check the values in > /sys/kernel/debug/bdi//stats. BdiDirtyThresh is indeed 0. BdiWriteback: 0 kB BdiReclaimable: 0 kB BdiDirtyThresh: 0 kB DirtyThresh: 772620 kB BackgroundThresh: 385836 kB BdiDirtied: 0 kB BdiWritten: 0 kB BdiWriteBandwidth: 102400 kBps b_dirty: 0 b_io: 0 b_more_io: 0 b_dirty_time: 0 bdi_list: 1 state: 1 Thanks, //richard