[Ocfs2-devel] [PATCH 1/1] Ocfs2: Treat ocfs2 truncate as a special case of punching holes v1.

Joel Becker Joel.Becker at oracle.com
Mon Feb 8 12:59:00 PST 2010


On Mon, Feb 08, 2010 at 09:44:48AM +0800, tristan wrote:
> 0.00user 0.35system 0:00.52elapsed 67%CPU,   while new logic (using ocfs2_remove_btree_range) from begin to end should be:
> 
> 
> 0.00user 33.06system 0:33.11elapsed 99%CPU.

	Ok, so original truncate is .52s, remove_btree from begin-to-end
is 33s, and remove_btree from end-to-begin is 1.16s.  begin-to-end is a
disaster, but end-to-begin is less than half a second longer than the
original code.  That's perfectly fine, given the cleanup we get in the
code.

Thanks!
Joel

-- 

Life's Little Instruction Book #356

	"Be there when people need you."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-devel mailing list