ping_pong

## Name

ping_pong — measures the ping-pong byte range lock latency

## Synopsis

`ping_pong [options] <file> <num_locks>`

`ping_pong` [-r] [-w] [-m] [-c]

## DESCRIPTION

This measures the ping-pong 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 managers performance under stress.

## OPTIONS

-r

  do reads

-w

  do writes

-m

  use mmap

-c

  validate the locks

## EXAMPLES

Testing lock coherence

          ping_pong test.dat N

Testing lock coherence with lock validation

          ping_pong -c test.dat N

Testing IO coherence

          ping_pong -rw test.dat N

## SEE ALSO

https://wiki.samba.org/index.php/Ping_pong, ctdb(1), ctdbd(1)

## COPYRIGHT/LICENSE

Copyright (C) Andrew Tridgell 2002
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.
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.
You should have received a copy of the GNU General Public License
along with this program; if not, see http://www.gnu.org/licenses/.