On Sun, 27 Oct 2013, Christoph Badura wrote:
On Fri, Oct 25, 2013 at 10:40:36AM +0100, Stephen Borrill wrote:I've a machine which has a filesysmte that is extremely slow to create dirs and files. Look at the time to run mkdir below:backup 1# time mkdir /data/backup/previous4 0.000u 0.131s 1:31.95 0.1% 0+0k 7912+5io 0pf+0wPlease test the attached patch. It is FreeBSD ffs_alloc.c r121784. I think it describes your situation accurately and explains the effects you are seeing.
BINGO!It completely resolves the performance issue and I've tested it on both netbsd-5 and netbsd-6
Commit and pullup request! -- Stephen