Unix Technical Forum

snapshot monitor performance issue.

This is a discussion on snapshot monitor performance issue. within the DB2 forums, part of the Database Server Software category; --> Hi all. I'm writing a performance analysis utility that uses the snapshot monitor C API to get statistics in ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 12:45 PM
Yaron Goldstein
 
Posts: n/a
Default snapshot monitor performance issue.

Hi all.
I'm writing a performance analysis utility that uses the snapshot
monitor C API to get statistics in the connection level. It seems that
the way I use the snapshot monitor is very inefficient : each snapshot
takes a few dozens of milliseconds and overall it consumes a lot of
CPU.
Is there a way to configure and optimize the snapshot utility ?
Is there an alternative to the snapshot monitor API ?
When working with Oracle, I'm using Oracle DMA to access the shared
memory myself, is there a way (not necessarily documented or
supported) to access DB2 shared memory and extract these statistics ?


TIA,
Yaron

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 12:45 PM
Serge Rielau
 
Posts: n/a
Default Re: snapshot monitor performance issue.

Yaron Goldstein wrote:
> Hi all.
> I'm writing a performance analysis utility that uses the snapshot
> monitor C API to get statistics in the connection level. It seems that
> the way I use the snapshot monitor is very inefficient : each snapshot
> takes a few dozens of milliseconds and overall it consumes a lot of
> CPU.
> Is there a way to configure and optimize the snapshot utility ?
> Is there an alternative to the snapshot monitor API ?
> When working with Oracle, I'm using Oracle DMA to access the shared
> memory myself, is there a way (not necessarily documented or
> supported) to access DB2 shared memory and extract these statistics ?

Take a look at db2pd and see whether is has what you need.
db2pd also reads memory directly.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 12:45 PM
Yaron Goldstein
 
Posts: n/a
Default Re: snapshot monitor performance issue.

Hi Serge,
thanks for you quick reply.


Is there a C/C++ API to db2pd ?
I couldn't find one.

10x
Yaron

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com