https://www.phoronix.com/news/Linux-6.18-Writeback-Lockups Phoronix * Articles & Reviews * News Archive * Forums * Premium Ad-Free * Contact * Popular Categories * Close * * Articles & Reviews * News Archive * Forums * Premium * Contact * Categories Computers Display Drivers Graphics Cards Linux Gaming Memory Motherboards Processors Software Storage Operating Systems Peripherals * [ ] [Search] Linux 6.18 Will Fix Lockups When Systemd Units Read Lots Of Files Written by Michael Larabel in Linux Storage on 27 September 2025 at 06:33 AM EDT. 23 Comments LINUX STORAGE Linux engineer at Microsoft Christian Brauner sent out his set of 12 pull requests touching the VFS portion of the Linux kernel. These changes for the Linux 6.18 kernel include one pull request that touches the writeback code to address a situation of lockups being reported by users when systemd units read lots of files. The problem at hand with these lockups will manifest when a systemd unit reads lots of files from a file-system mounted with the "lazytime" mount option. Lazytime being the option for only initially updating the access/modify/creation time on the in-memory version of the file inode to help with performance and reduce writes to disk. The on-disk timestamps are then updated during fsync and similar operations or when evicted from memory, among other possibilities. Linux developers found that for systemd units reading many files with the lazytime mount option, there can reach "hundreds of thousands or millions" dirty inodes on cgroup exit to the parent cgroup. In turn the system can be hit for hours with 100% CPU usage Linux 100% CPU usage The pull request elaborates on the problem: "This contains work adressing lockups reported by users when a systemd unit reading lots of files from a filesystem mounted with the lazytime mount option exits. With the lazytime mount option enabled we can be switching many dirty inodes on cgroup exit to the parent cgroup. The numbers observed in practice when systemd slice of a large cron job exits can easily reach hundreds of thousands or millions. The logic in inode_do_switch_wbs() which sorts the inode into appropriate place in b_dirty list of the target wb however has linear complexity in the number of dirty inodes thus overall time complexity of switching all the inodes is quadratic leading to workers being pegged for hours consuming 100% of the CPU and switching inodes to the parent wb." The pull request also has a small sample script for demonstrating the issue on existing Linux kernel releases. This issue should be addressed once these patches are merged for the upcoming Linux 6.18 merge window. 23 Comments Tweet Related News Btrfs Brings BS Greater Than PS For Linux 6.18, Better Parallelism For Read-Heavy Workloads Linux 6.18 Linear RAID "md-linear" To Support Atomic Writes SquashFS Optimization Achieves 15,277x Performance In Developer Benchmark New Patches Optimize EXT4 Online Defragmentation For Better Performance A Major Trading Firm Has Open-Sourced The Latest Linux File-System: TernFS DKMS Packages For Bcachefs Are Now Available On Debian & Ubuntu About The Author Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com. Popular News This Week A Major Trading Firm Has Open-Sourced The Latest Linux File-System: TernFS Multi-Kernel Architecture Proposed For The Linux Kernel Git Developers Debate Making Rust Mandatory Ubuntu 25.10's Move To Rust Coreutils Is Causing Major Breakage For Some Executables Linux Ready To Upstream Support For Google's PSP Encryption For TCP Connections Bytedance Proposes "Parker" For Linux: Multiple Kernels Running Simultaneously Ubuntu 25.10 Beta Officially Released For Testing SquashFS Optimization Achieves 15,277x Performance In Developer Benchmark Latest Linux News Unvanquished Game Ported To SDL3, Working Natively On Wayland Linux Driver Developer At Valve Preps More Patches For Improving AMD GCN 1.0 GPUs Linux 6.18 Will Fix Lockups When Systemd Units Read Lots Of Files Btrfs Brings BS Greater Than PS For Linux 6.18, Better Parallelism For Read-Heavy Workloads KDE Plasma 6.5 Receives A Grayscale Mode, Early Feature Work Toward Plasma 6.6 Time Is Running Out On Our Autumn Deal To Help Support Linux Hardware Reviews Ubuntu 25.10's Only Supported RISC-V Platform: QEMU Virtualization Features Expected For Linux 6.18: File-System Improvements, Sheaves, New Drivers & More Perf Linux 6.17 Gets Ready For Release With Intel Panther Lake & More Performance Ubuntu 25.10's Move To Rust Coreutils Is Causing Major Breakage For Some Executables Show Your Support, Go Premium Phoronix Premium allows ad-free access to the site, multi-page articles on a single page, and other features while supporting this site's continued operations. Latest Featured Articles Raspberry Pi 500+ Benchmarks: Mechanical Keyboard Computer, 16GB RAM & NVMe SSD The Massive AI Performance Benefit With AMX On Intel Xeon 6 "Granite Rapids" Running The Bcachefs DKMS Modules On Ubuntu Linux AMD Ryzen AI Max+ "Strix Halo" Performance With ROCm 7.0 Linux 6.17 File-System Benchmarks, Including OpenZFS & Bcachefs Support Phoronix The mission at Phoronix since 2004 has centered around enriching the Linux hardware experience. In addition to supporting our site through advertisements, you can help by subscribing to Phoronix Premium. You can also contribute to Phoronix through tips/donations via PayPal or Stripe. Phoronix Media --------------------------------------------------------------------- * Contact * Michael Larabel Phoronix Premium --------------------------------------------------------------------- * Support Phoronix * While Having Ad-Free Browsing, * Single-Page Article Viewing Share --------------------------------------------------------------------- * Facebook * Twitter / X * Legal Disclaimer, Privacy Policy, Cookies | Privacy Manager | Contact * Copyright (c) 2004 - 2025 by Phoronix Media. * All trademarks used are properties of their respective owners. All rights reserved.