Tugriceri Web Notes

ZFS deduplication test on Fedora 15 Linux

by on Jun.18, 2011, under Linux, ZFS

I  recently tested ZFS deduplication test on Fedora 15 Linux.
This is my test script. I tested only text file. For final report, other file format tests is unnecessary.

[root@etugriceri fast]# du -ch 0/textfile
6.5K    0/textfile
6.5K    total

[root@etugriceri fast]# zpool list dimmpool
NAME       SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
dimmpool   294M   262M  31.8M    89%  1.89x  ONLINE

[root@etugriceri fast]# cat ded.sh

a=”1″

while [ $a -lt “1000” ];
do
mkdir $a
let b=$a-1
cp $b/textfile $a
dd if=/dev/urandom count=128 bs=1 2>&1 | md5sum >> $a/textfile

let a=$a+1
done

#####

[root@etugriceri fast]# zpool list dimmpool
NAME       SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
dimmpool   294M   132M   162M    45%  1.00x  ONLINE  –

[root@etugriceri fast]# cat ded.sh

a=”1″

while [ $a -lt “10000” ];
do
mkdir $a
let b=$a-1
cp 0/textfile $a
dd if=/dev/urandom count=128 bs=1 2>&1 | md5sum >> $a/textfile
dd if=/dev/urandom count=128 bs=1 2>&1 | md5sum >> $a/textfile
cat 0/textfile >> $a/textfile
let a=$a+1
done

:
No comments for this entry yet...

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...