LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-05-2012, 07:21 PM   #1
gdtm86@gmail.com
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
What is the best way to investigate I/O performance issues?


All,

I have been reading about I/O monitoring using the commands like iostat, I see the numbers as below.But how to exactly determine at what numbers of tps and blks_read/s, blks_write/s, blk_read and blk_wrtn that I should be worrying about my I/O?


avg-cpu: %user %nice %system %iowait %steal %idle
18.47 0.00 3.37 1.50 0.00 75.79

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 5.13 54.42 62.16 716429654 818324689
sdb 1.90 53.31 33.36 701766492 439161792
sdc 20.13 115.79 0.61 1524333548 8085448
sdd 17.34 159.19 305.05 2095616964 4015769568
sde 94.33 305.71 194.14 4024341714 2555628160
sdf 0.00 0.00 0.00 45536 0
sdg 1.39 121.54 325.97 1600003486 4291054424
dm-0 0.18 20.10 1.01 264637438 13332840
dm-2 1.19 1.01 9.38 13306122 123450464
dm-3 80.15 0.37 314.80 4925530 4144126664
dm-4 0.51 0.09 4.01 1170674 52849384
dm-5 0.05 0.05 0.35 596386 4580104
dm-6 0.08 0.06 0.63 782970 8332944
dm-7 7.46 16.56 34.04 218062994 448063712
dm-8 8.03 61.96 53.75 815686650 707520240
dm-9 3.83 147.63 23.32 1943456178 306931096


Best Regards,
gdtm86
 
Old 06-05-2012, 09:36 PM   #2
dru8274
Member
 
Registered: Oct 2011
Location: New Zealand
Distribution: Debian
Posts: 105

Rep: Reputation: 37
Quote:
Originally Posted by gdtm86@gmail.com View Post
But how to exactly determine at what numbers of tps and blks_read/s, blks_write/s, blk_read and blk_wrtn that I should be worrying about my I/O?

avg-cpu: %user %nice %system %iowait %steal %idle
18.47 0.00 3.37 1.50 0.00 75.79

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 5.13 54.42 62.16 716429654 818324689
sdb 1.90 53.31 33.36 701766492 439161792
I believe the key here is iowait. It shows the percentage of time that the cpu is sitting idle, while it is waiting for an outstanding i/o request. To quote from this blog post...
Quote:
...is to determine whether an application is cpu-bound / memory-bound / IO bound. IO bound applications end up wasting cpu cycles, especially incase of Disk IO. Therefore in order to maximize performance and optimize resource utilization one should try and reduce iowait time of a CPU and tweak a deployment to make an application cpu-bound.
So I suggest that you plot %iowait against time. And if your iowait stays low, then your disk i/o perf. is okay. But if iowait increases, then your cpu is waiting for disk i/o to catch up. And that is when you need to start to worry about your disk i/o performance.
 
1 members found this post helpful.
Old 06-05-2012, 10:02 PM   #3
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 2,264

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
You can use atop. It'll show you where things are bottlenecking.
 
Old 06-06-2012, 01:29 AM   #4
gdtm86@gmail.com
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you dru8274.

I read the link you posted and it is a nice article. It looks like I should be watching for %iowait and then also definitely look at the %util of the specific block device to see the bandwidth utilization.

Also Is there a way to compare the number of I/O operations(transactions)/sec on the device to max operations(transactions)/sec a device(scsi,ATA,ssd)can handle? I was wondering that could be a good indicator to see how busy the device is.

Last edited by gdtm86@gmail.com; 06-06-2012 at 01:54 AM.
 
Old 06-06-2012, 02:00 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,526

Rep: Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039
Look at the doco for iostat - it'll give you everything you need.

Note that these are all averages, and iowait doesn't necessarily imply there is actually any process truly waiting on I/O. Merely that the CPU(s) was/were idle and there was I/O still to complete.
There may be a correlation, but it isn't guaranteed.
 
Old 06-06-2012, 07:51 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,356

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
You might want to activate sar http://linux.die.net/man/1/sar to collect/report statistics.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Performance issues Tylerious Slackware 11 09-22-2005 08:35 AM
Performance issues clergykid Linux - Newbie 4 12-07-2004 04:41 PM
Performance Issues Gort32 Linux - Software 1 10-19-2004 01:46 PM
Performance issues? gurusmaran Linux - Newbie 2 03-18-2004 07:36 AM


All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration