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++

From Texas Instruments Wiki
Jump to: navigation, search

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]#
E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Bonnie++ here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Bonnie++ here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Bonnie++ here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Bonnie++ here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Bonnie++ here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Bonnie++ here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Bonnie++ here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Bonnie++ here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Bonnie++ here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity