NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Bonnie++
Contents
About[edit]
bonnie++ is an open source tool that can be used for testing the hard drives(storage devices) and filesystem for performance. Supports-
- Command line options to specify number of files, file size to be used in performance tests.
- Option to enable fsync() after every write to avoid any write buffering.
- Performance numbers for create, write, rewrite, read, sequential read/writes and random read/writes.
Visit bonnie++ man page for more information.
Source Download Location[edit]
Cross compiling[edit]
- Cross compilation command - make CXX=$(TOOL_CHAIN_PREFIX)-g++
- The TOOL_CHAIN_PREFIX corresponds to the tool chain in use. Set this based on your tool chain. Also make path to toolchain is exported as part of $PATH.
Test setup[edit]
- EVM booted up with NFS configuration.
- Connect a MMC/SD card to the MMC/SD slot of the EVM.
- Format the card with vfat and ext2 partitions.
- Mount and run the performance test on the card with VFAT and ext2 partitions.
Execution[edit]
./bonnie++ -d /tmp/foo/ -u root -s 1 -r 0.5 -n 1
NOTE-
- -d scratch-dir : Write scratch file in named directory (default: "."). Filesystem must be large enough to accomodate the size of the working file.
- -s size-in-Mb : how many Mb to use for testing (default: 100)
- -n : Number of files to use for test
- -r : system memory(ram size).
Execution logs[edit]
[root@beagleboard /tmp]# ./bonnie\+\+ -d /tmp/foo/ -u root -s 1 -r 0.5 -n 1 Using uid:0, gid:0. Writing with putc()...done Writing intelligently...done Rewriting...done Reading with getc()...done Reading intelligently...done start 'em...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. Create files in random order...done. Stat files in random order...done. Delete files in random order...done. Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP beagleboard.org 1M 1926 99 +++++ +++ +++++ +++ 1921 99 +++++ +++ +++++ +++ ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 1 191 99 306 99 +++++ +++ 254 99 309 100 553 99 beagleboard.org,1M,1926,99,+++++,+++,+++++,+++,1921,99,+++++,+++,+++++,+++,1,191 ,99,306,99,+++++,+++,254,99,309,100,553,99 [root@beagleboard /tmp]#