473,378 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

victim selection

Hi,

does anybody know, how victim selection is performed
within DB2 UDB 8.1if a deadlock occurs ?

One of these ?

a.. current blocker
a.. youngest XACT
a.. least resources used
a.. fewest locks held (common)
a.. fewest number of restarts

Thx
Christoph
Nov 12 '05 #1
3 2515
From the "Administration Guide: Performance":
The deadlock detector arbitrarily selects one of the applications in the
deadlock and releases the locks currently held by that "volunteered"
application.

I wouldn't be surprised to see the mechanism used to choose which one
gets cancelled change with a fixpack. This is an internal decision
process that need not be documented beyond what is in the manuals.

The simplest way to avoid most deadlocks is to establish a shopwide
fixed ordering list for accessing tables. If all applications always
access tables using the same ordering of table access, deadlocks should
be minimized. Designing applications to avoid obtaining locks and
holding them for long periods of time is another major component of
deadlock avoidance.
Philip Sherman

Christoph Zeltner wrote:
Hi,

does anybody know, how victim selection is performed
within DB2 UDB 8.1if a deadlock occurs ?

One of these ?

a.. current blocker
a.. youngest XACT
a.. least resources used
a.. fewest locks held (common)
a.. fewest number of restarts

Thx
Christoph


Nov 12 '05 #2
I could tell you but then I would have to shoot myself :)

--

Bob
Engagement Specialist - DB2 Information Management Software - IBM Software Group
IBM Toronto Lab
[My comments are solely my own and are not meant to represent an official IBM position -
ask my cat!]
"Philip Sherman" <ps******@ameritech.net> wrote in message
news:or******************@newssvr19.news.prodigy.c om...
From the "Administration Guide: Performance":
The deadlock detector arbitrarily selects one of the applications in the
deadlock and releases the locks currently held by that "volunteered"
application.

I wouldn't be surprised to see the mechanism used to choose which one
gets cancelled change with a fixpack. This is an internal decision
process that need not be documented beyond what is in the manuals.

The simplest way to avoid most deadlocks is to establish a shopwide
fixed ordering list for accessing tables. If all applications always
access tables using the same ordering of table access, deadlocks should
be minimized. Designing applications to avoid obtaining locks and
holding them for long periods of time is another major component of
deadlock avoidance.
Philip Sherman

Christoph Zeltner wrote:
Hi,

does anybody know, how victim selection is performed
within DB2 UDB 8.1if a deadlock occurs ?

One of these ?

a.. current blocker
a.. youngest XACT
a.. least resources used
a.. fewest locks held (common)
a.. fewest number of restarts

Thx
Christoph

Nov 12 '05 #3
I always thought it was "choose the person who will be most affected and
most annoyed by being chosen".
Your response implies I'm right :-)

"Bob [IBM]" <Bo******@canada.com> wrote in message
news:2v*************@uni-berlin.de...
I could tell you but then I would have to shoot myself :)

--

Bob
Engagement Specialist - DB2 Information Management Software - IBM Software
Group
IBM Toronto Lab
[My comments are solely my own and are not meant to represent an official
IBM position -
ask my cat!]
"Philip Sherman" <ps******@ameritech.net> wrote in message
news:or******************@newssvr19.news.prodigy.c om...
From the "Administration Guide: Performance":
The deadlock detector arbitrarily selects one of the applications in the
deadlock and releases the locks currently held by that "volunteered"
application.

I wouldn't be surprised to see the mechanism used to choose which one
gets cancelled change with a fixpack. This is an internal decision
process that need not be documented beyond what is in the manuals.

The simplest way to avoid most deadlocks is to establish a shopwide
fixed ordering list for accessing tables. If all applications always
access tables using the same ordering of table access, deadlocks should
be minimized. Designing applications to avoid obtaining locks and
holding them for long periods of time is another major component of
deadlock avoidance.
Philip Sherman

Christoph Zeltner wrote:
> Hi,
>
> does anybody know, how victim selection is performed
> within DB2 UDB 8.1if a deadlock occurs ?
>
> One of these ?
>
> a.. current blocker
> a.. youngest XACT
> a.. least resources used
> a.. fewest locks held (common)
> a.. fewest number of restarts
>
> Thx
> Christoph
>
>


Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Martin Karlsson | last post by:
Hi guys, Does anyone know how I can restore a selection created with createRange()? The problem is that I have a function that opens a new window with window.open() which of course makes the...
15
by: lawrence | last post by:
Is this the correct way to test for a method before I use it? createRange() is, I believe, an IE only method. function wrapSelectionInTag(selection, tag) { if (document.selection.createRange)...
1
by: bob | last post by:
I asked a question yesterday about how I would parse a Word document using functions in some Interop.Word COM. Some told me to run a macro in Word to see how it works. Most of the code was......
5
by: STeve | last post by:
Hey guys, I currently have a 100 page word document filled with various "articles". These articles are delimited by the Style of the text (IE. Heading 1 for the various titles) These articles...
1
by: 4Ankit | last post by:
Hey guys i am having some trouble with nesting one selection structure within another selection structure. At the moment i am unclear what selection structures are and just need a simple example of...
2
by: vanditnagar | last post by:
Hi, I am facing the difficulty in the selecting a text on the browser . And highlighting the text. I am using the window.getSelection() to get the object and after...
3
by: Venturini | last post by:
I am trying to put together a web page where the customer makes choices of products and is then given a total. I am extremely new to Javascript and have managed to get as far as I have from web...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.