From: Mathieu Parent Date: Sat, 26 Mar 2011 10:55:30 +0000 (+0100) Subject: Manpage for ping_pong X-Git-Tag: tevent-0.9.20~348^2~1173^2~3 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=4a4345096809170bc03dd8284830b1dd61b9f28b;p=vlendec%2Fsamba-autobuild%2F.git Manpage for ping_pong Signed-off-by: Michael Adam (This used to be ctdb commit af75d3e37412e03d3978073edbe6dee78f265c3c) --- diff --git a/ctdb/Makefile.in b/ctdb/Makefile.in index aec64e1d9f2..8fb9ea73cbf 100755 --- a/ctdb/Makefile.in +++ b/ctdb/Makefile.in @@ -203,7 +203,8 @@ tests/bin/ibwrapper_test: $(CTDB_CLIENT_OBJ) ib/ibwrapper_test.o doc: doc/ctdb.1 doc/ctdb.1.html \ doc/ctdbd.1 doc/ctdbd.1.html \ doc/onnode.1 doc/onnode.1.html \ - doc/ltdbtool.1 doc/ltdbtool.1.html + doc/ltdbtool.1 doc/ltdbtool.1.html \ + doc/ping_pong.1 doc/ping_pong.1.html clean: rm -f *.o */*.o */*.a */*/*.o */*~ @@ -264,6 +265,7 @@ install: all if [ -f doc/ctdbd.1 ];then ${INSTALLCMD} -m 644 doc/ctdbd.1 $(DESTDIR)$(mandir)/man1; fi if [ -f doc/onnode.1 ];then ${INSTALLCMD} -m 644 doc/onnode.1 $(DESTDIR)$(mandir)/man1; fi if [ -f doc/ltdbtool.1 ]; then ${INSTALLCMD} -m 644 doc/ltdbtool.1 $(DESTDIR)$(mandir)/man1; fi + if [ -f doc/ping_pong.1 ];then ${INSTALLCMD} -m 644 doc/ping_pong.1 $(DESTDIR)$(mandir)/man1; fi if [ ! -f $(DESTDIR)$(etcdir)/ctdb/notify.sh ];then ${INSTALLCMD} -m 755 config/notify.sh $(DESTDIR)$(etcdir)/ctdb; fi if [ ! -f $(DESTDIR)$(etcdir)/ctdb/ctdb-crash-cleanup.sh ];then ${INSTALLCMD} -m 755 config/ctdb-crash-cleanup.sh $(DESTDIR)$(etcdir)/ctdb; fi diff --git a/ctdb/doc/ping_pong.1 b/ctdb/doc/ping_pong.1 new file mode 100644 index 00000000000..3448faaff47 --- /dev/null +++ b/ctdb/doc/ping_pong.1 @@ -0,0 +1,110 @@ +'\" t +.\" Title: ping_pong +.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] +.\" Generator: DocBook XSL Stylesheets v1.76.1 +.\" Date: 03/26/2011 +.\" Manual: +.\" Source: +.\" Language: English +.\" +.TH "PING_PONG" "1" "03/26/2011" "" "" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +ping_pong \- measures the ping\-pong byte range lock latency +.SH "SYNOPSIS" +.HP \w'\fBping_pong\ [options]\ \ \fR\ 'u +\fBping_pong [options] \fR +.HP \w'\fBping_pong\fR\ 'u +\fBping_pong\fR [\-r] [\-w] [\-m] +.SH "DESCRIPTION" +.PP +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\&. +.SH "OPTIONS" +.PP +\-r +.RS 4 +do reads +.RE +.PP +\-w +.RS 4 +do writes +.RE +.PP +\-m +.RS 4 +use mmap +.RE +.SH "EXAMPLES" +.PP +Testing lock coherence +.sp +.if n \{\ +.RS 4 +.\} +.nf + ping_pong test\&.dat N + +.fi +.if n \{\ +.RE +.\} +.PP +Testing IO coherence +.sp +.if n \{\ +.RS 4 +.\} +.nf + ping_pong \-rw test\&.dat N + +.fi +.if n \{\ +.RE +.\} +.SH "SEE ALSO" +.PP + +\m[blue]\fB\%https://wiki.samba.org/index.php/Ping_pong\fR\m[], ctdb(1), ctdbd(1) +.SH "COPYRIGHT/LICENSE" +.sp +.if n \{\ +.RS 4 +.\} +.nf +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/\&. +.fi +.if n \{\ +.RE +.\} diff --git a/ctdb/doc/ping_pong.1.html b/ctdb/doc/ping_pong.1.html new file mode 100644 index 00000000000..e7e6973a2c0 --- /dev/null +++ b/ctdb/doc/ping_pong.1.html @@ -0,0 +1,37 @@ +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]

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 +

EXAMPLES

+ Testing lock coherence +

+      ping_pong 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/.
+

diff --git a/ctdb/doc/ping_pong.1.xml b/ctdb/doc/ping_pong.1.xml new file mode 100644 index 00000000000..0b67e8f86e5 --- /dev/null +++ b/ctdb/doc/ping_pong.1.xml @@ -0,0 +1,110 @@ + + + + + + ping_pong + 1 + + + + + + + ping_pong + measures the ping-pong byte range lock latency + + + + + ping_pong [options] <file> <num_locks> + + + + ping_pong + -r + -w + -m + + + + + 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 + + + + + + + EXAMPLES + + Testing lock coherence + + + ping_pong test.dat N + + + + Testing IO coherence + + + ping_pong -rw test.dat N + + + + SEE ALSO + + , 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/. + + + diff --git a/ctdb/packaging/RPM/ctdb.spec.in b/ctdb/packaging/RPM/ctdb.spec.in index b91459457d9..c006b51836a 100644 --- a/ctdb/packaging/RPM/ctdb.spec.in +++ b/ctdb/packaging/RPM/ctdb.spec.in @@ -123,6 +123,7 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/ctdbd.1.gz %{_mandir}/man1/onnode.1.gz %{_mandir}/man1/ltdbtool.1.gz +%{_mandir}/man1/ping_pong.1.gz %{_libdir}/pkgconfig/ctdb.pc %{_docdir}/ctdb/tests/bin/ctdb_transaction