All of lore.kernel.org
 help / color / mirror / Atom feed
* Simple preformance test
@ 2002-04-11 12:14 Ivan Ivanov
  2002-04-11 12:56 ` Oleg Drokin
  0 siblings, 1 reply; 12+ messages in thread
From: Ivan Ivanov @ 2002-04-11 12:14 UTC (permalink / raw)
  To: reiserfs-list

After reading some messages about performance tests for ReiserFS
I decided to make my oun.
The test is simple:

1. Create 10 directories with 10000 files of 10240 bites in each dir
    "dd if=/dev/zero of=xxxx bs=1024 count=10"
2. Touch each file in each dir
3. Delete each file in each dir

Test shows that there is NO reasonable preformance degradation when the
amount of used space grows up.
Funy thing is that between 90% and 100% used space there is a performence
boost.

Test machine is P166 with 80MB RAM
kernel 2.4.18 with Reiserfs quota patches
test partition 1.2GB reiserfs
slackware 8.0

------------------------------------------------
Here are the results:

1. Create test
================================================
Dir No.		10000 files create time [ sec ]
------------------------------------------------
0			170
1 			171
2 			173
3 			172
4 			173
5 			174
6 			173
7 			174
8 			176
9 			155
================================================
test partition is 100% full
df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda7              1172672   1170676      1996 100% /mnt/test

2. Touch test
================================================
Dir No.		10000 files touch time [ sec ]
------------------------------------------------
0 			132
1 			134
2 			133
3 			133
4 			132
5 			133
6 			133
7 			133
8 			133
9 			56
================================================

2. Delete test
================================================
Dir No.		10000 files delete time [ sec ]
------------------------------------------------
0 			142
1 			143
2 			144
3 			142
4 			143
5 			141
6 			142
7 			141
8 			141
9 			132
================================================

And here are the test scripts:

test.create
-----------
#!/bin/sh
block_size=1024
blocks_count=10
for d1 in 0 1 2 3 4 5 6 7 8 9; do
    echo -n "$d1 "
    begin_time=`date +%s`
    mkdir -p testdir/$d1
    for f1 in 0 1 2 3 4 5 6 7 8 9; do
        for f2 in 0 1 2 3 4 5 6 7 8 9; do
	    for f3 in 0 1 2 3 4 5 6 7 8 9; do
		for f4 in 0 1 2 3 4 5 6 7 8 9; do
		    dd if=/dev/zero of=testdir/$d1/$f1$f2$f3$f4 \
		        bs=$block_size count=$blocks_count \
		        >/dev/null 2>&1
		done
	    done
	done
    done
    end_time=`date +%s`
    echo $(($end_time - $begin_time))
done

test.touch
-----------
#!/bin/sh
for d1 in 0 1 2 3 4 5 6 7 8 9; do
    if [ -d testdir/$d1 ]; then
	echo -n "$d1 "
        begin_time=`date +%s`
	for f1 in 0 1 2 3 4 5 6 7 8 9; do
	    for f2 in 0 1 2 3 4 5 6 7 8 9; do
		for f3 in 0 1 2 3 4 5 6 7 8 9; do
		    for f4 in 0 1 2 3 4 5 6 7 8 9; do
			[ -f testdir/$d1/$f1$f2$f3$f4 ] && \
		    	    touch testdir/$d1/$f1$f2$f3$f4
		    done
	        done
	    done
        done
        touch testdir/$d1
        end_time=`date +%s`
        echo $(($end_time - $begin_time))
    fi
done

test.delete
-----------
#!/bin/sh
for d1 in 0 1 2 3 4 5 6 7 8 9; do
    echo -n "$d1 "
    begin_time=`date +%s`
    for f1 in 0 1 2 3 4 5 6 7 8 9; do
	for f2 in 0 1 2 3 4 5 6 7 8 9; do
	    for f3 in 0 1 2 3 4 5 6 7 8 9; do
		for f4 in 0 1 2 3 4 5 6 7 8 9; do
		    rm -f testdir/$d1/$f1$f2$f3$f4
	        done
	    done
	done
    done
    rm -rf testdir/$d1
    end_time=`date +%s`
    echo $(($end_time - $begin_time))
done


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-04-11 18:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-11 12:14 Simple preformance test Ivan Ivanov
2002-04-11 12:56 ` Oleg Drokin
2002-04-11 14:07   ` Ivan Ivanov
2002-04-11 14:12     ` Oleg Drokin
2002-04-11 14:28       ` Hans Reiser
2002-04-11 17:18       ` Ivan Ivanov
2002-04-11 18:26         ` Oleg Drokin
2002-04-11 17:22       ` Ivan Ivanov
2002-04-11 18:26         ` Oleg Drokin
2002-04-11 14:27     ` Yura Umanets
2002-04-11 14:27       ` Oleg Drokin
2002-04-11 17:11       ` Ivan Ivanov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.