Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.54.127.74 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796143038; b=TuxlkDRRrQSp4c49+2IwBuGwOUT8htjp3zFrcUTmld+enA4tOsmrzjyG8qwFXj6XuIqn iYXemujRnzCi09Wj5qGW0kdGcR/rwh2xEm00ZNxn2hgcu4kLJcGOUZRv6k98VhUIACAEA TPUEbeCy/SVtW0cG6SJj3TvL1PBWuK1gIMGOlKKUlBszGI46KbKLRqDKR97GNQlI1bLRd h13JJYgkT37zE4wDUVXnqWi+vEMbNAjo4nkYxdJ6sRRMEEUXTtv8nmVVF2n3uhaNInWaZ 2CRoDlT3rURYsZcTCFtPlEN5Vl163jYU0e99mxoWHMfRanJgCk8GGndm6JnazWXF1lg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796143038; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-Envelope-From; bh=4UGa9cDQC8I2zTrcXVV2me4BJ/4/xhFqfaL3qUUkQjc=; b=MYLUw1GhFmzqpFBYwlzadGCA4WPBV2j9/3tQ5dTge3dwrRFZf+FCONQbg4TGbxkfKA2N VFLEvqC1NppLoxkV2tuH/qlo8dbg/eexd7Q3LnqEEZbCF4BRjubLr/who83uBu4laUcpq YcPZC+B8FtiyjfTAUaiTILpzKYuHpXLCLXi1ExxRjOcg/JvfxxHxNEjtLT8TiIfxdGzUf 65chzlcGtKxjEjm9WzdZ1sYgFH+L0HpEq8Y2iV038UdCnR7UfQgQakAoJLbLR6vkdnF7f xcpunofWujOxnE77GRWITaDZlvT9fRUW+qt4VnPYNuBnvwSTS2Qjox5S1RXEelCbKMg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=tychen.cc; spf=pass smtp.mailfrom=tychen.cc; dkim=pass header.d=tychen.cc header.i=@tychen.cc header.a=rsa-sha256 header.s=spacemail header.b="Dc/nZLOT"; arc=none smtp.remote-ip=198.54.127.74 Received: from out-zbxj-a74.jellyfish.systems (out-zbxj-a74.jellyfish.systems [198.54.127.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09AB4606A31A for ; Tue, 1 Dec 2026 16:37:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 09AB4606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=tychen.cc Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tychen.cc Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tychen.cc header.i=@tychen.cc header.a=rsa-sha256 header.s=spacemail header.b=Dc/nZLOT Received: from fedora (unknown [151.145.76.168]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.spacemail.com (Postfix) with ESMTPSA id 4jf6406n24z8sWP; Tue, 01 Dec 2026 16:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tychen.cc; s=spacemail; t=1796143027; bh=4UGa9cDQC8I2zTrcXVV2me4BJ/4/xhFqfaL3qUUkQjc=; h=From:To:Cc:Subject:Date:From; b=Dc/nZLOTQqHNUyIZ9QUr2hIpSi9SoR+U70YemjDYgnaEwzMricqilsHL27CWgSayG JL3VAzBwCVqabzJ3j3k3jeUOh+1/HsFUO+dasQMWyJ+Mfit8e9YSzi/mUMKXJy/W0m l8sHNHMefUbAPtWNKTPIdiaceN1VWqGlaodEwxM7pNepT9P2zYnnidLH/h1s7OM7uK jbtRuo1mvhB/1c2hTo20t4YFurAARuMM6kL9YuYKDfHA2jgrl3tNj56aHtMIBlRGfV KAi8iBb97I6/2aidRx9D6/G5HnykY38pK+3G6Xc+diRzDSLYFxhrzxuFk/YrPu1lqj ZbKd9vmuXOFeQ== From: Tianyi Chen To: Tejun Heo , Josef Bacik , Jens Axboe Cc: Yu Kuai , Johannes Weiner , Michal Koutny , linux-block@vger.kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, hi@tychen.cc Subject: blk-throttle: does io.max bound metadata writes over time? Date: Wed, 2 Dec 2026 01:36:50 +0900 Message-ID: <20261201163652.467289-1-hi@tychen.cc> X-Mailer: git-send-email 2.56.1 X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Envelope-From: hi@tychen.cc Hi Tejun, Josef, Jens, Does io.max have a long-term rate guarantee for metadata writes? I understand why blk-throttle lets metadata through to avoid stalling a shared journal. What I couldn't tell from the documentation is what happens to the guarantee if later I/O doesn't pay back the excess. On unmodified f47d223627f8 (XFS, virtio disk, one KVM boot), io.stat for a group doing metadata writes recorded 30.4x, 29.7x and 30.7x its write IOPS limit in three consecutive 20-second windows. Over the minute, io.stat counted 58,068 writes in that group; the disk counted 58,297. This did not look like just an initial burst. The __blk_throtl_bio() body is unchanged at mainline 19cc08c1a6a6. I ran a conventional I/O check on that tip, not this metadata workload. Thanks, Tianyi