~ubuntu-branches/ubuntu/saucy/db5.3/saucy

« back to all changes in this revision

Viewing changes to debian/manpages/db5.2_deadlock.1

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý
  • Date: 2012-01-20 18:28:06 UTC
  • Revision ID: package-import@ubuntu.com-20120120182806-ncvacd7km1g4h3s6
Tags: 5.3.15-1
* Imported Upstream version 5.3.15
* Prepare db5.3 release
* Run all tests in the TCL suite
* s/sqlite/sqlite3/ in description of db5.3_sql
* Bump versioned symbols to DB5_3
* Update patches for new release
* Update saved db_signature on amd64
* Update lintian-overrides to not include dates for config.{sub,guess}

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" Manual Page for Berkely DB utils, created from upstream
 
2
.\" documentation by Thijs Kinkhorst <thijs@kinkhorst.com>.
 
3
.TH DB5.2_DEADLOCK 1 "28 January 2005"
 
4
.SH NAME
 
5
db5.2_deadlock \- Detect and abort deadlocks
 
6
.SH SYNOPSIS
 
7
.B db5.2_deadlock
 
8
[-Vv] [-a e | m | n | o | W | w | y] [-h home] [-L file] [-t sec.usec]
 
9
.SH DESCRIPTION
 
10
The db5.2_deadlock utility traverses the database environment lock region, and
 
11
aborts a lock request each time it detects a deadlock or a lock request that
 
12
has timed out. By default, in the case of a deadlock, a random lock request is
 
13
chosen to be aborted.
 
14
.PP
 
15
This utility should be run as a background daemon, or the underlying Berkeley
 
16
DB deadlock detection interfaces should be called in some other way, whenever
 
17
there are multiple threads or processes accessing a database and at least one
 
18
of them is modifying it.
 
19
.SH OPTIONS
 
20
.IP \fB\-a\fR
 
21
When a deadlock is detected, abort the locker:
 
22
.RS
 
23
.IP m
 
24
with the most locks
 
25
.IP n
 
26
with the fewest locks
 
27
.IP o
 
28
with the oldest lock
 
29
.IP W
 
30
with the most write locks
 
31
.IP w
 
32
with the fewest write locks
 
33
.IP y
 
34
with the youngest lock
 
35
.RE
 
36
.IP
 
37
When lock or transaction timeouts have been specified:
 
38
.RS
 
39
.IP e
 
40
abort any lock request that has timed out
 
41
.RE
 
42
.IP \fB\-h\fR
 
43
Specify a home directory for the database environment; by
 
44
default, the current working directory is used.
 
45
.IP \fB\-L\fR
 
46
Log the execution of the db5.2_deadlock utility to the specified file in the
 
47
following format, where \fI###\fR is the process ID, and the date
 
48
is the time the utility was started.
 
49
.sp
 
50
.TP 8
 
51
db_deadlock: ### Wed Jun 15 01:23:45 EDT 1995
 
52
.sp
 
53
This file will be removed if the db5.2_deadlock utility exits gracefully.
 
54
.IP \fB\-t\fR
 
55
Check the database environment every \fBsec\fR seconds plus
 
56
\fBusec\fR microseconds to see if a process has been forced to wait
 
57
for a lock; if one has, review the database environment lock
 
58
structures.
 
59
.IP \fB\-V\fR
 
60
Write the library version number to the standard output, and exit.
 
61
.IP \fB\-v\fR
 
62
Run in verbose mode, generating messages each time the detector runs.
 
63
.PP
 
64
If the \fB-t\fR option is not specified, db5.2_deadlock will
 
65
run once and exit.
 
66
.PP
 
67
The db5.2_deadlock utility uses a Berkeley DB environment (as described for the
 
68
\fB-h\fR option, the environment variable \fBDB_HOME\fR, or
 
69
because the utility was run in a directory containing a Berkeley DB
 
70
environment).  In order to avoid environment corruption when using a
 
71
Berkeley DB environment, db5.2_deadlock should always be given the chance to
 
72
detach from the environment and exit gracefully.  To cause db5.2_deadlock
 
73
to release all environment resources and exit cleanly, send it an
 
74
interrupt signal (SIGINT).
 
75
.PP
 
76
The db5.2_deadlock utility does not attempt to create the Berkeley DB
 
77
shared memory regions if they do not already exist.  The application
 
78
which creates the region should be started first, and then, once the
 
79
region is created, the db5.2_deadlock utility should be started.
 
80
.PP
 
81
The DB_ENV->lock_detect method is the underlying method used by the
 
82
db_deadlock utility. See the db_deadlock utility source code for an
 
83
example of using DB_ENV->lock_detect
 
84
in a IEEE/ANSI Std 1003.1 (POSIX) environment.
 
85
.PP
 
86
The db5.2_deadlock utility exits 0 on success, and >0 if an error occurs.
 
87
.PP
 
88
.SH ENVIRONMENT
 
89
.IP \fBDB_HOME\fR
 
90
If the \fB-h\fR option is not specified and the environment variable
 
91
DB_HOME is set, it is used as the path of the database home, as described
 
92
in DB_ENV->open.
 
93
.SH AUTHORS
 
94
Sleepycat Software, Inc. This manual page was created based on
 
95
the HTML documentation for db_deadlock from Sleepycat,
 
96
by Thijs Kinkhorst <thijs@kinkhorst.com>,
 
97
for the Debian system (but may be used by others).