用bonnie进行系统I/O性能测试

参考:http://tolywang.itpub.net/post/48/306756

handbook: http://www.textuality.com/bonnie/advice.html

My test:

[root@customer2 4]# cd bonnie/

[root@customer2 bonnie]# ls

bonnie.tar.gz

[root@customer2 bonnie]# tar -zxvf bonnie.tar.gz 

Makefile

Instructions

Bonnie.c

bonnie.1

[root@customer2 bonnie]# make

Options are “make bsd” and “make SysV” – the default is “bsd”.

If you get messages about missing functions, try “make SysV.”

make Bonnie 

make[1]: Entering directory `/home/xysun/4/bonnie’

cc -O     Bonnie.c   -o Bonnie

make[1]: Leaving directory `/home/xysun/4/bonnie’

[root@customer2 bonnie]# ls

Bonnie  bonnie.1  Bonnie.c  bonnie.tar.gz  Instructions  Makefile

[root@customer2 bonnie]# mkdir -p /test/scratch

[root@customer2 bonnie]# ./Bonnie -d /test/scratch/ -s 10 -m eric    【local】

File ‘/test/scratch//Bonnie.1879’, size: 10485760

Writing with putc()…done

Rewriting…done

Writing intelligently…done

Reading with getc()…done

Reading intelligently…done

Seeker 1…Seeker 2…Seeker 3…start ’em…done…done…done…

              ——-Sequential Output——– —Sequential Input– –Random–

              -Per Char- –Block— -Rewrite– -Per Char- –Block— –Seeks—

Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU

eric       10 37931 98.5 318596 99.5 581454 96.5 50426 100.4 1460353 85.6 59383.3 93.5

[root@customer2 bonnie]# mkdir -p /home/xysun/5/     【NFS】

[root@customer2 bonnie]# ./Bonnie -d /home/xysun/5/ -s 10 -m eric

File ‘/home/xysun/5//Bonnie.1889’, size: 10485760

Writing with putc()…done

Rewriting…done

Writing intelligently…done

Reading with getc()…done

Reading intelligently…done

Seeker 1…Seeker 2…Seeker 3…start ’em…done…done…done…

              ——-Sequential Output——– —Sequential Input– –Random–

              -Per Char- –Block— -Rewrite– -Per Char- –Block— –Seeks—

Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU

eric       10  3036  8.6  3218  1.7  3350  1.9  2862 55.6 1217163 83.2 2064.4 11.9

Leave a comment