tech-kern archive

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

Re: RAIDframe level 5 write performance



        hello.  I'm not sure exactly what tests you're asking about, but here
are the results from the enclosed shell script.

NetBSD-3.0 (raid1, softdep, ffsV1 atop mpt(4) sd disks)
%time sh /var/tmp/filespeed.sh
Starting run -- creating and destroying 5000 files...
5.8u 16.5s 0:18.02 124.1% 0+0k 76+114io 0pf+0w

NetBSD-4 (raid5, softdep enabled atop wd(4) disks)
%time sh ~/src/filespeed.sh
Starting run -- creating and destroying 5000 files...
5.4u 6.8s 0:11.72 105.4% 0+0k 0+117io 0pf+0w


NetBSD-5.1 (raid5, FFSV2, no softdep and nolog atop twa(4) ld disks)
% time sh /var/tmp/filespeed.sh
Starting run -- creating and destroying 5000 files...
8.9u 11.3s 4:51.26 6.9% 0+0k 1+20412io 1pf+0w

NetBSD-5.1 (FFS, softdep, plain wd disk)
%time sh ../filespeed.sh
Starting run -- creating and destroying 5000 files...
24.6u 37.9s 2:26.10 42.9% 0+0k 118+292io 0pf+0w

NetBSD-5.0 (raid5, ffsV1, softdep atop wd(4) disks)
% time sh /var/tmp/filespeed.sh
Starting run -- creating and destroying 5000 files...
13.4u 17.1s 0:31.06 98.6% 0+0k 0+101io 0pf+0w

NetBSD-5.1 (raid1, softdep, ffsV1 atop mpt(4) sd  disks)
%time sh /var/tmp/filespeed.sh
Starting run -- creating and destroying 5000 files...
8.0u 10.3s 0:18.84 97.6% 0+0k 39+48io 0pf+0w


Here's the script I used.
-Brian

#!/bin/sh - 
#NAME: Brian Buhrow
#DATE: November 2, 2012
#PURPOSE: this shell script tests how fast a filesystem can
#create and delete files in the current directory.
#Run it from a directory which is empty and which is on a
#filesystem you want to test.

#Here are some constants
PATH=/bin:/usr/bin:/usr/pkg/bin:/sbin:/usr/sbin:/usr/pkg/sbin; export PATH
RUNCOUNT=5000 #We'll start with 5,000 files
BASEFNAME="filtest"

echo "Starting run -- creating and destroying $RUNCOUNT files..."
currun="0"
while [ $currun -lt $RUNCOUNT ]; do
        fname="$BASEFNAME$currun"
        /bin/rm  -f $fname
        echo "test $currun" > $fname
        currun=`expr $currun + 1`
done

currun="0"
while [ $currun -lt $RUNCOUNT ]; do
        fname="$BASEFNAME$currun"
        /bin/rm  -f $fname
        currun=`expr $currun + 1`
done

exit 0


Home | Main Index | Thread Index | Old Index