leveldb 测试

svn checkout http://leveldb.googlecode.com/svn/trunk/ leveldb-read-only
#svn checkout svn://gcc.gnu.org/svn/gcc/trunk .
#wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz 

 

cd leveldb-read-only
make
make check

测试1:

测试环境:

9块SSD MegaCli -PDList –aALL  |grep data -i

MegaCli  -LDInfo  -LALL -aALL     ,Raid 5

uname -a
Linux ker209 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

 cat /etc/issue
CentOS release 5.4

Mem: 48G

测试结果:

 ll /tmp/dbbench/

 leveldb-read-only]# ./db_bench --num=10000000 --write_buffer_size=$((2*1024*1024))
LevelDB:    version 1.2
Date:       Sun Jul 10 23:00:00 2011
CPU:        8 * Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
CPUCache:   12288 KB
Keys:       16 bytes each
Values:     100 bytes each (50 bytes after compression)
Entries:    10000000
RawSize:    1106.3 MB (estimated)
FileSize:   629.4 MB (estimated)
WARNING: Snappy compression is not enabled
------------------------------------------------
fillseq      :       2.264 micros/op;   48.9 MB/s      
fillsync     :      67.457 micros/op;    1.6 MB/s (10000 ops)
fillrandom   :      10.680 micros/op;   10.4 MB/s      
overwrite    :      13.521 micros/op;    8.2 MB/s      
readrandom   :      19.652 micros/op;                  
readrandom   :      18.830 micros/op;                  
readseq      :       0.402 micros/op;  275.1 MB/s     
readreverse  :       0.608 micros/op;  181.9 MB/s     
compact      : 10831300.974 micros/op;
readrandom   :       7.972 micros/op;                  
readseq      :       0.255 micros/op;  434.1 MB/s     
readreverse  :       0.479 micros/op;  231.1 MB/s     
fill100K     :    3543.469 micros/op;   26.9 MB/s (10000 ops)
crc32c       :       7.123 micros/op;  548.4 MB/s (4K per op)
snappycomp   :       2.146 micros/op; (snappy failure)
snappyuncomp :       4.053 micros/op; (snappy failure)
acquireload  :       0.780 micros/op; (each op is 1000 loads)
You have new mail in /var/spool/mail/root

 

测试2:

 uname -r #2.6.18-164.el5

CentOS release 5.4

mem 3G

./db_bench --num=10000000 --write_buffer_size=$((256*1024*1024))
LevelDB:    version 1.2
Date:       Sun Jul 10 23:20:49 2011
CPU:        2 * Intel(R) Celeron(R) CPU        E3400  @ 2.60GHz
CPUCache:   1024 KB
Keys:       16 bytes each
Values:     100 bytes each (50 bytes after compression)
Entries:    10000000
RawSize:    1106.3 MB (estimated)
FileSize:   629.4 MB (estimated)
WARNING: Optimization is disabled: benchmarks unnecessarily slow
WARNING: Assertions are enabled; benchmarks unnecessarily slow
WARNING: Snappy compression is not enabled
------------------------------------------------
fillseq      :       2.485 micros/op;   44.5 MB/s      
fillsync     :    5424.305 micros/op;    0.0 MB/s (10000 ops)
fillrandom   :       7.937 micros/op;   13.9 MB/s      
overwrite    :       8.606 micros/op;   12.9 MB/s      
readrandom   :      44.319 micros/op;                  
readrandom   :      22.680 micros/op;                  
readseq      :       0.570 micros/op;  193.9 MB/s     
readreverse  :       0.761 micros/op;  145.3 MB/s     
compact      : 48010122.061 micros/op;
readrandom   :      12.046 micros/op;                  
readseq      :       0.353 micros/op;  313.6 MB/s     
readreverse  :       0.607 micros/op;  182.3 MB/s     
fill100K     :    1311.692 micros/op;   72.7 MB/s (10000 ops)
crc32c       :       4.250 micros/op;  919.0 MB/s (4K per op)
snappycomp   :       4.053 micros/op; (snappy failure)
snappyuncomp :       1.907 micros/op; (snappy failure)
acquireload  :       7.879 micros/op; (each op is 1000 loads) 

参考:http://blog.yufeng.info/archives/1327