IOzone Performance Test

Source: Internet
Author: User
Tags glusterfs gluster

Files directory cd/etc/yum.repos.d/iozone_smallfile/iozone3_429/src/current #这个文件自己建的 iozone_smallfile
-------------------------------------------------------------------------------------
Decompression Iozone3_429.tar

Tar xvf Iozone3_429.tar #解压
CD iozone3_429/src/current
1) [[Email protected]%ancunkj current]# Make

Note: 1.service iptables stop 2.  Gluster Volume Status 3. Gluster Peer Status
----------------------------------------------------------------------------------------------

2) [[email protected]%ancunkj current]# make LINUX-AMD64
This step will generate a IOzone file.
--------------------------------------------------------------------------
3) [[email protected]%ancunkj current]# CP Iozone/usr/local/bin # Copy to this directory Cp/usr/local/bin
-----------------------------------------------------------------------------------
4) Get valid data to create mkdir Dht-iozone

[[Email protected]%ancunkj current]# iozone-w-c-e-I 0-+n-r 64k-s 1g-t 8-f/mnt/dht-iozone/f{0,1,2,3,4,5,6,7,}.ioz

Each process writes a 1048576 kByte file in KByte Records

Children see throughput for 8 initial writers = 106134.47 kb/sec
Parent sees throughput for 8 initial writers = 100011.67 kb/sec
Min throughput per process = 12636.07 Kb/sec
Max throughput per process = 13979.25 Kb/sec
AVG throughput per process = 13266.81 Kb/sec
Min Xfer = 947584.00 KB

IOzone test Complete.
[[Email protected]%ancunkj current]#
-----------------------------------------------------------------------------------------------
Execute command Create mkdir dht-iozone-client
[Email protected]%ancunkj current]# iozone-w-c-e-I 0-+n-r 64k-s 1g-t 8-f/mnt/dht-iozone-client/f{0,1,2,3,4,5,6, 7,}.ioz

Each process writes a 1048576 kByte file in KByte Records

Children see throughput for 8 initial writers = 105563.73 kb/sec
Parent sees throughput for 8 initial writers = 98941.44 kb/sec
Min throughput per process = 12299.78 Kb/sec
Max throughput per process = 13963.33 Kb/sec
AVG throughput per process = 13195.47 Kb/sec
Min Xfer = 923584.00 KB

IOzone test Complete.
[[Email protected]%ancunkj current]#
--------------------------------------------------------------------------------------------------------------- ------------
The above two steps, tested performance, is equivalent to a client concurrent 8 thread
--------------------------------------------------------------------------------------------------------------- ------------

i--test Type, 0 = write, 1 = read, 2 = Random read/write.
t--number of threads concurrent how many sub-processes will issue I/O requests.

[[Email protected]%ancunkj current]# iozone-w-c-e-I 0-+n-r 64k-s 1g-t 8-f/mnt/dht-iozone-client/f0.ioz
/mnt/dht-iozone-client/f1.ioz/mnt/dht-iozone-client/f2.ioz/mnt/dht-iozone-client/f3.ioz
/mnt/dht-iozone-client/f4.ioz/mnt/dht-iozone-client/f5.ioz/mnt/dht-iozone-client/f6.ioz/mnt/dht-iozone-client/ F7.ioz

Each process writes a 1048576 kByte file in KByte Records

Children see throughput for 8 initial writers = 97479.45 kb/sec
Parent sees throughput for 8 initial writers = 95655.19 kb/sec
Min throughput per process = 12028.28 Kb/sec
Max throughput per process = 12423.91 Kb/sec
AVG throughput per process = 12184.93 Kb/sec
Min Xfer = 1016640.00 KB

IOzone test Complete.
--------------------------------------------------------------------------------------------------------------- --------------------

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

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

IOzone Test Ec8-2
-----------------------------------------------------------------------------

Iozone-w-C-E-I 0-+n-r 64k-s 1g-t 8-f/mnt/glusterfs/f{0,1,2,3,4,5,6,7,8}.ioz
Iozone-w-C-E-I 0-+n-r 128k-s 1g-t 9-f/mnt/glusterfs/f{0,1,2,3,4,5,6,7,8,9}.ioz

1 threads
Iozone-w-C-E-I 0-+n-r 256k-s 1g-t 1-f/mnt/ec82-hf1-client/f{mn1}.ioz # File Size =256k
2 Threads

4 Threads

8 Threads
16 Threads


Iozone-w-C-E-I 0-+n-r 128k-s 1g-t 1-f/mnt/glusterfs/f{mn1}.ioz What's wrong with a thread?
Iozone-w-C-E-I 1-+n-r 128k-s 1g-t 1-f/mnt/glusterfs/f{mn1}.ioz
Iozone-w-C-E-I 2-+n-r 128k-s 1g-t 1-f/mnt/glusterfs/f{mn1}.ioz


Iozone-b client1-w-c-e-I 0-+n-r 128k-s 1g-t 9-f/mnt/dht-client-new/f{0,1,2,3,4,5,6,7,8,9}.ioz
-----------------------------------------------------------------------------------------------
[[Email protected]%ancunkj glusterfs-3.6.1]# service iptables Stop #这个比较注意
-----------------------------------------------------------------------------------------------
For i in SEQ 0 9; Do ssh vn$i "service iptables stop"; Done #停止一下

Cn0-6 using ec4-3 mode?

First, the cluster
[Email protected]%ancunkj/]# Gluster peer probe Cn0
Gluster Peer probe Cn1
Gluster Peer probe Cn2
Gluster Peer probe Cn3
Gluster Peer probe Cn4
Gluster Peer probe Cn5
Gluster Peer probe Cn6

[Email protected]%ancunkj/]# gluster Peer status #看一下

Second, volume
[[Email protected]%ancunkj/]# gluster Volume create vol-server Strip 6 Cn0:/mnt/vol-server1 cn1:/mnt/vol-server1 cn2:/mn T/vol-server1 Cn3:/mnt/vol-server1 Cn4:/mnt/vol-server1
Cn5:/mnt/vol-server1 Cn6:/mnt/vol-server1 Force

III) Mount
[Email protected]%ancunkj mnt]# mount-t glusterfs mn0/mnt/strip-client/


Four
1) EC Construction
[[Email protected]%ancunkj mnt]# gluster Volume create ec4-3 disperse 5 redundancy 3
Cn0:/mnt/ec4-3-server cn1:/mnt/ec4-3-server cn2:/mnt/ec4-3-server cn3:/mnt/ec4-3-server cn4:/mnt/ec4-3-server cn5:/ Mnt/ec4-3-server Cn6:/mnt/ec4-3-server
Cn7:/mnt/ec4-3-server cn8:/mnt/ec4-3-server cn9:/mnt/ec4-3-server Force

2) Start ec4-3 mode
[[Email protected]%ancunkj mnt]# gluster volume start ec4-3

3) Create Ec-client file on Mn1
[Email protected]%ancunkj mnt]# mkdir ec-client

4) Mount
[Email protected]%ancunkj mnt]# mount-t glusterfs cn0:/mnt/ec4-3 mn0:/mnt/ec-client


Iozone-w-C-E-I 1-+n-r 128k-s 1g-t 1-f/mnt/glusterfs/f{mn1}.ioz
Iozone-w-C-E-I 1-+n-r 128k-s 1g-t 2-f/mnt/glusterfs/f{mn1}.ioz
Iozone-w-C-E-I 1-+n-r 128k-s 1g-t 4-f/mnt/glusterfs/f{mn1}.ioz
Iozone-w-C-E-I 1-+n-r 128k-s 1g-t 8-f/mnt/glusterfs/f{mn1}.ioz
Iozone-w-C-E-I 1-+n-r 128k-s 1g-t 16-f/mnt/glusterfs/f{mn1}.ioz

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


Perform cleanup
Echo 1 >/proc/sys/vm/drop_caches

[Email protected]%ancunkj mnt]# mkdir dht-iozone-client

./run.sh dht-new1 "vn2 vn3"/mnt/dht-server-new1 "vn2 vn3"/mnt/dht-client-new1 128K

./run.sh dht-new1 "cn2"/mnt/dht-server-1 "Cn0 cn1"/mnt/dht-client-1 128K


./smallfile.sh dht-new1 "cn2"/mnt/dht-server-1 "Cn0 cn1"/mnt/dht-client-1 2

The location of the file should be clear
[Email protected]%ancunkj] Cd/mnt/lk/iozone-scripts-lk/stop-and-delete-vol

[Email protected]%ancunkj/]# cd/usr/local/

[[Email protected]%ancunkj/]cd/etc/yum.repos.d/iozone_smallfile

Usr/local/bin/smallfile

./smallfile.sh:line:./stop-and-delete-vol:no such file or directory
Scp-r./stop-and-delete-vol Cn2:/etc/yum.repos.d/iozone_smallfile/smallfile-master

[Email protected]%ancunkj bin]# Yum Install expect

Check the Status of NFS
[[Email protected]%ancunkj mnt]# Service NFS Status
[[Email protected]%ancunkj mnt]# Service NFS Restart

/vol2 192.168.1.0/24 (Rw,insecure,sync,no_root_squash)
Settings for/etc/exports
Then execute Exportfs-ar
The client should be ready to mount.
Tested by
It has to be in the form of 0/24.

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

IOzone Performance Test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.