Skip to content

ext2, ext3: speed up file create workloads

Eric Sandeen linux-ext4 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ext2: speed up file creates by optimizing rec_len functionsfs/ext2/dir.c+14 -513 replies
2/2ext3: speed up file creates by optimizing rec_len functionsfs/ext3/dir.c include/linux/ext3_fs.h+17 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ext2, ext3: speed up file create workloads

The addition of 64k block capability in the rec_len_from_disk and rec_len_to_disk functions added a bit of math overhead which slows down file create workloads needlessly when the architecture cannot even support 64k blocks, thanks to page size limits.

The directory entry checking can also be optimized a bit by sprinkling in some unlikely() conditions to move the error handling out of line.

These 2 patches speed up a bonnie++ file creation workload for me by several percent on ext2 & ext3.

Thanks,
-Eric