tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Serious WAPL performance problems



2012/10/25 Paul Goyette <paul%whooppee.com@localhost>:
> On Thu, 25 Oct 2012, Stephan wrote:
>
>> I always found FFS being slow when creating or deleting many files.
>> For example, on 6.0 with FFSv2 and WAPBL it took 20 sec. to complete
>> this:
>>
>>
>> time seq 1 30000 | xargs touch
>
>
> I just did this on my 6.99.14 system and it takes less than 1s:
>
> # uname -rs
> NetBSD 6.99.14
> # mount
> /dev/raid0a on / type ffs (log, NFS exported, local)
> ...
>
> # dumpfs / | grep wap
> wapbl version 0x1       location 2      flags 0x0
> wapbl loc0 21236416     loc1 40288      loc2 512        loc3 23
> flags   wapbl
> # cd /
> # mkdir temp
> # cd temp
> # time sh -c 'seq 1 30000 | xargs touch'
> 0.043u 0.738s 0:00.78 98.7%     0+0k 0+268io 0pf+0w
> # time rm *
> 0.040u 0.498s 0:00.37 143.2%    0+0k 0+267io 0pf+0w
> #


This is on a 6.0 BETA host (IBM x3550, 8 CPU, 15K SAS - aac SCSI RAID
controller, 18GB Memory):

# time sh -c 'seq 1 30000 | xargs touch'
   32.02s real     0.03s user    29.46s system


# dd if=/dev/zero of=myfile bs=64k count=10000
10000+0 records in
10000+0 records out
655360000 bytes transferred in 5.628 secs (116446339 bytes/sec)

# mount
/dev/ld0a on / type ffs (log, local)
...


Home | Main Index | Thread Index | Old Index