PING_PONG(1)
π PING_PONG β ok bestie let's talk lock latency π
soooo this is ping_pong(1) from the CTDB β clustered TDB database manual, and it is literally the tool you want when you need to know how slow your byte range locks are being. no cap.
β¨ NAME β¨
ping_pong β measures the ping-pong byte range lock latency π
πΈ SYNOPSIS πΈ
ping_pong {-r | -w | -rw} [-m] [-c] {FILENAME} {NUM-LOCKS}
π¦ DESCRIPTION π¦
ok so ping_pong measures the byte range lock latency. it's especially useful when you've got a cluster of nodes all sharing one common lock manager, because it gives you a little vibe check on how that lock manager is holding up under stress. π
FILENAME is a file on shared storage that you're using for the byte range locking tests.
NUM-LOCKS is the number of byte range locks β and bestie, listen, it needs to be (strictly) greater than the number of nodes in the cluster. like, strictly. no sneaking around it. π
π OPTIONS π
-rβ test read performance π-wβ test write performance βοΈ-mβ usemmapπΊοΈ-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 π
ctdb(7), https://wiki.samba.org/index.php/Ping_pong
π AUTHOR π
This documentation was written by Mathieu Parent. iconic of them honestly.
β COPYRIGHT β
Copyright Β© 2002 Andrew Tridgell
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.
fr fr, that's the whole license blurb, don't skip it, it's giving legally binding β
and that's the tea β β this page is from the ctdb collection, dated 09/09/2026. go measure some latency, bestie, you're gonna slay π
β¨π«Ά
π¦ where this page comes from
- fedora 44: ctdb 2:4.24.7-1.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later
- ubuntu noble: ctdb 2:4.19.5+dfsg-4ubuntu9.8 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms