Merge branch 'master' of ssh://git.samba.org/data/git/ctdb
[sahlberg/ctdb.git] / doc / ping_pong.1.html
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ping_pong</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" title="ping_pong"><a name="ping_pong.1"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ping_pong &#8212; measures the ping-pong byte range lock latency</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">ping_pong [options] &lt;file&gt; &lt;num_locks&gt;</code> </p></div><div class="cmdsynopsis"><p><code class="command">ping_pong</code>  [-r] [-w] [-m]</p></div></div><div class="refsect1" title="DESCRIPTION"><a name="id2949769"></a><h2>DESCRIPTION</h2><p>
2       This measures the ping-pong byte range lock latency. It is
3       especially useful on a cluster of nodes sharing a common lock
4       manager as it will give some indication of the lock managers
5       performance under stress.
6     </p></div><div class="refsect1" title="OPTIONS"><a name="id2949782"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-r</span></dt><dd><p>
7             do reads
8           </p></dd><dt><span class="term">-w</span></dt><dd><p>
9             do writes
10           </p></dd><dt><span class="term">-m</span></dt><dd><p>
11             use mmap
12           </p></dd></dl></div></div><div class="refsect1" title="EXAMPLES"><a name="id2949828"></a><h2>EXAMPLES</h2><p>
13       Testing lock coherence
14     </p><pre class="screen">
15       ping_pong test.dat N
16     </pre><p>
17       Testing IO coherence
18     </p><pre class="screen">
19       ping_pong -rw test.dat N
20     </pre></div><div class="refsect1" title="SEE ALSO"><a name="id2949852"></a><h2>SEE ALSO</h2><p>
21       <a class="ulink" href="https://wiki.samba.org/index.php/Ping_pong" target="_top">https://wiki.samba.org/index.php/Ping_pong</a>, ctdb(1), ctdbd(1)
22     </p></div><div class="refsect1" title="COPYRIGHT/LICENSE"><a name="id2949866"></a><h2>COPYRIGHT/LICENSE</h2><div class="literallayout"><p><br>
23 Copyright (C) Andrew Tridgell 2002<br>
24 <br>
25 This program is free software; you can redistribute it and/or modify<br>
26 it under the terms of the GNU General Public License as published by<br>
27 the Free Software Foundation; either version 3 of the License, or (at<br>
28 your option) any later version.<br>
29 <br>
30 This program is distributed in the hope that it will be useful, but<br>
31 WITHOUT ANY WARRANTY; without even the implied warranty of<br>
32 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU<br>
33 General Public License for more details.<br>
34 <br>
35 You should have received a copy of the GNU General Public License<br>
36 along with this program; if not, see http://www.gnu.org/licenses/.<br>
37 </p></div></div></div></body></html>