[Ocfs2-tools-devel] [PATCH 0/11] Improve I/O caching v2

Joel Becker joel.becker at oracle.com
Fri May 22 18:00:15 PDT 2009


Here's version 2.  Changes:

- Work around a glibc memalign() bug.
- Add _nocache() versions of the I/O functions.
- fsck's pass 0 now scans the suballocators in reverse order.  This
  ensures that the first inodes will be in cache when we go to scan
  them in pass 1.
- fsck's pass 2 fills the cache with dirblocks before processing them.
  It repeats this as needed.

On my PPC volume (47GB, 6G used, 512B blocks, 4K clusters), stock fsck
takes 2m12s and this version taks 1m9s with a large cache (820MB).  On
Sunil's local ocfs2 (56G, 47G used, 2K blocks, 4K clusters), stock fsck
takes 8m14s and this version takes 4m28s with a good-sized cache that
isn't large enough to hold everything (460MB).

This is ready to go, please review.

Joel





More information about the Ocfs2-tools-devel mailing list