1 <?xml version="1.0" encoding="UTF-8"?>
3 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
4 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
5 <refentry id="ping_pong.1">
8 <refentrytitle>ping_pong</refentrytitle>
9 <manvolnum>1</manvolnum>
10 <refmiscinfo class="source">ctdb</refmiscinfo>
11 <refmiscinfo class="manual">CTDB - clustered TDB database</refmiscinfo>
15 <refname>ping_pong</refname>
16 <refpurpose>measures the ping-pong byte range lock latency</refpurpose>
21 <command>ping_pong</command>
23 <arg choice="plain">-r</arg>
24 <arg choice="plain">-w</arg>
25 <arg choice="plain">-rw</arg>
29 <arg choice="req"><replaceable>FILENAME</replaceable></arg>
30 <arg choice="req"><replaceable>NUM-LOCKS</replaceable></arg>
35 <title>DESCRIPTION</title>
37 ping_pong measures the byte range lock latency. It is especially
38 useful on a cluster of nodes sharing a common lock manager as it
39 will give some indication of the lock manager's performance
44 FILENAME is a file on shared storage to use for byte range
49 NUM-LOCKS is the number of byte range locks, so needs to be
50 (strictly) greater than the number of nodes in the cluster.
55 <title>OPTIONS</title>
71 test write performance
98 <title>EXAMPLES</title>
100 Testing lock coherence
102 <screen format="linespecific">
107 Testing lock coherence with lock validation
109 <screen format="linespecific">
110 ping_pong -c test.dat N
116 <screen format="linespecific">
117 ping_pong -rw test.dat N
122 <title>SEE ALSO</title>
124 <citerefentry><refentrytitle>ctdb</refentrytitle>
125 <manvolnum>7</manvolnum></citerefentry>,
127 <ulink url="https://wiki.samba.org/index.php/Ping_pong"/>
135 This documentation was written by Mathieu Parent
141 <holder>Andrew Tridgell</holder>
145 This program is free software; you can redistribute it and/or
146 modify it under the terms of the GNU General Public License as
147 published by the Free Software Foundation; either version 3 of
148 the License, or (at your option) any later version.
151 This program is distributed in the hope that it will be
152 useful, but WITHOUT ANY WARRANTY; without even the implied
153 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
154 PURPOSE. See the GNU General Public License for more details.
157 You should have received a copy of the GNU General Public
158 License along with this program; if not, see
159 <ulink url="http://www.gnu.org/licenses"/>.