If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > tracking io

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-19-11, 10:13
rajaraja_cholan rajaraja_cholan is offline
Registered User
 
Join Date: Dec 2008
Posts: 31
tracking io

I want to keep track of io statistics from DB2 - what I mean is that I don't want to track io from OS point of view (don't want to use iostat, lparstat, topas, etc.). Does DB2 have any snapshot/table function/admin view for io metrics?

the reason I don't want OS level tracking is that it shows values for the system as a whole, while I am interested only from DB2 point of view.

Please provide your inputs, appreciate it.
Reply With Quote
  #2 (permalink)  
Old 07-20-11, 01:17
singhipst singhipst is offline
Registered User
 
Join Date: Jul 2006
Location: Bangalore
Posts: 57
I used below query to find IO. Might be helpful for you

Code:
select 
to_char(current timestamp,'HH:MI:SS') as time,
sum(DIRECT_READ_REQS) as DIRECT_READ_REQS, 
sum(DIRECT_WRITE_REQS) as DIRECT_WRITE_REQS,
sum(pool_data_l_reads + pool_temp_data_l_reads + pool_index_l_reads + pool_temp_index_l_reads + pool_xda_l_reads + pool_temp_xda_l_reads) as logical_reads,
sum(pool_data_p_reads + pool_temp_data_p_reads + pool_index_p_reads + pool_temp_index_p_reads + pool_xda_p_reads + pool_temp_xda_p_reads) as physical_reads,
sum((pool_data_writes + pool_index_writes + pool_xda_writes)) as TOTAL_WRITES
from table(SYSPROC.MON_GET_BUFFERPOOL('',-1));
__________________
Ritesh Kumar Singh
IBM Certified DB2 DBA for LUW
**Knowledge Is Theft If Not Shared !!**
Reply With Quote
  #3 (permalink)  
Old 07-20-11, 06:46
shubin_du shubin_du is offline
Registered User
 
Join Date: Feb 2009
Location: Germany
Posts: 23
it's not clear if you need the i/o stats only at the db level or at the session level or at the sql level. you can get the i/o information from many views, for example

select * from sysibmadm.snapdb
select * from sysibmadm.snapappl
select * from sysibmadm.snapdyn_sql
select * from sysibmadm.bp_read_io
select * from sysibmadm.snapstmt
select * from sysibmadm.snaptbsp
select * from sysibmadm.snapbp

the full description can be found in documentation "Administrative Routines and Views"

Regards
Sergey
Reply With Quote
  #4 (permalink)  
Old 07-21-11, 09:29
rajaraja_cholan rajaraja_cholan is offline
Registered User
 
Join Date: Dec 2008
Posts: 31
Thanks for the reply singhipst & shubin_du, I will look into monitor proc and snapshot views
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On