Subject: slowdown of ``rm -r'' in -current (vs. 1.5)
To: None <tech-kern@netbsd.org>
From: Chuck Silvers <chuq@chuq.com>
List: tech-kern
Date: 04/07/2001 15:25:45
hi,

people have reported that ``rm -r'' of a large directory tree in
a softdep filesystem is much slower in -current than it was in 1.5.
I made some measurements and it is indeed 2 to 3 times slower.
it turns out that the slowdown is due to this change:

revision 1.12
date: 2000/12/13 20:07:32;  author: mycroft;  state: Exp;  lines: +20 -17
Patch from Kirk McKusick to fix an ordering problem in softdep_setup_freeblks()
that could cause an inode to be reused prematurely (possibly resulting in the
file containing garbage blocks).


when this bugfix is applied to the 1.5-branch, the resulting code performs
at about the same speed as -current.

i've submitted a pullup request for this fix for the 1.5-branch.

-Chuck