Article Title: LinuxIO performance testing. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The system configuration in the development environment is as follows:
Intel SR1625 server , 2 CPU, 32 GB memory, raid1 + 7200 x SATA hard drive with built-in card of the motherboard
The operating system is RHEL 5.3 64-bit
Because the physical memory is 32 GB, more than 60 GB of data is used for testing throughout the process to avoid cache impact.
1. First test the block size with the built-in dd command. The block size is 8 KB.
Dd can only provide one approximate test result, and it is continuous IO instead of random IO.
Read Test
# Time dd if =/dev/sda2 f =/dev/null bs = 8 kcount = 8388608
8388608 + 0 records in
8388608 + 0 records out
68719476736 bytes (69 GB) copied, 516.547 seconds, 133 MB/s
Real 8m36. 926 s
User 0m0. 117 s
Sys 0m55. 216 s
Write Test
# Time dd if =/dev/zero f =/opt/iotest bs = 8 k count = 8388608
8388608 + 0 records in
8388608 + 0 records out
68719476736 bytes (69 GB) copied, 888.398 seconds, 77.4 MB/s
Real 14m48. 743 s
User 0m3. 678 s
Sys 2m47. 158 s
Read/write Test
# Time dd if =/dev/sda2 f =/opt/iotest bs = 8 k count = 8388608
8388608 + 0 records in
8388608 + 0 records out
68719476736 bytes (69 GB) copied, 1869.89 seconds, 36.8 MB/s
Real 31m10. 343 s
User 0m2. 613 s
Sys 3m25. 548 s
2. Use Oracle Orion Tool to test
Decompress the package.
# Gzip orion_linux_x86-64.gz
Libaio library is required for asynchronous IO Testing
# Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/lib64
# Echo $ LD_LIBRARY_PATH
:/Opt/oracle/product/10.2.0/lib:/usr/lib64
Create the configuration file mytest. lun and list the partitions to be tested. Note that the file name prefix must be consistent with the following testname
# Vi mytest. lun
View mytest. jun content
# Cat mytest. lun
/Dev/sda2
Let's start with simple test.
#./Orion_linux_x86-64-run simple-testname mytest-num_disks 8
View test results
# Cat mytest_20081111_1431_summary.txt
Orion version 11.1.0.7.0
Commandline:
-Run simple-testname mytest-num_disks 8
This maps to this test:
Test: mytest
Small IO size: 8 KB
Large IO size: 1024 KB
IO Types: Small Random IOs, Large Random IOs
Simulated Array Type: CONCAT
Write: 0%
Cache Size: Not Entered
Duration for each Data Point: 60 seconds
Small Columns:, 0
Large Columns:, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
Total Data Points: 38
Name:/dev/sda2 Size: 629143441920
1 FILEs found.
Maximum Large MBPS = 56.97 @ Small = 0 and Large = 7
Maximum Small IOPS = 442 @ Small = 40 and Large = 0
Minimum Small Latency = 14.62 @ Small = 1 and Large = 0
The maximum IOPS is 56.97, and the maximum IOPS is 442.
[1] [2] [3] [4] Next page