Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.177.127.220 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796143057; b=tBOlPuhgyHu3nK2U6yS0y98jGO8+Un5hodbhU5ZNyYV6vWK48qk0mKNYHEaDn7g0e/Iv Frac1768QhxS1ArWOhQPsoeCXENI5LdLG4axDQaNcEZnUiM8WgYCwi+lFugit2n1xQCdA 9HzuvD/J9cO/N9PEiLjM8jejNZK2RMxznRRgyWpnk67RQfo6KU4W5Kv+92yc8ijM9aqfs sQ1MatRDHSBvNXi8pvtTl+JcjjddbDqy46TsLx7hod0I5/qfAjsVmXXcWmXKvr/9HimqP 4D2V00AqTcWVDXxrqzyYhdXH29lydFIUK1tKgf0sIzDYnuIz8xoFMutp08KbyzxR0UQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796143057; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-Envelope-From; bh=DEi7KBLiKyVRUy23bje36mT7DJxn28sueuB/90k3Z8s=; b=fO5+KX3ahEnG2mdrghSYC0O9A9BIPjR2vDxr8DVxJTZvCqoHB2ZZoWWWz5SWRIrzq2OR TYqK3fq9ZGdNn+8/EFZbyJh9hh/ILreNaDAwl6ohzUfIDxJf7CoXJq2R19OzNmrHiYqJC 92YFTZnbnOiA9j/4dDnnAMxN0Lhnj8WEMH21u6M0yvW9C6sQ6RoPmkYU/JiXOgWYqMXSZ ZE4D6f3cFsEgAAZBD/jyuJAEC5wwdXXXSSIxD+DUHkJ4actnBvPZ4oHQJzPydot4pZU9h fBERILlcfM3cvApvIkCIsM16CJefu9DYKC9AeP8o3GXa79TyfE9tFFVMxWdAKn46Lig== 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=UBhm0qgp; arc=none smtp.remote-ip=198.177.127.220 Received: from out-utut-a220.jellyfish.systems (out-utut-a220.jellyfish.systems [198.177.127.220]) (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 B13C2606A329 for ; Tue, 1 Dec 2026 16:37:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B13C2606A329 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=UBhm0qgp 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 4jf64L2XjNz8sWP; Tue, 01 Dec 2026 16:37:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tychen.cc; s=spacemail; t=1796143045; bh=DEi7KBLiKyVRUy23bje36mT7DJxn28sueuB/90k3Z8s=; h=From:To:Cc:Subject:Date:From; b=UBhm0qgpQxKNZUbr2tILoPyAmi3mwZ6ismGURrEpLA28SOXG06i/qYI0nC034hurC jDznG4LgbbKPnaLWMrft/WkztofcoFHKWgTpjaw7jqr8jRuNl37uXehilgkDFAV1h1 CIB/DGl7nQhBfraOuyVfiapt2A+D/OyKTFFqJ049Y0VIS/vJHSbJDMKfIzbe4vClZP tvH7pySgGK8PVdz4wjDWwEmZcKi/Ih2PUu4VGNodgs6/LRlbI/nNLr3GcntbZj7OqR uVMr3CUJqISckN6gcegjNSdOBs0+LVFOuZrpK62Wm3IvNF4l/dEMZATk+u5W4kTL7H RxZ9hYtOMYGHQ== From: Tianyi Chen To: Theodore Ts'o , Jan Kara Cc: Andreas Dilger , Baokun Li , Ojaswin Mujoo , Ritesh Harjani , Zhang Yi , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, hi@tychen.cc Subject: ext4: fsync waits for journal credits behind throttled writeback Date: Wed, 2 Dec 2026 01:37:08 +0900 Message-ID: <20261201163709.467333-1-hi@tychen.cc> X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-ext4@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 Ted, Jan, An uncapped writer's fsync slowed down when it shared an ext4 filesystem with a write-limited group (io.max wbps=16 MiB/s). On unmodified f47d223627f8 in one KVM boot, the uncapped writer's fsync p95 was 222 ms on the shared filesystem and 3.8 ms with separate filesystems on the same disk. The other group's cap was unchanged. With the default dioread_nolock, I saw 28 add_transaction_credits() waits of at least 10 ms on the shared filesystem (12.2 s total), and none with separate filesystems. In all 28, the task that woke the writer was a kworker just seen entering jbd2_journal_start_reserved(). This test did not identify the particular reservation or bio. In a separate run on a modified kernel I could follow the flusher's reservation until the conversion worker returned the credits. Is it expected that a group's pending writeback can tie up journal credits long enough to delay an unrelated writer on the same filesystem? Thanks, Tianyi