bonnie++ test KVM Virtual machine disk I/O performance

Source: Internet
Author: User

(I haven't done much about Linux system level lately, look at the text in the draft box and write it out)

Download the bonnie++-1.03e.tgz file from the http://www.coker.com.au/bonnie++/Web page and unzip it, configure, compile, and install the following command line operations:

The code is as follows Copy Code

[Root@kvm-guest ~]# CD bonnie++-1.03e
[Root@kvm-guest bonnie++-1.03e]#./configure
[Root@kvm-guest bonnie++-1.03e]# make
[Root@kvm-guest bonnie++-1.03e]# make install

This test uses the bonnie++ command as follows:

bonnie++-d-m kvm-guest-x 3-u Root
Where-D indicates the use of direct IO in bulk IO testing (o_direct), and-M kvm-guest indicates that bonnie++ received a host name of Kvm-guest,-x 3 that loops through the test 3 times, and-u root indicates that the test runs as root.
After the test is performed, the test results are output by default on the current terminal. The test results in its CSV format can be converted to a more readable HTML document via the bon_csv2html provided by bonnie++, as follows:

The code is as follows Copy Code

[Root@kvm-guest bonnie++-1.03e]# echo "native,4g,102817,88,58631,25,56712,4,108330,91,151383,7,299.0,1,16,+++++,+ ++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ "| Perl bon_csv2html > native-bonnie-1.html

bonnie++ is a powerful test hard disk and file system Tools, about the use of bonnie++ command, you can use the man bonnie++ command to obtain a help manual, on the Bonnie++ tool principles and test methods of the introduction, you can refer to its source code in the Readme.html document.

The results of performance testing for KVM virtualization with bonnie++ disk I/O are as follows:
Bonnie++ 's test results are compared, as shown in Figure 8-13, where the s-w represents sequential write (sequential write), s-r representation sequence read (sequential read), so S-w-per-char is written in alphabetical order, S-w-block representations are written in the order of the blocks, s-rewrite for sequential overrides, S-r-per-char in the order of the characters, S-r-block for reading in blocks, Random Seeks represents a random change in file read-write pointer offsets (using the Lseek () and random () functions).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.