1PING_PONG(1) CTDB - clustered TDB database PING_PONG(1)
2
3
4
6 ping_pong - measures the ping-pong byte range lock latency
7
9 ping_pong {-r | -w | -rw} [-m] [-c] {FILENAME} {NUM-LOCKS}
10
12 ping_pong measures the byte range lock latency. It is especially useful
13 on a cluster of nodes sharing a common lock manager as it will give
14 some indication of the lock manager's performance under stress.
15
16 FILENAME is a file on shared storage to use for byte range locking
17 tests.
18
19 NUM-LOCKS is the number of byte range locks, so needs to be (strictly)
20 greater than the number of nodes in the cluster.
21
23 -r
24 test read performance
25
26 -w
27 test write performance
28
29 -m
30 use mmap
31
32 -c
33 validate the locks
34
36 Testing lock coherence
37
38 ping_pong test.dat N
39
40
41 Testing lock coherence with lock validation
42
43 ping_pong -c test.dat N
44
45
46 Testing IO coherence
47
48 ping_pong -rw test.dat N
49
50
52 ctdb(7), https://wiki.samba.org/index.php/Ping_pong
53
55 This documentation was written by Mathieu Parent
56
58 Copyright © 2002 Andrew Tridgell
59
60 This program is free software; you can redistribute it and/or modify it
61 under the terms of the GNU General Public License as published by the
62 Free Software Foundation; either version 3 of the License, or (at your
63 option) any later version.
64
65 This program is distributed in the hope that it will be useful, but
66 WITHOUT ANY WARRANTY; without even the implied warranty of
67 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
68 General Public License for more details.
69
70 You should have received a copy of the GNU General Public License along
71 with this program; if not, see http://www.gnu.org/licenses.
72
73
74
75
76ctdb 05/11/2019 PING_PONG(1)