用bonnie測試硬碟
最近測試陣列櫃,學習了三個程式,分別是:
iozone,xdd,bonnie
總的來說,各有優缺點。
iozone命令測試的專案比較多,結果也比較多,需要耐心察看,但是不能測試裸裝置。
xdd可以測試裸裝置,但是可以察看的結果指標也比較少。
bonnie也不能測試裸裝置,相對於iozone來說專案結果比較少,相對比較清晰。
下面看一下bonnie的用法。
1,下載程式.
2,解壓:
[root@test root]# tar -zxvf bonnie.tar.gz
Makefile
Instructions
Bonnie.c
bonnie.1
3,編譯:
[root@test bonnie]# ls -al
總用量 40
drwxr-xr-x 2 root root 4096 5?? 11 21:46 .
drwxr-x--- 15 root root 4096 5?? 11 21:46 ..
-rw-rw-r-- 1 468 ftp 2451 1996-08-29 bonnie.1
-rw-r--r-- 1 468 ftp 17816 1996-08-29 Bonnie.c
-rw-r--r-- 1 468 ftp 551 1996-08-29 Instructions
-rw-r--r-- 1 468 ftp 237 1996-08-29 Makefile
[root@test 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 `/root/bonnie'
cc -O Bonnie.c -o Bonnie
make[1]: Leaving directory `/root/bonnie'
[root@test bonnie]# ls
Bonnie bonnie.1 Bonnie.c Instructions Makefile
4,命令非常簡單,只有幾個選項:
The Bonnie command line, given here in Unix style, is:
Bonnie [-d scratch-dir] [-s size-in-Mb] [-m machine-label] [-html]
All the things enclosed in square brackets may be left out. The meaning of the things on this line is:
Bonnie
The name of the program. You might want to give it a different name. If you are sitting in the same directory as the program, you might have to use something like ./Bonnie.
-d scratch-dir
The name of a directory; Bonnie will write and read scratch files in this directory. Bonnie does not do any special interpretation of the directory name, simply uses it as given. Suppose you used -d /raid1/TestDisk; Bonnie would write, then read back, a file whose name was something like /raid1/TestDisk/Bonnie.34251.
If you do not use this option, Bonnie will write to and read from a file in the current directory, using a name something like ./Bonnie.35152.
Bonnie does clean up by removing the file after using it; however, if Bonnie dies in the middle of a run, it is quite likely that a (potentially very large) file will be left behind.
-s size-in-Mb
The number of megabytes to test with. If you do not use this, Bonnie will test with a 100Mb file. In this discussion, Megabyte means 1048576 bytes. If you have a computer that does not allow 64-bit files, the maximum value you can use is 2047.
It is important to use a file size that is several times the size of the available memory (RAM) - otherwise, the operating system will cache large parts of the file, and Bonnie will end up doing very little I/O. At least four times the size of the available memory is desirable.
-m machine-label
This is the label that Bonnie will use to label its report. If you do not use this, Bonnie will use no label at all.
-html
If you use this, Bonnie will generate a report in HTML form, as opposed to plain text. This is not all that useful unless you are prepared to write a table header.
5,測試:
[root@test bonnie]# ./Bonnie -d /root -s 2048 -m jump
File too large for 32-bit machine, sorry
第一次出現錯誤,看作者的命令說明就知道了。
[root@test bonnie]# ./Bonnie -d /root -s 2046 -m jump
File '/root/Bonnie.24943', size: 2145386496
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
jump 2046 13597 93.4 24547 17.8 12959 9.0 9682 59.7 32970 9.6 226.0 1.9
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/312079/viewspace-245660/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 用bonnie++測試磁碟I/O
- 硬碟測試工具fio用法總結硬碟
- 測試測試用
- 測試面試-測試用例面試
- SMART Utility for mac (硬碟檢測) 3.2.7啟用版Mac硬碟
- 測試——水杯的測試用例
- 測試用例和測試方法
- 測試用例
- 【星雲測試】開發者測試-採用精準測試工具對SpringBoot應用進行測試Spring Boot
- 【黑盒測試】測試用例的常用方法
- WUH721816AL硬碟fio測試不達標問題硬碟
- 固態硬碟掉電保護的原理及測試方法硬碟
- 【星雲測試】開發者測試-採用精準測試工具對Spring Boot應用進行測試Spring Boot
- 測試用例—教室
- 【5】測試用例
- 開發者測試-採用精準測試工具對Spring Boot應用進行測試Spring Boot
- 如何測試 Flutter 應用? ー 單元測試Flutter
- windev28 試用版 測試dev
- 【星雲測試】開發者測試(3)-採用精準測試工具對springcloud微服務應用進行穿透測試SpringGCCloud微服務穿透
- 【功能測試】兩部電梯的測試用例
- APP測試設計測試用例的要點APP
- PR效能測試軟體適用於哪些測試
- Android應用程式測試-Alltesting|澤眾雲測試Android
- 萬能測試用例及測試用例編寫方法(待更新)
- 手工測試用例與自動化測試用例的區別
- windows10硬碟怎麼檢測_win10硬碟檢測的方法Windows硬碟Win10
- 開發者測試(4)-採用精準測試工具對dubbo微服務應用進行測試微服務
- 測試測試測試測試測試測試
- junit測試工具運用
- postman寫測試用例Postman
- 測試用例的方法
- 黑盒測試用例二
- 面經-測試用例
- SMART Utility for mac (硬碟檢測)Mac硬碟
- linux下如何使用檔案來模擬硬碟進行ASM測試Linux硬碟ASM
- 開發者測試(3)-採用精準測試工具對springcloud微服務應用進行穿透測試SpringGCCloud微服務穿透
- Smartmontools工具檢測Linux硬碟狀況 - 安裝及基本應用Linux硬碟
- 介面測試用例編寫和測試關注點
- 探索性測試的分類與測試用例