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 β€” 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 πŸ‘‘

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


πŸ“ AUTHOR πŸ“

This documentation was written by Mathieu Parent. iconic of them honestly.


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