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 > Informix > Lock Requests

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-11-08, 11:16
mcrutcher mcrutcher is offline
Registered User
 
Join Date: Jun 2008
Posts: 16
Lock Requests

When I run an onstat -p on Informix 9.21 UC5 on Solaris, I get over 800000000 lockreqs, but when I run the following query against the sysmaster database, I get less than 300000000. Where is onstat -p getting it's information on lockreqs?


select SUM(lockreqs) from syssesprof;


Mark
Reply With Quote
  #2 (permalink)  
Old 07-14-08, 13:13
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
the onstat -p is the same from sysmaster:sysprofile.
This is all acumulative data.

if you sum the locks from session profile... you are getting how much locks are requested over the ACTIVE sessions.
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #3 (permalink)  
Old 07-16-08, 17:09
mcrutcher mcrutcher is offline
Registered User
 
Join Date: Jun 2008
Posts: 16
Lock Requests

Actually, I would like to know how many lock requests there are at any moment in time by the active sessions. If I sum up the lockreqs in syssesprof, that will give me the number of requests made by the current session during their entire session---how would I get a snapshot of the total lock requests being made at a particular moment in time?

Mark
Reply With Quote
  #4 (permalink)  
Old 07-16-08, 19:49
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
Exactly what you want, is not possible .

The locks requests over the session profile is a acumulative information.

You have 2 ways (not a beautiful way, but, maybe work).

1) execute the "onstat -z" and refresh all statistics information (ALL statistics) and them you get how much locks requests are made over the session. (I strongly not recommend this option because if you need to monitor any other information will be an partial information).

2) execute the select over the syssesprof each time you want and calculate the difference between each one, them you will get how much locks are requested over this space of time.
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
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