Tuesday, December 30, 2014

Installing ioping

Sometimes, I am using this tool as a real time IOPS monitoring tool. It is a lightweight version of Orion from the database perspective.

Download ioping. 

https://code.google.com/p/ioping/downloads/list


Logon as root and download the ioping tool


[root@Cloud2 ioping]# wget https://ioping.googlecode.com/files/ioping-0.8.tar.gz
--2014-12-30 16:05:17--  https://ioping.googlecode.com/files/ioping-0.8.tar.gz
Resolving ioping.googlecode.com... 74.125.25.82, 2607:f8b0:400e:c03::52
Connecting to ioping.googlecode.com|74.125.25.82|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10590 (10K) [application/x-gzip]
Saving to: `ioping-0.8.tar.gz'

100%[================================================================================>] 10,590      62.2K/s   in 0.2s

2014-12-30 16:05:18 (62.2 KB/s) - `ioping-0.8.tar.gz' saved [10590/10590]


Extract the tool

[root@Cloud2 ioping]# tar -zxvf ioping-0.8.tar.gz
ioping-0.8/version
ioping-0.8/ioping.c
ioping-0.8/ioping.1
ioping-0.8/README
ioping-0.8/changelog
ioping-0.8/ioping.spec
ioping-0.8/Makefile


[root@Cloud2 ioping]# ls -lrt
total 24
-rw-r--r-- 1 root root 10590 Dec 30  2013 ioping-0.8.tar.gz
drwxr-xr-x 2 root root  4096 Dec 30 16:06 ioping-0.8


[root@Cloud2 ioping]# cd ioping-0.8
[root@Cloud2 ioping-0.8]# ls -lrt
total 80
-rw-r--r-- 1 1000 1000  1232 Jan 25  2013 ioping.spec
-rw-r--r-- 1 1000 1000   421 Dec 29  2013 README
-rw-r--r-- 1 1000 1000   477 Dec 29  2013 changelog
-rw-r--r-- 1 1000 1000  4331 Dec 29  2013 ioping.1
-rw-r--r-- 1 1000 1000 23033 Dec 29  2013 ioping.c
-rw-r--r-- 1 1000 1000  1493 Dec 29  2013 Makefile
-rw-r--r-- 1 1000 1000     4 Dec 30  2013 version


Build the tool


[root@Cloud2 ioping-0.8]# make ioping
cc -std=gnu99 -g -Wall -Wextra -pedantic -DVERSION=\"0.8\" -c -o ioping.o ioping.c
cc -o ioping ioping.o -std=gnu99 -g -Wall -Wextra -pedantic  -lm
[root@Cloud2 ioping-0.8]# ls -las
total 192
 8 drwxr-xr-x 2 root root  4096 Dec 30 16:09 .
 8 drwxr-xr-x 3 root root  4096 Dec 30 16:06 ..
 8 -rw-r--r-- 1 1000 1000   477 Dec 29  2013 changelog
44 -rwxr-xr-x 1 root root 39311 Dec 30 16:09 ioping
12 -rw-r--r-- 1 1000 1000  4331 Dec 29  2013 ioping.1
28 -rw-r--r-- 1 1000 1000 23033 Dec 29  2013 ioping.c
52 -rw-r--r-- 1 root root 47200 Dec 30 16:09 ioping.o
 8 -rw-r--r-- 1 1000 1000  1232 Jan 25  2013 ioping.spec
 8 -rw-r--r-- 1 1000 1000  1493 Dec 29  2013 Makefile
 8 -rw-r--r-- 1 1000 1000   421 Dec 29  2013 README
 8 -rw-r--r-- 1 1000 1000     4 Dec 30  2013 version
[root@Cloud2 ioping-0.8]#


Run the tool


[root@Cloud2 ioping-0.8]# ./ioping -c 10 -s 1M /tmp
1.0 MiB from /tmp (ext3 /dev/root): request=1 time=53.7 ms
1.0 MiB from /tmp (ext3 /dev/root): request=2 time=68.7 ms
1.0 MiB from /tmp (ext3 /dev/root): request=3 time=53.7 ms
1.0 MiB from /tmp (ext3 /dev/root): request=4 time=61.5 ms
1.0 MiB from /tmp (ext3 /dev/root): request=5 time=53.2 ms
1.0 MiB from /tmp (ext3 /dev/root): request=6 time=57.3 ms
1.0 MiB from /tmp (ext3 /dev/root): request=7 time=54.4 ms

Read the manual and see what's interest you.

No comments:

Post a Comment