Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
A question about L-LOCK in DB2 DATA SHARING ENVIRONMENT.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
haohao

New User


Joined: 23 May 2008
Posts: 35
Location: beijing China

PostPosted: Wed Mar 24, 2010 12:24 pm    Post subject: A question about L-LOCK in DB2 DATA SHARING ENVIRONMENT.
Reply with quote

WHEN I RUN a bacth program with a plan bound with RELEASE(COMMIT),
a lot of time consumed in DB2 PARENT L-LOCKS ,PM reprot as below:

GLOBAL CONTENTION L-LOCKS AVERAGE TIME AV.EVENT
------------------------------------- ------------ --------
L-LOCKS 3:23.599428 268.4K
PARENT (DB,TS,TAB,PART) 2:47.167313 211.7K
CHILD (PAGE,ROW) 12.726702 19375.00
OTHER 23.705414 37292.00


WHEN I run it with plan bound with RELEASE(deallocate),the
PARENT lock almost disappear,but child lock increased about 50%:

GLOBAL CONTENTION L-LOCKS AVERAGE TIME AV.EVENT
------------------------------------- ------------ --------
L-LOCKS 27.246866 30499.00
PARENT (DB,TS,TAB,PART) 0.037746 49.00
CHILD (PAGE,ROW) 27.172850 30403.00
OTHER 0.036270 47.00


I am very confusing about that,why page level lock amount can be different in
that two mode. there is no X,S lock applid at tablespace or table level,
so the page level lock amout should be equal in that mode. correct me if
I was wrong,thanks in advance!![/quote]
Back to top
View user's profile Send private message

sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Wed Mar 24, 2010 10:46 pm    Post subject:
Reply with quote

HaoHao,

As per the basic defination,
COMMIT - Releases locks at next commit point
Deallocate - Releases the acquired locks only when the program terminates

Meaning, when deallocate is used all the locks in hold till the program terminates and thus the contention.

Can you tell us what your ACQUIRE value was ?

Thanks,
Sushanth
Back to top
View user's profile Send private message
haohao

New User


Joined: 23 May 2008
Posts: 35
Location: beijing China

PostPosted: Thu Mar 25, 2010 4:24 pm    Post subject:
Reply with quote

my PLAN BOUND WITH ACQUIRE(USE).

I think ACQUIRE and RELEASE only apply to parent lock,and child lock will always be released when commit is issued. SO,the child lock amout should be equal, becase the DML amount is equal .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sharing PLI storage Pedro PL/I & Assembler 2 Mon Oct 16, 2017 10:11 pm
No new posts question about dfsms management clas... Hervey Martinez IBM Tools 0 Tue Oct 10, 2017 6:19 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us