KernelTrap: Batched Writes | Linux Today

KernelTrap: Batched Writes

Written By
Web Webster
Web Webster
Jun 21, 2006

“Hans Reiser described a recently posted patch as, ‘it revises
the existing reiser4 code to do a good job for writes that are
larger than 4k at a time by assiduously adhering to the principle
that things that need to be done once per write should be done once
per write, not once per 4k.’ He went on to explain, ‘this code
empirically proves that the generic code design which passes 4k at
a time to the underlying FS can be improved. Performance results
show that the new code consumes 40% less CPU when doing ‘dd
bs=1MB…” Referring to generic_file_write(), he further noted
that currently when writing 64MB of data, ‘it may go to the kernel
as a 64MB write, but VFS sends it to the FS as 64MB/4k separate 4k
writes.’ It was acknowledged that this could also be accomplished
in a non-generic way, howevever earlier feedback had suggested that
such improvements should be made available to all…”

Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.