1 | '\" t
|
---|
2 | .\" Title: ping_pong
|
---|
3 | .\" Author:
|
---|
4 | .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
|
---|
5 | .\" Date: 01/27/2016
|
---|
6 | .\" Manual: CTDB - clustered TDB database
|
---|
7 | .\" Source: ctdb
|
---|
8 | .\" Language: English
|
---|
9 | .\"
|
---|
10 | .TH "PING_PONG" "1" "01/27/2016" "ctdb" "CTDB \- clustered TDB database"
|
---|
11 | .\" -----------------------------------------------------------------
|
---|
12 | .\" * Define some portability stuff
|
---|
13 | .\" -----------------------------------------------------------------
|
---|
14 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
15 | .\" http://bugs.debian.org/507673
|
---|
16 | .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
---|
17 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
18 | .ie \n(.g .ds Aq \(aq
|
---|
19 | .el .ds Aq '
|
---|
20 | .\" -----------------------------------------------------------------
|
---|
21 | .\" * set default formatting
|
---|
22 | .\" -----------------------------------------------------------------
|
---|
23 | .\" disable hyphenation
|
---|
24 | .nh
|
---|
25 | .\" disable justification (adjust text to left margin only)
|
---|
26 | .ad l
|
---|
27 | .\" -----------------------------------------------------------------
|
---|
28 | .\" * MAIN CONTENT STARTS HERE *
|
---|
29 | .\" -----------------------------------------------------------------
|
---|
30 | .SH "NAME"
|
---|
31 | ping_pong \- measures the ping\-pong byte range lock latency
|
---|
32 | .SH "SYNOPSIS"
|
---|
33 | .HP \w'\fBping_pong\fR\ 'u
|
---|
34 | \fBping_pong\fR {\-r | \-w | \-rw} [\-m] [\-c] {\fIFILENAME\fR} {\fINUM\-LOCKS\fR}
|
---|
35 | .SH "DESCRIPTION"
|
---|
36 | .PP
|
---|
37 | ping_pong measures the byte range lock latency\&. It is especially useful on a cluster of nodes sharing a common lock manager as it will give some indication of the lock manager\*(Aqs performance under stress\&.
|
---|
38 | .PP
|
---|
39 | FILENAME is a file on shared storage to use for byte range locking tests\&.
|
---|
40 | .PP
|
---|
41 | NUM\-LOCKS is the number of byte range locks, so needs to be (strictly) greater than the number of nodes in the cluster\&.
|
---|
42 | .SH "OPTIONS"
|
---|
43 | .PP
|
---|
44 | \-r
|
---|
45 | .RS 4
|
---|
46 | test read performance
|
---|
47 | .RE
|
---|
48 | .PP
|
---|
49 | \-w
|
---|
50 | .RS 4
|
---|
51 | test write performance
|
---|
52 | .RE
|
---|
53 | .PP
|
---|
54 | \-m
|
---|
55 | .RS 4
|
---|
56 | use mmap
|
---|
57 | .RE
|
---|
58 | .PP
|
---|
59 | \-c
|
---|
60 | .RS 4
|
---|
61 | validate the locks
|
---|
62 | .RE
|
---|
63 | .SH "EXAMPLES"
|
---|
64 | .PP
|
---|
65 | Testing lock coherence
|
---|
66 | .sp
|
---|
67 | .if n \{\
|
---|
68 | .RS 4
|
---|
69 | .\}
|
---|
70 | .nf
|
---|
71 | ping_pong test\&.dat N
|
---|
72 |
|
---|
73 | .fi
|
---|
74 | .if n \{\
|
---|
75 | .RE
|
---|
76 | .\}
|
---|
77 | .PP
|
---|
78 | Testing lock coherence with lock validation
|
---|
79 | .sp
|
---|
80 | .if n \{\
|
---|
81 | .RS 4
|
---|
82 | .\}
|
---|
83 | .nf
|
---|
84 | ping_pong \-c test\&.dat N
|
---|
85 |
|
---|
86 | .fi
|
---|
87 | .if n \{\
|
---|
88 | .RE
|
---|
89 | .\}
|
---|
90 | .PP
|
---|
91 | Testing IO coherence
|
---|
92 | .sp
|
---|
93 | .if n \{\
|
---|
94 | .RS 4
|
---|
95 | .\}
|
---|
96 | .nf
|
---|
97 | ping_pong \-rw test\&.dat N
|
---|
98 |
|
---|
99 | .fi
|
---|
100 | .if n \{\
|
---|
101 | .RE
|
---|
102 | .\}
|
---|
103 | .SH "SEE ALSO"
|
---|
104 | .PP
|
---|
105 | \fBctdb\fR(7),
|
---|
106 | \m[blue]\fB\%https://wiki.samba.org/index.php/Ping_pong\fR\m[]
|
---|
107 | .SH "AUTHOR"
|
---|
108 | .br
|
---|
109 | .PP
|
---|
110 | This documentation was written by Mathieu Parent
|
---|
111 | .SH "COPYRIGHT"
|
---|
112 | .br
|
---|
113 | Copyright \(co 2002 Andrew Tridgell
|
---|
114 | .br
|
---|
115 | .PP
|
---|
116 | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
|
---|
117 | .PP
|
---|
118 | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
|
---|
119 | .PP
|
---|
120 | You should have received a copy of the GNU General Public License along with this program; if not, see
|
---|
121 | \m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
|
---|
122 | .sp
|
---|