By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: New Patches Optimize EXT4 Online Defragmentation For Better Performance
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > New Patches Optimize EXT4 Online Defragmentation For Better Performance
Computing

New Patches Optimize EXT4 Online Defragmentation For Better Performance

News Room
Last updated: 2025/09/23 at 8:03 AM
News Room Published 23 September 2025
Share
SHARE

A set of 13 patches were posted today to the Linux kernel mailing list for optimizing the online defragmentation handling by the EXT4 kernel driver. The online defragmentation improvements for EXT4 can net a nice performance win with a very significant improvement in a variety of scenarios.

Huawei engineer Zhang Yi posted the patches to the Linux kernel mailing list for improving the EXT4 file-system online defragmentation handling. Plus it’s also working toward converting the EXT4 buffered I/O code for regular files over to the IOmap infrastructure. Zhang Yi explained with the LKML patch series:

“Currently, the online defragmentation of the ext4 is primarily implemented through the move extent operation in the kernel. This extent-moving operates at the granularity of PAGE_SIZE, iteratively performing extent swapping and data movement operations, which is quite inefficient. Especially since ext4 now supports large folios, iterations at the PAGE_SIZE granularity are no longer practical and fail to leverage the advantages of large folios. Additionally, the current implementation is tightly coupled with buffer_head, making it unable to support after the conversion of buffered I/O processes to the iomap infrastructure.

This patch set (based on 6.17-rc7) optimizes the extent-moving process, deprecates the old move_extent_per_page() interface, and introduces a new mext_move_extent() interface. The new interface iterates over and copies data based on the extents of the original file instead of the PAGE_SIZE, and supporting large folios. The data processing logic in the iteration remains largely consistent with previous versions, with no additional optimizations or changes made.

Additionally, the primary objective of this set of patches is to prepare for converting the buffered I/O process for regular files to the iomap infrastructure. These patches decouple the buffer_head from the main extent-moving process, restricting its use to only the helpers mext_folio_mkwrite() and mext_folio_mkuptodate(), which handle updating and marking pages in the swapped page cache as dirty. The overall coding style of the extent-moving process aligns with the iomap infrastructure, laying the foundation for supporting online defragmentation once the iomap infrastructure is adopted.”

The benchmarks included as part of the patch series are very enticing:

EXT4 online defrag benchmarks

Some really solid wins at the different block sizes and both for written/unwritten extent moving.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Worried About Phone Searches? 1Password’s Travel Mode Can Clean Up Your Data
Next Article More Android flagships are confirmed to get a camera kit, this time from ZEISS
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Trump administration wants to hand out $2.4 billion it took from California’s high-speed railroad
News
iPhone 17 Pro Max Vs. Galaxy S25 Ultra Drop Test: They Break Just As Fast – BGR
News
Running The Bcachefs DKMS Modules On Ubuntu Linux
Computing
Apple Arcade Adding Four Games Next Month, Including NBA 2K26
News

You Might also Like

Computing

Running The Bcachefs DKMS Modules On Ubuntu Linux

2 Min Read
Computing

Chinese startup Sharge unveils first mass-produced AI glasses in China ahead of Xiaomi and Baidu

1 Min Read
Computing

Can another Instadeep AI success story come out of Francophone Africa?

19 Min Read
Computing

How to Set up a Facebook Business Page in 10 Minutes – Blog

11 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?