.. code-block:: perl
- #include <libhashkit/hashkit.h>
+ #include <libmemcached/hashkit.h>
hashkit_st *hashkit_create(hashkit_st *hash);
------------
.. toctree::
- :maxdepth: 2
+ :maxdepth: 1
libmemcached
libmemcached_examples
-------------------
.. toctree::
- :maxdepth: 2
+ :maxdepth: 1
memcapable
memcat
----------
.. toctree::
- :maxdepth: 2
+ :maxdepth: 1
hashkit_create
hashkit_functions
Utility library for libmemcached
-=======
+-------
LIBRARY
-=======
+-------
C Client Library containing utility functions for libmemcached (libmemcachedutil, -lmemcachedutil)
-========
+--------
SYNOPSIS
-========
+--------
.. code-block:: perl
-===========
+-----------
DESCRIPTION
-===========
+-----------
\ **libmemcachedutil**\ is a small and thread-safe client library that provides
extra functionality built on top of \ **libmemcached**\ .
-=======
+-------
THREADS
-=======
+-------
Do not try to access an instance of \ ``memcached_st``\ from multiple threads
implementation. see memcached_pool_create(3).
-====
+----
HOME
-====
+----
To find out more information please check:
`https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
-========
+--------
SEE ALSO
-========
+--------
:manpage:`libmemcached(3)`
.sp
.nf
.ft C
-#include <libhashkit/hashkit.h>
+#include <libmemcached/hashkit.h>
hashkit_st *hashkit_create(hashkit_st *hash);
.sp
.nf
.ft C
-#include <libhashkit/hashkit.h>
+#include <libmemcached/hashkit.h>
hashkit_st *hashkit_create(hashkit_st *hash);
.sp
.nf
.ft C
-#include <libhashkit/hashkit.h>
+#include <libmemcached/hashkit.h>
hashkit_st *hashkit_create(hashkit_st *hash);
.sp
.nf
.ft C
-#include <libhashkit/hashkit.h>
+#include <libmemcached/hashkit.h>
hashkit_st *hashkit_create(hashkit_st *hash);
.
.sp
Utility library for libmemcached
+.SH LIBRARY
.sp
C Client Library containing utility functions for libmemcached (libmemcachedutil, \-lmemcachedutil)
+.SH SYNOPSIS
.sp
.nf
.ft C
#include <libmemcached/memcached_util.h>
.ft P
.fi
+.SH DESCRIPTION
.sp
\fBlibmemcachedutil\fP is a small and thread\-safe client library that provides
extra functionality built on top of \fBlibmemcached\fP.
+.SH THREADS
.sp
Do not try to access an instance of \fBmemcached_st\fP from multiple threads
at the same time. If you want to access memcached from multiple threads
you should either clone the \fBmemcached_st\fP, or use the memcached pool
implementation. see memcached_pool_create(3).
+.SH HOME
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
+.SH SEE ALSO
.sp
\fIlibmemcached(3)\fP
\fImemcached_pool_create(3)\fP \fImemcached_pool_destroy(3)\fP \fImemcached_pool_pop(3)\fP \fImemcached_pool_push(3)\fP
\fBmemaslap\fP is a load generation and benchmark tool for memcached(1)
servers. It generates configurable workload such as threads, concurrencies, connections,
run time, overwrite, miss rate, key size, value size, get/set proportion,
-expected throughput, and so on. Furthermore, it also supports data
+expected throughput, and so on. Furthermore, it also testss data
verification, expire\-time verification, UDP, binary protocol, facebook test,
replication test, multi\-get and reconnection, etc.
.sp
.sp
Memslap has the similar implementation of multi\-threads to
memcached. Memslap creates one or more self\-governed threads;
-each thread is bound with one CPU core if the system supports setting CPU
+each thread is bound with one CPU core if the system testss setting CPU
core affinity.
.sp
In addition, each thread has a libevent to manage the events of the network;
.sp
Because each thread is self\-governed, memaslap can assign
different threads to handle different memcached servers. This is just one of
-the ways in which memaslap supports multiple servers. The only
+the ways in which memaslap testss multiple servers. The only
limitation is that the number of servers cannot be greater than the number
-of threads. The other way to support multiple servers is for replication
+of threads. The other way to tests multiple servers is for replication
test. Each concurrency has one socket connection to each memcached server.
For the implementation, memaslap can set some objects to one
memcached server, and get these objects from the other servers.
multi\-get option, memaslap will collect enough get commands and
pack and send the commands together.
.sp
-Memslap supports both the ASCII protocol and binary protocol,
+Memslap testss both the ASCII protocol and binary protocol,
but it runs on the ASCII protocol by default.
Memslap by default runs on the TCP protocol, but it also
-supports UDP. Because UDP is unreliable, dropped packages and out\-of\-order
+testss UDP. Because UDP is unreliable, dropped packages and out\-of\-order
packages may occur. Memslap creates a memory buffer to handle
these problems. Memslap tries to read all the response data of
one command from the server and reorders the response data. If some packages
The minimum value size is 1 bytes; the maximum value size is 1M bytes. The
precision of proportion is 0.001. The proportion of distribution will be
rounded to 3 decimal places.
-Currently, memaslap only supports set and get commands. And it
-supports 100% set and 100% get. For 100% get, it will preset some objects to
+Currently, memaslap only testss set and get commands. And it
+testss 100% set and 100% get. For 100% get, it will preset some objects to
the server.
.SS Multi\-thread and concurrency
.sp
concurrency is 16. The user can use “—threads” and “\-\-concurrency” to
specify these variables.
.sp
-If the system supports setting CPU affinity and the number of threads
+If the system testss setting CPU affinity and the number of threads
specified by the user is greater than 1, memaslap will try to
bind each thread to a different CPU core. So if you want to get the best
performance memaslap, it is better to specify the number of
Most of the time, the user does not need to specify the window size. The
default window size is 10k. For Schooner Memcached, the user can specify
different window sizes to get different cache miss rates based on the test
-case. Memslap supports cache miss rate between 0% and 100%.
+case. Memslap testss cache miss rate between 0% and 100%.
If you use this utility to test the performance of Schooner Memcached, you
can specify a proper window size to get the expected cache miss rate. The
formula for calculating window size is as follows:
cache_size / concurrency / (key_size + value_size) * 0.7
.SS Verification
.sp
-Memslap supports both data verification and expire\-time
+Memslap testss both data verification and expire\-time
verification. The user can use "\-\-verify=" or "\-v" to specify the proportion
-of data verification. In theory, it supports 100% data verification. The
+of data verification. In theory, it testss 100% data verification. The
user can use "\-\-exp_verify=" or "\-e" to specify the proportion of
-expire\-time verification. In theory, it supports 100% expire\-time
+expire\-time verification. In theory, it testss 100% expire\-time
verification. Specify the "\-\-verbose" options to get more detailed error
information.
.sp
set with expire\-time, 10% of the objects gotten will be verified. If the
objects are gotten, memaslap will verify the expire\-time and
value.
-.SS multi\-servers and multi\-clients
+.SS multi\-servers and multi\-config
.sp
-Memslap supports multi\-servers based on self\-governed thread.
+Memslap testss multi\-servers based on self\-governed thread.
There is a limitation that the number of servers cannot be greater than the
number of threads. Memslap assigns one thread to handle one
server at least. The user can use the "\-\-servers=" or "\-s" option to specify
.SS Multi\-get
.sp
The user can use "\-\-division=" or "\-d" to specify multi\-get keys count.
-Memslap by default does single get with TCP. Memslap also supports data
+Memslap by default does single get with TCP. Memslap also testss data
verification and expire\-time verification for multi\-get.
.sp
-Memslap supports multi\-get with both TCP and UDP. Because of
+Memslap testss multi\-get with both TCP and UDP. Because of
the different implementation of the ASCII protocol and binary protocol,
there are some differences between the two. For the ASCII protocol,
memaslap sends one “multi\-get” to the server once. For the
together as “multi\-get” to the server.
.SS UDP and TCP
.sp
-Memslap supports both UDP and TCP. For TCP,
+Memslap testss both UDP and TCP. For TCP,
memaslap does not reconnect the memcached server if socket connections are
lost. If all the socket connections are lost or memcached server crashes,
memaslap will exit. If the user specifies the “\-\-reconnect”
.sp
UDP cannot set data more than 1400 bytes.
.sp
-UDP is not supported by the binary protocol because the binary protocol of
-memcached does not support that.
+UDP is not testsed by the binary protocol because the binary protocol of
+memcached does not tests that.
.sp
-UDP doesn’t support reconnection.
+UDP doesn’t tests reconnection.
.SS Facebook test
.sp
Set data with TCP and multi\-get with UDP. Specify the following options:
.SS Supports thousands of TCP connections
.sp
Start memaslap with "\-\-conn_sock=" or "\-n" to enable this
-feature. Make sure that your system can support opening thousands of files
-and creating thousands of sockets. However, this feature does not support
+feature. Make sure that your system can tests opening thousands of files
+and creating thousands of sockets. However, this feature does not tests
reconnection if sockets disconnect.
.sp
For example:
.SS Supports binary protocol
.sp
Start memaslap with "\-\-binary" or "\-B" options to enable this
-feature. It supports all the above features except UDP, because the latest
+feature. It testss all the above features except UDP, because the latest
memcached 1.3.3 does not implement binary UDP protocol.
.sp
For example:
\-\-binary
.sp
Since memcached 1.3.3 doesn\(aqt implement binary UDP protocol,
-memaslap does not support UDP. In addition, memcached 1.3.3 does not support
+memaslap does not tests UDP. In addition, memcached 1.3.3 does not tests
multi\-get. If you specify "\-\-division=50" option, it just sends 50 get
commands together as “mulit\-get” to the server.
.SH CONFIGURATION FILE
#cmd
#cmd_type cmd_proportion
#
-#currently memaslap only supports get and set command.
+#currently memaslap only testss get and set command.
#
#cmd_type
#set 0
.TP
.B \-R, \-\-reconnect
.
-Reconnect support, when connection is closed it will be reconnected.
+Reconnect tests, when connection is closed it will be reconnected.
.TP
.B \-U, \-\-udp
.
-UDP support, default memaslap uses TCP, TCP port and UDP port of
+UDP tests, default memaslap uses TCP, TCP port and UDP port of
server must be same.
.TP
.B \-a, \-\-facebook
.SH LIBRARY
.sp
C Client Library for memcached (libmemcached, \-lmemcached)
-.SS SYNOPSIS
+.SH SYNOPSIS
.sp
.nf
.ft C
void memcached_result_set_expiration (memcached_result_st *ptr, time_t)
.ft P
.fi
-.SS DESCRIPTION
+.SH DESCRIPTION
.sp
libmemcached(3) can optionally return a memcached_result_st which acts as a
result object. The result objects have added benefits over the character
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SH AUTHOR
-.sp
-Brian Aker, <\fI\%brian@tangent.org\fP>
-.SS SEE ALSO
+.SH SEE ALSO
.sp
\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
.SH LIBRARY
.sp
C Client Library for memcached (libmemcached, \-lmemcached)
-.SS SYNOPSIS
+.SH SYNOPSIS
.sp
.nf
.ft C
void memcached_result_set_expiration (memcached_result_st *ptr, time_t)
.ft P
.fi
-.SS DESCRIPTION
+.SH DESCRIPTION
.sp
libmemcached(3) can optionally return a memcached_result_st which acts as a
result object. The result objects have added benefits over the character
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SH AUTHOR
-.sp
-Brian Aker, <\fI\%brian@tangent.org\fP>
-.SS SEE ALSO
+.SH SEE ALSO
.sp
\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
.SH LIBRARY
.sp
C Client Library for memcached (libmemcached, \-lmemcached)
-.SS SYNOPSIS
+.SH SYNOPSIS
.sp
.nf
.ft C
void memcached_result_set_expiration (memcached_result_st *ptr, time_t)
.ft P
.fi
-.SS DESCRIPTION
+.SH DESCRIPTION
.sp
libmemcached(3) can optionally return a memcached_result_st which acts as a
result object. The result objects have added benefits over the character
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SH AUTHOR
-.sp
-Brian Aker, <\fI\%brian@tangent.org\fP>
-.SS SEE ALSO
+.SH SEE ALSO
.sp
\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
.SH LIBRARY
.sp
C Client Library for memcached (libmemcached, \-lmemcached)
-.SS SYNOPSIS
+.SH SYNOPSIS
.sp
.nf
.ft C
void memcached_result_set_expiration (memcached_result_st *ptr, time_t)
.ft P
.fi
-.SS DESCRIPTION
+.SH DESCRIPTION
.sp
libmemcached(3) can optionally return a memcached_result_st which acts as a
result object. The result objects have added benefits over the character
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SH AUTHOR
-.sp
-Brian Aker, <\fI\%brian@tangent.org\fP>
-.SS SEE ALSO
+.SH SEE ALSO
.sp
\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
.SH LIBRARY
.sp
C Client Library for memcached (libmemcached, \-lmemcached)
-.SS SYNOPSIS
+.SH SYNOPSIS
.sp
.nf
.ft C
void memcached_result_set_expiration (memcached_result_st *ptr, time_t)
.ft P
.fi
-.SS DESCRIPTION
+.SH DESCRIPTION
.sp
libmemcached(3) can optionally return a memcached_result_st which acts as a
result object. The result objects have added benefits over the character
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SH AUTHOR
-.sp
-Brian Aker, <\fI\%brian@tangent.org\fP>
-.SS SEE ALSO
+.SH SEE ALSO
.sp
\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
.SH LIBRARY
.sp
C Client Library for memcached (libmemcached, \-lmemcached)
-.SS SYNOPSIS
+.SH SYNOPSIS
.sp
.nf
.ft C
void memcached_result_set_expiration (memcached_result_st *ptr, time_t)
.ft P
.fi
-.SS DESCRIPTION
+.SH DESCRIPTION
.sp
libmemcached(3) can optionally return a memcached_result_st which acts as a
result object. The result objects have added benefits over the character
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SH AUTHOR
-.sp
-Brian Aker, <\fI\%brian@tangent.org\fP>
-.SS SEE ALSO
+.SH SEE ALSO
.sp
\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
.SH LIBRARY
.sp
C Client Library for memcached (libmemcached, \-lmemcached)
-.SS SYNOPSIS
+.SH SYNOPSIS
.sp
.nf
.ft C
void memcached_result_set_expiration (memcached_result_st *ptr, time_t)
.ft P
.fi
-.SS DESCRIPTION
+.SH DESCRIPTION
.sp
libmemcached(3) can optionally return a memcached_result_st which acts as a
result object. The result objects have added benefits over the character
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SH AUTHOR
-.sp
-Brian Aker, <\fI\%brian@tangent.org\fP>
-.SS SEE ALSO
+.SH SEE ALSO
.sp
\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
.SH LIBRARY
.sp
C Client Library for memcached (libmemcached, \-lmemcached)
-.SS SYNOPSIS
+.SH SYNOPSIS
.sp
.nf
.ft C
void memcached_result_set_expiration (memcached_result_st *ptr, time_t)
.ft P
.fi
-.SS DESCRIPTION
+.SH DESCRIPTION
.sp
libmemcached(3) can optionally return a memcached_result_st which acts as a
result object. The result objects have added benefits over the character
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SH AUTHOR
-.sp
-Brian Aker, <\fI\%brian@tangent.org\fP>
-.SS SEE ALSO
+.SH SEE ALSO
.sp
\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
.SH LIBRARY
.sp
C Client Library for memcached (libmemcached, \-lmemcached)
-.SS SYNOPSIS
+.SH SYNOPSIS
.sp
.nf
.ft C
void memcached_result_set_expiration (memcached_result_st *ptr, time_t)
.ft P
.fi
-.SS DESCRIPTION
+.SH DESCRIPTION
.sp
libmemcached(3) can optionally return a memcached_result_st which acts as a
result object. The result objects have added benefits over the character
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SH AUTHOR
-.sp
-Brian Aker, <\fI\%brian@tangent.org\fP>
-.SS SEE ALSO
+.SH SEE ALSO
.sp
\fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
.SH AUTHOR
.\" Man page generated from reStructeredText.
.
.sp
-Check memcached server capabilities
+Check the server for compatibility and capabilities
.SH SYNOPSIS
-.sp
-.nf
-.ft C
-memcat [\-h hostname] [\-p port] [\-c] [\-v] [\-t n]
-.ft P
-.fi
-.SH DESCRIPTION
-.sp
-\fBmemcapable\fP connects to the specified memcached server and tries to
-determine its capabilities by running the various commands and verifying
-the response.
-.SS OPTIONS
-.sp
-The following options are testsed:
.INDENT 0.0
.TP
-.BI \-h \ hostname
-.
+.B \-h hostname
+.sp
Specify the hostname to connect to. The default is \fIlocalhost\fP
+.UNINDENT
+.INDENT 0.0
.TP
-.BI \-p \ port
-.
+.B \-p port
+.sp
Specify the port number to connect to. The default is \fI11211\fP
+.UNINDENT
+.INDENT 0.0
.TP
.B \-c
.
Generate a coredump when it detects an error from the server.
+.UNINDENT
+.INDENT 0.0
.TP
.B \-v
.
Print out the comparison when it detects an error from the server.
+.UNINDENT
+.INDENT 0.0
.TP
-.BI \-t \ n
-.
+.B \-t n
+.sp
Set the timeout from an IO operation to/from the server to \fIn\fP seconds.
.UNINDENT
+.SH DESCRIPTION
+.sp
+\fBmemcapable\fP connects to the specified memcached server and tries to
+determine its capabilities by running the various commands and verifying
+the response.
.SH LIMITATIONS
.sp
The current version of memcapable will only verify the binary protocol.
-.SS HOME
+.SH HOME
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SS AUTHOR
+.SH AUTHOR
.sp
Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
environment variable \fBMEMCACHED_SERVERS\fP.
.sp
For a full list of operations run the tool with the \fB\-\-help\fP option.
-.SS HOME
+.SH HOME
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SS AUTHOR
+.SH AUTHOR
.sp
Brian Aker, <\fI\%brian@tangent.org\fP>
.sp
server(s).
.sp
For a full list of operations run the tool with the \fB\-\-help\fP option.
-.SS HOME
+.SH HOME
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SS AUTHOR
+.SH AUTHOR
.sp
Brian Aker, <\fI\%brian@tangent.org\fP>
.sp
.sp
Dump a list of keys from a server.
.SH SYNOPSIS
-.sp
-.nf
-.ft C
-memdump [options]
-.ft P
-.fi
.SH DESCRIPTION
.sp
\fBmemdump\fP currently dumps a list of "keys" from all servers that
provide all keys it is not possible to get a complete "dump".
.sp
For a full list of operations run the tool with the \fB\-\-help\fP option.
-.SS HOME
+.SH HOME
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SS AUTHOR
-.sp
-Brian Aker, <\fI\%brian@tangent.org\fP>
.SH SEE ALSO
.sp
-memcached(1) libmemcached(3)
+\fImemcached(1)\fP \fIlibmemcached(3)\fP
.SH AUTHOR
Brian Aker
.SH COPYRIGHT
.
.sp
Reset a server or list of servers
-.SH SYNOPSIS
.sp
.nf
.ft C
memflush [options]
.ft P
.fi
-.SH DESCRIPTION
.sp
\fBmemflush\fP resets the contents of memcached(1) servers.
This means all data in these servers will be deleted.
environment variable \fBMEMCACHED_SERVERS\fP.
.sp
For a full list of operations run the tool with the \fB\-\-help\fP option.
-.SS HOME
+.SH HOME
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SS AUTHOR
+.SH AUTHOR
.sp
Brian Aker, <\fI\%brian@tangent.org\fP>
.sp
Mark Atwood <\fI\%mark@fallenpegasus.com\fP>
-.SH SEE ALSO
.sp
memcached(1) libmemcached(3)
.SH AUTHOR
environment variable \fBMEMCACHED_SERVERS\fP.
.sp
For a full list of operations run the tool with the \fB\-\-help\fP option.
-.SS HOME
+.SH HOME
.sp
To find out more information please check:
\fI\%https://launchpad.net/libmemcached\fP
-.SS AUTHOR
+.SH AUTHOR
.sp
Brian Aker, <\fI\%brian@tangent.org\fP>
.sp
\ **memaslap**\ is a load generation and benchmark tool for memcached(1)
servers. It generates configurable workload such as threads, concurrencies, connections,
run time, overwrite, miss rate, key size, value size, get/set proportion,
-expected throughput, and so on. Furthermore, it also supports data
+expected throughput, and so on. Furthermore, it also testss data
verification, expire-time verification, UDP, binary protocol, facebook test,
replication test, multi-get and reconnection, etc.
Memslap has the similar implementation of multi-threads to
memcached. Memslap creates one or more self-governed threads;
-each thread is bound with one CPU core if the system supports setting CPU
+each thread is bound with one CPU core if the system testss setting CPU
core affinity.
In addition, each thread has a libevent to manage the events of the network;
Because each thread is self-governed, memaslap can assign
different threads to handle different memcached servers. This is just one of
-the ways in which memaslap supports multiple servers. The only
+the ways in which memaslap testss multiple servers. The only
limitation is that the number of servers cannot be greater than the number
-of threads. The other way to support multiple servers is for replication
+of threads. The other way to tests multiple servers is for replication
test. Each concurrency has one socket connection to each memcached server.
For the implementation, memaslap can set some objects to one
memcached server, and get these objects from the other servers.
multi-get option, memaslap will collect enough get commands and
pack and send the commands together.
-Memslap supports both the ASCII protocol and binary protocol,
+Memslap testss both the ASCII protocol and binary protocol,
but it runs on the ASCII protocol by default.
Memslap by default runs on the TCP protocol, but it also
-supports UDP. Because UDP is unreliable, dropped packages and out-of-order
+testss UDP. Because UDP is unreliable, dropped packages and out-of-order
packages may occur. Memslap creates a memory buffer to handle
these problems. Memslap tries to read all the response data of
one command from the server and reorders the response data. If some packages
The minimum value size is 1 bytes; the maximum value size is 1M bytes. The
precision of proportion is 0.001. The proportion of distribution will be
rounded to 3 decimal places.
-Currently, memaslap only supports set and get commands. And it
-supports 100% set and 100% get. For 100% get, it will preset some objects to
+Currently, memaslap only testss set and get commands. And it
+testss 100% set and 100% get. For 100% get, it will preset some objects to
the server.
concurrency is 16. The user can use “—threads” and “--concurrency” to
specify these variables.
-If the system supports setting CPU affinity and the number of threads
+If the system testss setting CPU affinity and the number of threads
specified by the user is greater than 1, memaslap will try to
bind each thread to a different CPU core. So if you want to get the best
performance memaslap, it is better to specify the number of
Most of the time, the user does not need to specify the window size. The
default window size is 10k. For Schooner Memcached, the user can specify
different window sizes to get different cache miss rates based on the test
-case. Memslap supports cache miss rate between 0% and 100%.
+case. Memslap testss cache miss rate between 0% and 100%.
If you use this utility to test the performance of Schooner Memcached, you
can specify a proper window size to get the expected cache miss rate. The
formula for calculating window size is as follows:
____________
-Memslap supports both data verification and expire-time
+Memslap testss both data verification and expire-time
verification. The user can use "--verify=" or "-v" to specify the proportion
-of data verification. In theory, it supports 100% data verification. The
+of data verification. In theory, it testss 100% data verification. The
user can use "--exp_verify=" or "-e" to specify the proportion of
-expire-time verification. In theory, it supports 100% expire-time
+expire-time verification. In theory, it testss 100% expire-time
verification. Specify the "--verbose" options to get more detailed error
information.
value.
-multi-servers and multi-clients
+multi-servers and multi-config
_______________________________
-Memslap supports multi-servers based on self-governed thread.
+Memslap testss multi-servers based on self-governed thread.
There is a limitation that the number of servers cannot be greater than the
number of threads. Memslap assigns one thread to handle one
server at least. The user can use the "--servers=" or "-s" option to specify
The user can use "--division=" or "-d" to specify multi-get keys count.
-Memslap by default does single get with TCP. Memslap also supports data
+Memslap by default does single get with TCP. Memslap also testss data
verification and expire-time verification for multi-get.
-Memslap supports multi-get with both TCP and UDP. Because of
+Memslap testss multi-get with both TCP and UDP. Because of
the different implementation of the ASCII protocol and binary protocol,
there are some differences between the two. For the ASCII protocol,
memaslap sends one “multi-get” to the server once. For the
___________
-Memslap supports both UDP and TCP. For TCP,
+Memslap testss both UDP and TCP. For TCP,
memaslap does not reconnect the memcached server if socket connections are
lost. If all the socket connections are lost or memcached server crashes,
memaslap will exit. If the user specifies the “--reconnect”
UDP cannot set data more than 1400 bytes.
-UDP is not supported by the binary protocol because the binary protocol of
-memcached does not support that.
+UDP is not testsed by the binary protocol because the binary protocol of
+memcached does not tests that.
-UDP doesn’t support reconnection.
+UDP doesn’t tests reconnection.
Facebook test
Start memaslap with "--conn_sock=" or "-n" to enable this
-feature. Make sure that your system can support opening thousands of files
-and creating thousands of sockets. However, this feature does not support
+feature. Make sure that your system can tests opening thousands of files
+and creating thousands of sockets. However, this feature does not tests
reconnection if sockets disconnect.
For example:
Start memaslap with "--binary" or "-B" options to enable this
-feature. It supports all the above features except UDP, because the latest
+feature. It testss all the above features except UDP, because the latest
memcached 1.3.3 does not implement binary UDP protocol.
For example:
--binary
Since memcached 1.3.3 doesn't implement binary UDP protocol,
-memaslap does not support UDP. In addition, memcached 1.3.3 does not support
+memaslap does not tests UDP. In addition, memcached 1.3.3 does not tests
multi-get. If you specify "--division=50" option, it just sends 50 get
commands together as “mulit-get” to the server.
#cmd
#cmd_type cmd_proportion
#
- #currently memaslap only supports get and set command.
+ #currently memaslap only testss get and set command.
#
#cmd_type
#set 0
Default never overwrite object.
-R, --reconnect
- Reconnect support, when connection is closed it will be reconnected.
+ Reconnect tests, when connection is closed it will be reconnected.
-U, --udp
- UDP support, default memaslap uses TCP, TCP port and UDP port of
+ UDP tests, default memaslap uses TCP, TCP port and UDP port of
server must be same.
-a, --facebook
Work with memcached_result_st
-*******
+-------
LIBRARY
-*******
+-------
C Client Library for memcached (libmemcached, -lmemcached)
heap allocated structures.
-******
+------
RETURN
-******
+------
Varies, see particular functions. All structures must have
do this will result in leaked memory.
-****
+----
HOME
-****
+----
To find out more information please check:
`https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
-******
-AUTHOR
-******
-
-
-Brian Aker, <brian@tangent.org>
-
-
--------
SEE ALSO
--------
-============================================================
-Checking you Memcached server capibilities and compatibility
-============================================================
+=======================================================================
+memcapable - Checking a Memcached server capibilities and compatibility
+=======================================================================
-Check memcached server capabilities
+Check the server for compatibility and capabilities
--------
SYNOPSIS
--------
+.. program:: memcat
-
-.. code-block:: perl
-
- memcat [-h hostname] [-p port] [-c] [-v] [-t n]
-
-
-
------------
-DESCRIPTION
------------
-
-
-\ **memcapable**\ connects to the specified memcached server and tries to
-determine its capabilities by running the various commands and verifying
-the response.
-
-
-*******
-OPTIONS
-*******
-
-
-The following options are testsed:
-
-
--h hostname
+.. option:: -h hostname
Specify the hostname to connect to. The default is \ *localhost*\
-
-
--p port
+.. option:: -p port
Specify the port number to connect to. The default is \ *11211*\
--c
+.. option:: -c
Generate a coredump when it detects an error from the server.
--v
+.. option:: -v
- Print out the comparison when it detects an error from the server.
+ Print out the comparison when it detects an error from the server.
--t n
+.. option:: -t n
Set the timeout from an IO operation to/from the server to \ *n*\ seconds.
+-----------
+DESCRIPTION
+-----------
+\ **memcapable**\ connects to the specified memcached server and tries to
+determine its capabilities by running the various commands and verifying
+the response.
-----------
The current version of memcapable will only verify the binary protocol.
-****
+----
HOME
-****
+----
To find out more information please check:
`https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
-******
+------
AUTHOR
-******
+------
Trond Norbye, <trond.norbye@gmail.com>
SEE ALSO
--------
-
-memcached(1) libmemcached(3)
+:manpage:`memcached(1)` :manpage:`libmemcached(3)`
-======
-memcat
-======
+=================================
+memcat - "cat" data from a server
+=================================
Copy a set of keys to stdout
For a full list of operations run the tool with the \ **--help**\ option.
-****
+----
HOME
-****
+----
To find out more information please check:
`https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
-******
+------
AUTHOR
-******
+------
Brian Aker, <brian@tangent.org>
-=====
-memcp
-=====
+=============================
+memcp - Copy data to a server
+=============================
Copies files to a collection of memcached servers
For a full list of operations run the tool with the \ **--help**\ option.
-****
+----
HOME
-****
+----
To find out more information please check:
`https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
-******
+------
AUTHOR
-******
+------
Brian Aker, <brian@tangent.org>
SYNOPSIS
--------
-
-
-.. code-block:: perl
-
- memdump [options]
-
-
+.. program:: memdump [options]
-----------
DESCRIPTION
For a full list of operations run the tool with the \ **--help**\ option.
-****
+----
HOME
-****
+----
To find out more information please check:
`https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
-******
-AUTHOR
-******
-
-
-Brian Aker, <brian@tangent.org>
-
-
--------
SEE ALSO
--------
-
-memcached(1) libmemcached(3)
-
+:manpage:`memcached(1)` :manpage:`libmemcached(3)`
-========
-memerror
-========
+==============================================
+memerror - translate an error code to a string
+==============================================
Translate a memcached error code to a string
-========
-memflush
-========
+---------------------------------------
+memflush - flush all data from a server
+---------------------------------------
Reset a server or list of servers
-=====
-memrm
-=====
+=================================
+memrm - Remove data from a server
+=================================
memrm - Remove a key(s) from a collection of memcached servers
For a full list of operations run the tool with the \ **--help**\ option.
-****
+----
HOME
-****
+----
To find out more information please check:
`https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
-******
+------
AUTHOR
-******
+------
Brian Aker, <brian@tangent.org>