From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.177.127.196 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796143057; b=4pAtI9WXzs6m6M0jDwf/Y8J5MCE9dGHLCJi9Zz35/EiDIyglPx0rYl/pi9XTaysau/qc CMZRps5t3VQfN3Gj101SNofm65ZzsKZimXzo01L3hbz29sBbutsJxA8/CwqhLKRFY/ivc iUsqaznNcusMnuQLYU4YImIhfYLfxol9IVIx0VBRGswofOCjK6jh9BdXuUBLe6sgXe8Kw ryfgMWNKSuk/DjtLuvVjaFhHQzQsAKueq0e2h+/+myyvBbY3WqpdmFiqTGsoRuXQrdzlE 3YZR6vmiZrVYg9jALd5jb+P2IXlbexS+sKKl6q534L2yAqmB8wGZjORsIYOolvPUdJg== 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=vkqAWcKzr9zQkYCitbKEHZXmWhBF0tUEKePFOqDvKItrD6XRN4kyobFrmAaoB64bPkiL OGdiKyEQvugzOPULKHFBbCDIUAixyAMhsgREwzhm8/vbbjQTbHMRezvmy8FaxbmPG/tR4 YKHYtHe0CoLT9l+swg75Ks8GOkXpSn+ctDZJ+KWdkdeTYUl0Rlcgmk0hPUBu7/LnqoU/W fx2K4ukmKNTZ84IPdpE2eFgjj+CcQG107AggK8j0a62fxRvAUKUSk0s2qRp127oZIzaUT 3ct7bf2o1cTvoSju2SCVP3uZghl7wzweTVeQ8masrFPHOTFvjrgjcWed5o50Q4e8rCw== 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.196 Received: from out-utut-a196.jellyfish.systems (out-utut-a196.jellyfish.systems [198.177.127.196]) (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 9E863606A320 for ; Tue, 1 Dec 2026 16:37:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9E863606A320 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-kernel@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