Use bonnie to test system IO speed

xiaoxiao2021-03-06  52

Use bonnie to test system IO speed

Friday, 2004-09-17 11:33

Eygle

Original link:

http://www.eygle.com/unix/Use.bonnie.to.test.io.speed.htm

Bonnie is a minimal test system IO performance tool, source code is open. Authors Home: http://www.textuality.com/bonnie/ You can also click here to download

Compile Bonnie is extremely simple, but you need you installed Make and GCC (or CC)

# 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 `/ Export / Home / GQGAI / BONNIE '

Cc -o bonnie.c -o bonnie

Make [1]: Leaving Directory `/ Export / Home / GQGAI / BONNIE '

Have used manuals:

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

Test IO speed:

1.T3 Array Speed ​​Test (RAID5)

# df -k

FileSystem Kbytes Used Avail Capacity Mounted ON

/ DEV / DSK / C0T0D0S0 1018382 117711 839569 13% /

/ DEV / DSK / C0T0D0S6 2055705 1177602 816432 60% / usr

/ proc 0 0 0 0% / proc

FD 0 0 0 0% / DEV / FD

MNTTAB 0 0 0 0% / etc / mnttab

/ DEV / DSK / C0T0D0S1 1448911 772148 618807 56% / var

SWAP 4770120 8 4770112 1% / var / run

SWAP 4958928 188816 4770112 4% / TMP

/ DEV / DSK / C5T1D0S0 51634648 35154404 15963898 69% / DATA1

/ DEV / DSK / C5T1D1S1 25816144 2149881 4059102 85% / DATA3

/ DEV / DSK / C5T1D1S0 25816144 14650723 10907260 58% / DATA2

/ DEV / DSK / C0T2D0S1 15483618 1074317 14254465 8% / TEMP

/ DEV / DSK / C0T2D0S0 7136886 2824586 4240932 40% / Varlink

/ DEV / DSK / C0T2D0S5 8258597 5868224 2307788 72% / OPT

/ DEV / DSK / C0T2D0S7 2053605 1281342 710655 65% / Export / Home

/ DEV / DSK / C0T2D0S6 2053605 178151 1813846 9% / usr / local # format

Searching for Disks ... DONE

Available Disk Selections:

0. C0T0D0

/ PCI @ 1f, 4000 / SCSI @ 3 / SD @ 0,0

C0T1D0

/ pci @ 1f, 4000 / SCSI @ 3 / SD @ 1,0

2. C0T2D0

/ PCI @ 1f, 4000 / SCSI @ 3 / SD @ 2,0

3. C3T0D0

/ PCI @ 4,4000 / SCSI @ 4 / SD @ 0,0

4. C3T1D0

/ PCI @ 4,4000 / SCSI @ 4 / SD @ 1,0

5. C3T2D0

/ PCI @ 4,4000 / SCSI @ 4 / SD @ 2,0 6. C3T3D0

/ PCI @ 4,4000 / SCSI @ 4 / SD @ 3,0 7. C5T1D0

/ PCI @ 1f, 2000 / sunw, qlc @ 1 / fp @ 0,0 / ssd @ W50020F23000083A2, 0 8. C5T1D1

/ PCI @ 1f, 2000 / sunw, qlc @ 1 / fp @ 0,0 / ssd @ W50020F23000083A2, 1 specify disk (enter its number): ^ d # ./bonnie -d / data1 -s 2046 -m billing-center File '/Data1/bonnie.8273', size: 2145386496 Writing with putc () ... DONE REWRIGENTLY ... DONE Reading with getc () ... DONE Reading Intelligently ... Ado

Seeker 2 ... Seeker 1 ... Seeker 3 ... Start 'EM ... DONE ... DONE ... DONE ... ------- Sequential Output -------- --- Sequential Input - - --radom - -r 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 Billing- 2046 10251 87.5 32430 55.7 14048 39.5 12625 99.5 48763 67.3 61.5 8.3

Brief introduction to the output:

Here SEQUENTIAL OUTPUT refers to the write speed, and Char refers to writing, and block refers to the block mode, and the REWRITE refers to the sequence rewriting speed (that is, data modification) Sequential Input means reading speed.

The CPU refers to the CPU resource occupied by this operation.

Here T3 RAID5 is written to 10251 k / sec

2. Local disk speed

# ./Bonnie -d / opt / oracle -s 1024 -m billing-center

File '/opt/oracle/bonnie.8545', size: 1073741824

Writing with putc () ... DONE

Rewriting ... DONE

Writing Intelligently ... DONE

Reading with getc () ... DONE

Reading Intelligently ... DONE

Seeker Seeker 2 ... 1 ... 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

Billing- 1024 9582 85.0 15928 29.8 6900 20.3 11735 96.5 46098 67.2 256.6 8.8

The following will gradually add some other hardware test data.

3. EMC CLARiion CX500 Test Data

System environment:

# / usr / platform / sun4u / sbin / prtdiag -v

System Configuration: Sun Microsystems Sun4u Sun Fire 480R

System Clock Frequency: 150 MHz

Memory Size: 4096 Megabytes

========================= CPUS ========================================================================================================================================================================== =====================================================================================================================================================

Run E $ CPU CPU

BRD CPU MHz MB IMPL. Mask

- - - - - - - - ------------

A 0 1050 8.0 US-III 11.0

A 2 1050 8.0 US-III 11.0

=========================Mory configuration ======================== =========

Logical Logical Logical

MC Bank Bank Dimm Interleave Interleaved

BRD ID Num Size Status Size Factor with

- - - - ---- ------ ------------------------------- ----

A 0 0 512MB NO_STATUS 256MB 8-WAY 0

A 0 1 512MB NO_STATUS 256MB 8-WAY 0A 0 2 512MB NO_STATUS 256MB 8-WAY 0

A 0 3 512MB NO_STATUS 256MB 8-WAY 0

A 2 0 512MB NO_STATUS 256MB 8-WAY 0

A 2 1 512MB NO_STATUS 256MB 8-WAY 0

A 2 2 512MB NO_STATUS 256MB 8-WAY 0

A 2 3 512MB NO_STATUS 256MB 8-WAY 0

========================= io cards ======================================================================================================================================================================== ==

Bus max

IO Port Bus Freq Bus DEV,

Type ID Side Slot MHz Freq Func State Name Model

---- - - - - - - --------------------- ------------------------------------

PCI 8 B 2 33 33 2,0 OK SUNW, XVR-100 SUNW, 375-3126

PCI 8 B 4 33 33 4, 0 ok fibre-channel-PCI10DF, F900.10DF.

PCI 8 B 5 33 33 5, 0 ok fibre-channel-PCI10DF, F900.10DF.

PCI 8 A 0 66 66 1,0 ok PCI-PCI8086, B154.0 / PCI108E, 1000 PCI-Bridge

PCI 8 A 0 66 66 0,0 ok PCI108E, 1000-PCI108E, 1000.1 Device on PCI-Bridge

PCI 8 A 0 66 66 0, 1 OK SUNW, QFE-PCI108E, 1001 SUNW, PCI-QFE / PCI-Bridg

PCI 8 A 0 66 66 1,0 OK PCI108E, 1000-PCI108E, 1000.1 Device on PCI-Bridge

PCI 8 A 0 66 66 1, 1 OK SUNW, QFE-PCI108E, 1001 SUNW, PCI-QFE / PCI-Bridg

PCI 8 A 0 66 66 2,0 ok PCI108E, 1000-PCI108E, 1000.1 Device on PCI-Bridgepci 8 A 0 66 66 2, 1 OK SUNW, QFE-PCI108E, 1001 SUNW, PCI-QFE / PCI-Bridg

PCI 8 A 0 66 66 3,0 OK PCI108E, 1000-PCI108E, 1000.1 Device on PCI-Bridge

PCI 8 A 0 66 66 3, 1 OK SUNW, QFE-PCI108E, 1001 SUNW, PCI-QFE / PCI-Bridg

========================= Environmental status ========================================================= ==

System Temperature (CELSIUS):

-------------------------------

Device Temperature Status

---------------------------------------

CPU0 50 ok

CPU2 52 OK

DBP0 28 ok

==========================================================================================================================================================

Front Status Panel:

-------------------

Keyswitch Position: Normal

System LED Status:

LOCATOR FAULT POWER

-------------------

[OFF] [OFF] [ON]

==========================================================================================================================================================

Disk status:

----------------

Disk 0: [NO_FAULT]

Disk 1: [NO_FAULT]

==========================================================================================================================================================

Fan Status:

-----------

Bank RPM Status

---- ----- ------ CPU0 5660 [NO_FAULT]

CPU1 3896 [NO_FAULT]

CPU2 3797 [NO_FAULT]

IO0 3947 [NO_FAULT]

IO1 4166 [NO_FAULT]

==========================================================================================================================================================

Power Supplies:

---------------

Supply status

------ ------

PS0 [NO_FAULT]

PS1 [NO_FAULT]

==========================================================================================================================================================

========================= hw revisions ======================================================================================================================================================================================== ================

System PROM Revisions:

----------------------

OBP 4.10.8 2003/07/25 08:44

IO asic revisions:

------------------

Port

Model ID Status Version

-------- ---- ------ -------

SCHIZO 8 OK 7

Schizo 9 ok 7

The array is CLARiion CX500, and the following is the RAID1 0 and RAID5 test data of 4 plates:

RAID1 0 test

# ./Bonnie -d / Eygle -s 2046 -m jump

File '/EGLE/BONNIE.460', SIZE: 2145386496

Writing with putc () ... DONE

Rewriting ... DONE

Writing Intelligently ... DONE

Reading with getc () ... DONE

Reading Intelligently ... DONE

Seeker Seeker 2 ... 1 ... Seeker 3 ... Start 'EM ... DONE ... DONE ... DONE ...

------- Sequential Output -------- --- Sequential Input-- --radom -

-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% CPUJUMP 2046 37438 75940 90.0 43495 99.7 322153 99.9 17747.8 177.5

The speed of the EMC CX500 is reached, 37438k / sec, a lot of performance than T3.

Here is the test data of RAID5:

# ./Bonnie -d / Eygle -s 2046 -m jump

File '/EGLE/BONNIE.473', Size: 2145386496

Writing with putc () ... DONE

Rewriting ... DONE

Writing Intelligently ... DONE

Reading with getc () ... DONE

Reading Intelligently ... DONE

Seeker Seeker 2 ... 1 ... Seeker 3 ... Start 'EM ... DONE ... DONE ... DONE ...

------- Sequential Output -------- --- Sequential Input-- --radom -

-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

Jump 2046 40652 95.5 106768 56.1 75673 90.9 43356 99.4 314381 99.8 17347.3 160.5

RAID5 The character write speed has reached 40652k / sec, and it is slightly fast than RAID1 0, and the block mode writes RAID1 0 compared to RAID5 slightly.

In fact, EMC has always emphasized its RAID5 read and write performance than RAID1 0 is different.

转载请注明原文地址:https://www.9cbs.com/read-115946.html

New Post(0)