From patchwork Tue Jul 13 10:47:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 12373597 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C3ACC11F66 for ; Tue, 13 Jul 2021 10:47:24 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 25A60610CB for ; Tue, 13 Jul 2021 10:47:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 25A60610CB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D3A148D0002; Tue, 13 Jul 2021 06:47:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C24DD8D0003; Tue, 13 Jul 2021 06:47:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A27A28D0002; Tue, 13 Jul 2021 06:47:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0210.hostedemail.com [216.40.44.210]) by kanga.kvack.org (Postfix) with ESMTP id 505E48D0001 for ; Tue, 13 Jul 2021 06:47:19 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 91A088133A4D for ; Tue, 13 Jul 2021 10:47:17 +0000 (UTC) X-FDA: 78357237714.04.44210AC Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf10.hostedemail.com (Postfix) with ESMTP id 1E524600198C for ; Tue, 13 Jul 2021 10:47:16 +0000 (UTC) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 238EC222A3; Tue, 13 Jul 2021 10:47:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1626173236; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=SAcjMMEQUeH2lXBep5s/XIkDSeSJrF8VIqOzakH5eQk=; b=aLZsR90u/lK6mikTnRr0J2qCYdz85v69j2BSEVBi5qpfW4uXq52UJ27uYQMT6u1J6GlFDz hF/b90q5HfWDMhJah1Di2A2SM8zUwCCNQ8GH+fRA7BVa2pepBgxPORTfdIUFiYhWxgYl3Y l8dkO7UIiMqFuzyPmvyPla2hp4Ol07w= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1626173236; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=SAcjMMEQUeH2lXBep5s/XIkDSeSJrF8VIqOzakH5eQk=; b=SrkkwfGVSWIJ6mhuUPeKaALUYx+jDBFXze7vqh0gPiXiX6wn5WOD1WtT5udjYehhT74RO+ rOhNfRX9KeENVRDw== Received: from quack2.suse.cz (unknown [10.100.224.230]) by relay2.suse.de (Postfix) with ESMTP id 16DAAA3B85; Tue, 13 Jul 2021 10:47:16 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 01AF91E0BBC; Tue, 13 Jul 2021 12:47:15 +0200 (CEST) From: Jan Kara To: Andrew Morton Cc: , Michael Stapelberg , Wu Fengguang , Jan Kara Subject: [PATCH 0/5 v4] writeback: Fix bandwidth estimates Date: Tue, 13 Jul 2021 12:47:06 +0200 Message-Id: <20210713104519.16394-1-jack@suse.cz> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1137; h=from:subject:message-id; bh=eO70uFm0fQaTnqi/nHepDtD4t8NkvvECziRpCdRfSQM=; b=owEBbQGS/pANAwAIAZydqgc/ZEDZAcsmYgBg7W8kh9rMTCDZx/wfJM30jeE3HSCj8LajB1sf5DeR 4XPWeziJATMEAAEIAB0WIQSrWdEr1p4yirVVKBycnaoHP2RA2QUCYO1vJAAKCRCcnaoHP2RA2Q9+CA DKTai9s64APTaIVVmxvtArYRCkPmyN6Q9Wh/t67D3T5C668ff4wL51ew2fErsrljOXocpI04hgrtK7 GZZClSHf9ryaXiGtPAdQrRMh+zC2GLfmoTB9sSyK1+Cjqbs1vpRaPplS3mZszFohkPMeWTyfESSDxK 0s6+3CT5wVWQ9ivOAD3jVm/kO/58nvwHilzh9FTf9zEBzMS5dqBC9iW4fcrQs0/7FU0bkf+ZNj0HR8 qqY88qZzFTj37dNETPMRU9h4G6/KqQNrTLmyWh3C688GbcIisXLYCVk0wMoHj3FQGJ8G5d+bbHzZX3 JY2WPw8dc7qo2hQCa1oFFhvAMss5O2 X-Developer-Key: i=jack@suse.cz; a=openpgp; fpr=93C6099A142276A28BBE35D815BC833443038D8C X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 1E524600198C X-Stat-Signature: ds333pzgf8siwt5poyubqup9g19yrpo7 Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=aLZsR90u; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=SrkkwfGV; dmarc=none; spf=pass (imf10.hostedemail.com: domain of jack@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=jack@suse.cz X-HE-Tag: 1626173236-23092 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hello, Here is the fourth revision of the patch series to fix estimate of writeback throughput when device is not fully busy doing writeback. Michael Stapelberg has reported that such workload (e.g. generated by linking) tends to push estimated throughput down to 0 and as a result writeback on the device is practically stalled. The first three patches fix the reported issue, the remaining two patches are unrelated cleanups of problems I've noticed when reading the code. Andrew, can you please pick up the series? Thanks! Honza Changes since v3: * Now really send updated patches and not previous version :-| Changes since v2: * Rebased on top of 5.14-rc1 * Fixed compilation failure introduced by patch 5/5 Changes since v1: * Added comments to better explain the logic * Added Tested-by tag * Added WRITE_ONCE calls matching READ_ONCE in patch 5/5 Previous versions: Link: http://lore.kernel.org/r/20210705161610.19406-1-jack@suse.cz # v1 Link: http://lore.kernel.org/r/20210712165811.13163-1-jack@suse.cz # v2 Link: http://lore.kernel.org/r/20210713103347.8364-1-jack@suse.cz # v3