update docs
[awesomized/libmemcached] / bin / memaslap.html
1
2
3 <!DOCTYPE html>
4 <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
5 <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
6 <head>
7 <meta charset="utf-8">
8
9 <meta name="viewport" content="width=device-width, initial-scale=1.0">
10
11 <title>memaslap - Load testing and benchmarking a server &mdash; libmemcached 1.0.99 documentation</title>
12
13
14
15
16
17
18
19
20 <script type="text/javascript" src="../_static/js/modernizr.min.js"></script>
21
22
23 <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
24 <script src="../_static/jquery.js"></script>
25 <script src="../_static/underscore.js"></script>
26 <script src="../_static/doctools.js"></script>
27 <script src="../_static/language_data.js"></script>
28
29 <script type="text/javascript" src="../_static/js/theme.js"></script>
30
31
32
33
34 <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
35 <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
36 <link rel="index" title="Index" href="../genindex.html" />
37 <link rel="search" title="Search" href="../search.html" />
38 <link rel="copyright" title="Copyright" href="../copyright.html" />
39 <link rel="next" title="memstat - Gather statistics from a server" href="memstat.html" />
40 <link rel="prev" title="memslap - Load testing and benchmarking a server" href="memslap.html" />
41 </head>
42
43 <body class="wy-body-for-nav">
44
45
46 <div class="wy-grid-for-nav">
47
48 <nav data-toggle="wy-nav-shift" class="wy-nav-side">
49 <div class="wy-side-scroll">
50 <div class="wy-side-nav-search" >
51
52
53
54 <a href="../index.html" class="icon icon-home"> libmemcached
55
56
57
58 </a>
59
60
61
62
63 <div class="version">
64 1.0
65 </div>
66
67
68
69
70 <div role="search">
71 <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
72 <input type="text" name="q" placeholder="Search docs" />
73 <input type="hidden" name="check_keywords" value="yes" />
74 <input type="hidden" name="area" value="default" />
75 </form>
76 </div>
77
78
79 </div>
80
81 <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
82
83
84
85
86
87
88 <p class="caption"><span class="caption-text">Basics</span></p>
89 <ul>
90 <li class="toctree-l1"><a class="reference internal" href="../libmemcached.html">Introducing the C Client Library for memcached</a><ul>
91 <li class="toctree-l2"><a class="reference internal" href="../libmemcached.html#synopsis">SYNOPSIS</a></li>
92 <li class="toctree-l2"><a class="reference internal" href="../libmemcached.html#description">DESCRIPTION</a></li>
93 <li class="toctree-l2"><a class="reference internal" href="../libmemcached.html#constants">CONSTANTS</a></li>
94 <li class="toctree-l2"><a class="reference internal" href="../libmemcached.html#threads-and-processes">THREADS AND PROCESSES</a></li>
95 <li class="toctree-l2"><a class="reference internal" href="../libmemcached.html#see-also">SEE ALSO</a></li>
96 </ul>
97 </li>
98 <li class="toctree-l1"><a class="reference internal" href="../versioning.html">Versioning</a></li>
99 <li class="toctree-l1"><a class="reference internal" href="../memcached_create.html">Creating and destroying a memcached_st</a><ul>
100 <li class="toctree-l2"><a class="reference internal" href="../memcached_create.html#synopsis">SYNOPSIS</a></li>
101 <li class="toctree-l2"><a class="reference internal" href="../memcached_create.html#description">DESCRIPTION</a></li>
102 <li class="toctree-l2"><a class="reference internal" href="../memcached_create.html#return">RETURN</a></li>
103 <li class="toctree-l2"><a class="reference internal" href="../memcached_create.html#see-also">SEE ALSO</a></li>
104 </ul>
105 </li>
106 <li class="toctree-l1"><a class="reference internal" href="../libmemcached_examples.html">Examples</a><ul>
107 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_examples.html#description">DESCRIPTION</a></li>
108 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_examples.html#connecting-to-servers">Connecting to servers</a></li>
109 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_examples.html#creating-a-pool-of-servers">Creating a pool of servers</a></li>
110 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_examples.html#adding-a-value-to-the-server">Adding a value to the server</a></li>
111 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_examples.html#fetching-multiple-values">Fetching multiple values</a></li>
112 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_examples.html#see-also">SEE ALSO</a></li>
113 </ul>
114 </li>
115 <li class="toctree-l1"><a class="reference internal" href="../libmemcached_configuration.html">Configuring Libmemcached</a><ul>
116 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_configuration.html#synopsis">SYNOPSIS</a></li>
117 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_configuration.html#description">DESCRIPTION</a></li>
118 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_configuration.html#environment">ENVIRONMENT</a></li>
119 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_configuration.html#return">RETURN</a></li>
120 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_configuration.html#example">EXAMPLE</a></li>
121 <li class="toctree-l2"><a class="reference internal" href="../libmemcached_configuration.html#see-also">SEE ALSO</a></li>
122 </ul>
123 </li>
124 <li class="toctree-l1"><a class="reference internal" href="../libmemcached/memcached_last_error_message.html">Retrieving errors</a><ul>
125 <li class="toctree-l2"><a class="reference internal" href="../libmemcached/memcached_last_error_message.html#synopsis">SYNOPSIS</a></li>
126 <li class="toctree-l2"><a class="reference internal" href="../libmemcached/memcached_last_error_message.html#description">DESCRIPTION</a></li>
127 <li class="toctree-l2"><a class="reference internal" href="../libmemcached/memcached_last_error_message.html#return">RETURN</a></li>
128 <li class="toctree-l2"><a class="reference internal" href="../libmemcached/memcached_last_error_message.html#see-also">SEE ALSO</a></li>
129 </ul>
130 </li>
131 </ul>
132 <p class="caption"><span class="caption-text">Working with Data</span></p>
133 <ul>
134 <li class="toctree-l1"><a class="reference internal" href="../memcached_auto.html">Incrementing and Decrementing Values</a><ul>
135 <li class="toctree-l2"><a class="reference internal" href="../memcached_auto.html#synopsis">SYNOPSIS</a></li>
136 <li class="toctree-l2"><a class="reference internal" href="../memcached_auto.html#description">DESCRIPTION</a></li>
137 <li class="toctree-l2"><a class="reference internal" href="../memcached_auto.html#return">RETURN</a></li>
138 <li class="toctree-l2"><a class="reference internal" href="../memcached_auto.html#see-also">SEE ALSO</a></li>
139 </ul>
140 </li>
141 <li class="toctree-l1"><a class="reference internal" href="../memcached_delete.html">Deleting data from a server</a><ul>
142 <li class="toctree-l2"><a class="reference internal" href="../memcached_delete.html#synopsis">SYNOPSIS</a></li>
143 <li class="toctree-l2"><a class="reference internal" href="../memcached_delete.html#description">DESCRIPTION</a></li>
144 <li class="toctree-l2"><a class="reference internal" href="../memcached_delete.html#return">RETURN</a></li>
145 <li class="toctree-l2"><a class="reference internal" href="../memcached_delete.html#see-also">SEE ALSO</a></li>
146 </ul>
147 </li>
148 <li class="toctree-l1"><a class="reference internal" href="../libmemcached/memcached_exist.html">Determine if a keys exists.</a><ul>
149 <li class="toctree-l2"><a class="reference internal" href="../libmemcached/memcached_exist.html#synopsis">SYNOPSIS</a></li>
150 <li class="toctree-l2"><a class="reference internal" href="../libmemcached/memcached_exist.html#description">DESCRIPTION</a></li>
151 <li class="toctree-l2"><a class="reference internal" href="../libmemcached/memcached_exist.html#return">RETURN</a></li>
152 <li class="toctree-l2"><a class="reference internal" href="../libmemcached/memcached_exist.html#see-also">SEE ALSO</a></li>
153 </ul>
154 </li>
155 <li class="toctree-l1"><a class="reference internal" href="../memcached_flush_buffers.html">Flushing client buffers</a><ul>
156 <li class="toctree-l2"><a class="reference internal" href="../memcached_flush_buffers.html#synopsis">SYNOPSIS</a></li>
157 <li class="toctree-l2"><a class="reference internal" href="../memcached_flush_buffers.html#description">DESCRIPTION</a></li>
158 <li class="toctree-l2"><a class="reference internal" href="../memcached_flush_buffers.html#return">RETURN</a></li>
159 <li class="toctree-l2"><a class="reference internal" href="../memcached_flush_buffers.html#see-also">SEE ALSO</a></li>
160 </ul>
161 </li>
162 <li class="toctree-l1"><a class="reference internal" href="../memcached_flush.html">Wiping clean the contents of a server</a><ul>
163 <li class="toctree-l2"><a class="reference internal" href="../memcached_flush.html#synopsis">SYNOPSIS</a></li>
164 <li class="toctree-l2"><a class="reference internal" href="../memcached_flush.html#description">DESCRIPTION</a></li>
165 <li class="toctree-l2"><a class="reference internal" href="../memcached_flush.html#return">RETURN</a></li>
166 <li class="toctree-l2"><a class="reference internal" href="../memcached_flush.html#see-also">SEE ALSO</a></li>
167 </ul>
168 </li>
169 <li class="toctree-l1"><a class="reference internal" href="../memcached_get.html">Retrieving data from the server</a><ul>
170 <li class="toctree-l2"><a class="reference internal" href="../memcached_get.html#synopsis">SYNOPSIS</a></li>
171 <li class="toctree-l2"><a class="reference internal" href="../memcached_get.html#description">DESCRIPTION</a></li>
172 <li class="toctree-l2"><a class="reference internal" href="../memcached_get.html#return">RETURN</a></li>
173 <li class="toctree-l2"><a class="reference internal" href="../memcached_get.html#see-also">SEE ALSO</a></li>
174 </ul>
175 </li>
176 <li class="toctree-l1"><a class="reference internal" href="../memcached_result_st.html">Working with result sets</a><ul>
177 <li class="toctree-l2"><a class="reference internal" href="../memcached_result_st.html#synopsis">SYNOPSIS</a></li>
178 <li class="toctree-l2"><a class="reference internal" href="../memcached_result_st.html#description">DESCRIPTION</a></li>
179 <li class="toctree-l2"><a class="reference internal" href="../memcached_result_st.html#return">RETURN</a></li>
180 <li class="toctree-l2"><a class="reference internal" href="../memcached_result_st.html#see-also">SEE ALSO</a></li>
181 </ul>
182 </li>
183 <li class="toctree-l1"><a class="reference internal" href="../memcached_set.html">Store, replace, add, or atomically add data to the server</a><ul>
184 <li class="toctree-l2"><a class="reference internal" href="../memcached_set.html#synopsis">SYNOPSIS</a></li>
185 <li class="toctree-l2"><a class="reference internal" href="../memcached_set.html#description">DESCRIPTION</a></li>
186 <li class="toctree-l2"><a class="reference internal" href="../memcached_set.html#return">RETURN</a></li>
187 <li class="toctree-l2"><a class="reference internal" href="../memcached_set.html#see-also">SEE ALSO</a></li>
188 </ul>
189 </li>
190 <li class="toctree-l1"><a class="reference internal" href="../memcached_append.html">Appending or Prepending to data on the server</a><ul>
191 <li class="toctree-l2"><a class="reference internal" href="../memcached_append.html#synopsis">SYNOPSIS</a></li>
192 <li class="toctree-l2"><a class="reference internal" href="../memcached_append.html#description">DESCRIPTION</a></li>
193 <li class="toctree-l2"><a class="reference internal" href="../memcached_append.html#return">RETURN</a></li>
194 <li class="toctree-l2"><a class="reference internal" href="../memcached_append.html#see-also">SEE ALSO</a></li>
195 </ul>
196 </li>
197 <li class="toctree-l1"><a class="reference internal" href="../memcached_cas.html">Working with data on the server in an atomic fashion</a><ul>
198 <li class="toctree-l2"><a class="reference internal" href="../memcached_cas.html#synopsis">SYNOPSIS</a></li>
199 <li class="toctree-l2"><a class="reference internal" href="../memcached_cas.html#description">DESCRIPTION</a></li>
200 <li class="toctree-l2"><a class="reference internal" href="../memcached_cas.html#return">RETURN</a></li>
201 <li class="toctree-l2"><a class="reference internal" href="../memcached_cas.html#see-also">SEE ALSO</a></li>
202 </ul>
203 </li>
204 </ul>
205 <p class="caption"><span class="caption-text">Advanced Topics</span></p>
206 <ul>
207 <li class="toctree-l1"><a class="reference internal" href="../libmemcached-1.0/memcached_set_encoding_key.html">Set encryption key</a><ul>
208 <li class="toctree-l2"><a class="reference internal" href="../libmemcached-1.0/memcached_set_encoding_key.html#synopsis">SYNOPSIS</a></li>
209 <li class="toctree-l2"><a class="reference internal" href="../libmemcached-1.0/memcached_set_encoding_key.html#description">DESCRIPTION</a></li>
210 <li class="toctree-l2"><a class="reference internal" href="../libmemcached-1.0/memcached_set_encoding_key.html#return">RETURN</a></li>
211 <li class="toctree-l2"><a class="reference internal" href="../libmemcached-1.0/memcached_set_encoding_key.html#see-also">SEE ALSO</a></li>
212 </ul>
213 </li>
214 <li class="toctree-l1"><a class="reference internal" href="../memcached_behavior.html">Modifying how the driver behaves</a><ul>
215 <li class="toctree-l2"><a class="reference internal" href="../memcached_behavior.html#synopsis">SYNOPSIS</a></li>
216 <li class="toctree-l2"><a class="reference internal" href="../memcached_behavior.html#description">DESCRIPTION</a></li>
217 <li class="toctree-l2"><a class="reference internal" href="../memcached_behavior.html#return">RETURN</a></li>
218 <li class="toctree-l2"><a class="reference internal" href="../memcached_behavior.html#notes">NOTES</a></li>
219 <li class="toctree-l2"><a class="reference internal" href="../memcached_behavior.html#see-also">SEE ALSO</a></li>
220 </ul>
221 </li>
222 <li class="toctree-l1"><a class="reference internal" href="../memcached_callback.html">Setting callbacks</a><ul>
223 <li class="toctree-l2"><a class="reference internal" href="../memcached_callback.html#synopsis">SYNOPSIS</a></li>
224 <li class="toctree-l2"><a class="reference internal" href="../memcached_callback.html#description">DESCRIPTION</a></li>
225 <li class="toctree-l2"><a class="reference internal" href="../memcached_callback.html#return">RETURN</a></li>
226 <li class="toctree-l2"><a class="reference internal" href="../memcached_callback.html#see-also">SEE ALSO</a></li>
227 </ul>
228 </li>
229 <li class="toctree-l1"><a class="reference internal" href="../memcached_dump.html">Dumping data from a server</a><ul>
230 <li class="toctree-l2"><a class="reference internal" href="../memcached_dump.html#synopsis">SYNOPSIS</a></li>
231 <li class="toctree-l2"><a class="reference internal" href="../memcached_dump.html#description">DESCRIPTION</a></li>
232 <li class="toctree-l2"><a class="reference internal" href="../memcached_dump.html#return">RETURN</a></li>
233 <li class="toctree-l2"><a class="reference internal" href="../memcached_dump.html#see-also">SEE ALSO</a></li>
234 </ul>
235 </li>
236 <li class="toctree-l1"><a class="reference internal" href="../memcached_generate_hash_value.html">Generating hash values directly</a><ul>
237 <li class="toctree-l2"><a class="reference internal" href="../memcached_generate_hash_value.html#synopsis">SYNOPSIS</a></li>
238 <li class="toctree-l2"><a class="reference internal" href="../memcached_generate_hash_value.html#description">DESCRIPTION</a></li>
239 <li class="toctree-l2"><a class="reference internal" href="../memcached_generate_hash_value.html#return">RETURN</a></li>
240 <li class="toctree-l2"><a class="reference internal" href="../memcached_generate_hash_value.html#see-also">SEE ALSO</a></li>
241 </ul>
242 </li>
243 <li class="toctree-l1"><a class="reference internal" href="../memcached_memory_allocators.html">Use custom allocators for embedded usage</a><ul>
244 <li class="toctree-l2"><a class="reference internal" href="../memcached_memory_allocators.html#synopsis">SYNOPSIS</a></li>
245 <li class="toctree-l2"><a class="reference internal" href="../memcached_memory_allocators.html#description">DESCRIPTION</a></li>
246 <li class="toctree-l2"><a class="reference internal" href="../memcached_memory_allocators.html#notes">NOTES</a></li>
247 <li class="toctree-l2"><a class="reference internal" href="../memcached_memory_allocators.html#return">RETURN</a></li>
248 <li class="toctree-l2"><a class="reference internal" href="../memcached_memory_allocators.html#see-also">SEE ALSO</a></li>
249 </ul>
250 </li>
251 <li class="toctree-l1"><a class="reference internal" href="../memcached_quit.html">Disconnecting a client from a server</a><ul>
252 <li class="toctree-l2"><a class="reference internal" href="../memcached_quit.html#synopsis">SYNOPSIS</a></li>
253 <li class="toctree-l2"><a class="reference internal" href="../memcached_quit.html#description">DESCRIPTION</a></li>
254 <li class="toctree-l2"><a class="reference internal" href="../memcached_quit.html#return">RETURN</a></li>
255 <li class="toctree-l2"><a class="reference internal" href="../memcached_quit.html#see-also">SEE ALSO</a></li>
256 </ul>
257 </li>
258 <li class="toctree-l1"><a class="reference internal" href="../libmemcached/memcached_return_t.html">Error Codes (memcached_return_t)</a><ul>
259 <li class="toctree-l2"><a class="reference internal" href="../libmemcached/memcached_return_t.html#synopsis">SYNOPSIS</a></li>
260 <li class="toctree-l2"><a class="reference internal" href="../libmemcached/memcached_return_t.html#see-also">SEE ALSO</a></li>
261 </ul>
262 </li>
263 <li class="toctree-l1"><a class="reference internal" href="../memcached_sasl.html">SASL support</a><ul>
264 <li class="toctree-l2"><a class="reference internal" href="../memcached_sasl.html#synopsis">SYNOPSIS</a></li>
265 <li class="toctree-l2"><a class="reference internal" href="../memcached_sasl.html#description">DESCRIPTION</a></li>
266 <li class="toctree-l2"><a class="reference internal" href="../memcached_sasl.html#return">RETURN</a></li>
267 <li class="toctree-l2"><a class="reference internal" href="../memcached_sasl.html#see-also">SEE ALSO</a></li>
268 </ul>
269 </li>
270 <li class="toctree-l1"><a class="reference internal" href="../memcached_server_st.html">Managing lists of servers</a><ul>
271 <li class="toctree-l2"><a class="reference internal" href="../memcached_server_st.html#synopsis">SYNOPSIS</a></li>
272 <li class="toctree-l2"><a class="reference internal" href="../memcached_server_st.html#description">DESCRIPTION</a></li>
273 <li class="toctree-l2"><a class="reference internal" href="../memcached_server_st.html#return">RETURN</a></li>
274 <li class="toctree-l2"><a class="reference internal" href="../memcached_server_st.html#see-also">SEE ALSO</a></li>
275 </ul>
276 </li>
277 <li class="toctree-l1"><a class="reference internal" href="../memcached_servers.html">Manipulate the server information stored in memcached_st</a><ul>
278 <li class="toctree-l2"><a class="reference internal" href="../memcached_servers.html#synopsis">SYNOPSIS</a></li>
279 <li class="toctree-l2"><a class="reference internal" href="../memcached_servers.html#description">DESCRIPTION</a></li>
280 <li class="toctree-l2"><a class="reference internal" href="../memcached_servers.html#return">RETURN</a></li>
281 <li class="toctree-l2"><a class="reference internal" href="../memcached_servers.html#see-also">SEE ALSO</a></li>
282 </ul>
283 </li>
284 <li class="toctree-l1"><a class="reference internal" href="../memcached_strerror.html">Converting Errors, memcached_return_t, to strings</a><ul>
285 <li class="toctree-l2"><a class="reference internal" href="../memcached_strerror.html#synopsis">SYNOPSIS</a></li>
286 <li class="toctree-l2"><a class="reference internal" href="../memcached_strerror.html#description">DESCRIPTION</a></li>
287 <li class="toctree-l2"><a class="reference internal" href="../memcached_strerror.html#return">RETURN</a></li>
288 <li class="toctree-l2"><a class="reference internal" href="../memcached_strerror.html#see-also">SEE ALSO</a></li>
289 </ul>
290 </li>
291 <li class="toctree-l1"><a class="reference internal" href="../error_messages.html">Client Error messages</a><ul>
292 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_AUTH_CONTINUE.html">MEMCACHED_AUTH_CONTINUE</a></li>
293 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_AUTH_FAILURE.html">MEMCACHED_AUTH_FAILURE</a></li>
294 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_AUTH_PROBLEM.html">MEMCACHED_AUTH_PROBLEM</a></li>
295 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_BAD_KEY_PROVIDED.html">MEMCACHED_BAD_KEY_PROVIDED</a></li>
296 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_BUFFERED.html">MEMCACHED_BUFFERED</a></li>
297 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_CLIENT_ERROR.html">MEMCACHED_CLIENT_ERROR</a></li>
298 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_CONNECTION_BIND_FAILURE.html">MEMCACHED_CONNECTION_BIND_FAILURE</a></li>
299 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_CONNECTION_FAILURE.html">MEMCACHED_CONNECTION_FAILURE</a></li>
300 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE.html">MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE</a></li>
301 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_DATA_DOES_NOT_EXIST.html">MEMCACHED_DATA_DOES_NOT_EXIST</a></li>
302 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_DATA_EXISTS.html">MEMCACHED_DATA_EXISTS</a></li>
303 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_DELETED.html">MEMCACHED_DELETED</a></li>
304 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_DEPRECATED.html">MEMCACHED_DEPRECATED</a></li>
305 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_E2BIG.html">MEMCACHED_E2BIG</a></li>
306 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_END.html">MEMCACHED_END</a></li>
307 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_ERRNO.html">MEMCACHED_ERRNO</a></li>
308 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_FAILURE.html">MEMCACHED_FAILURE</a></li>
309 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_FAIL_UNIX_SOCKET.html">MEMCACHED_FAIL_UNIX_SOCKET</a></li>
310 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_FETCH_NOTFINISHED.html">MEMCACHED_FETCH_NOTFINISHED</a></li>
311 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_HOST_LOOKUP_FAILURE.html">MEMCACHED_HOST_LOOKUP_FAILURE</a></li>
312 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_INVALID_ARGUMENTS.html">MEMCACHED_INVALID_ARGUMENTS</a></li>
313 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_INVALID_HOST_PROTOCOL.html">MEMCACHED_INVALID_HOST_PROTOCOL</a></li>
314 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_ITEM.html">MEMCACHED_ITEM</a></li>
315 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_KEY_TOO_BIG.html">MEMCACHED_KEY_TOO_BIG</a></li>
316 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_MAXIMUM_RETURN.html">MEMCACHED_MAXIMUM_RETURN</a></li>
317 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_MEMORY_ALLOCATION_FAILURE.html">MEMCACHED_MEMORY_ALLOCATION_FAILURE</a></li>
318 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_NOTFOUND.html">MEMCACHED_NOTFOUND</a></li>
319 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_NOTSTORED.html">MEMCACHED_NOTSTORED</a></li>
320 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_NOT_SUPPORTED.html">MEMCACHED_NOT_SUPPORTED</a></li>
321 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_NO_KEY_PROVIDED.html">MEMCACHED_NO_KEY_PROVIDED</a></li>
322 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_NO_SERVERS.html">MEMCACHED_NO_SERVERS</a></li>
323 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_PARSE_ERROR.html">MEMCACHED_PARSE_ERROR</a></li>
324 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_PARSE_USER_ERROR.html">MEMCACHED_PARSE_USER_ERROR</a></li>
325 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_PARTIAL_READ.html">MEMCACHED_PARTIAL_READ</a></li>
326 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_PROTOCOL_ERROR.html">MEMCACHED_PROTOCOL_ERROR</a></li>
327 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_READ_FAILURE.html">MEMCACHED_READ_FAILURE</a></li>
328 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_SERVER_ERROR.html">MEMCACHED_SERVER_ERROR</a></li>
329 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_SERVER_MARKED_DEAD.html">MEMCACHED_SERVER_MARKED_DEAD</a></li>
330 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_SOME_ERRORS.html">MEMCACHED_SOME_ERRORS</a></li>
331 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_STAT.html">MEMCACHED_STAT</a></li>
332 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_STORED.html">MEMCACHED_STORED</a></li>
333 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_SUCCESS.html">MEMCACHED_SUCCESS</a></li>
334 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_TIMEOUT.html">MEMCACHED_TIMEOUT</a></li>
335 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_UNKNOWN_READ_FAILURE.html">MEMCACHED_UNKNOWN_READ_FAILURE</a></li>
336 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_UNKNOWN_STAT_KEY.html">MEMCACHED_UNKNOWN_STAT_KEY</a></li>
337 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_VALUE.html">MEMCACHED_VALUE</a></li>
338 <li class="toctree-l2"><a class="reference internal" href="../client_errors/MEMCACHED_WRITE_FAILURE.html">MEMCACHED_WRITE_FAILURE</a></li>
339 </ul>
340 </li>
341 <li class="toctree-l1"><a class="reference internal" href="../memcached_user_data.html">Storing custom user information in the client.</a><ul>
342 <li class="toctree-l2"><a class="reference internal" href="../memcached_user_data.html#library">LIBRARY</a></li>
343 <li class="toctree-l2"><a class="reference internal" href="../memcached_user_data.html#synopsis">SYNOPSIS</a></li>
344 <li class="toctree-l2"><a class="reference internal" href="../memcached_user_data.html#description">DESCRIPTION</a></li>
345 <li class="toctree-l2"><a class="reference internal" href="../memcached_user_data.html#return">RETURN</a></li>
346 <li class="toctree-l2"><a class="reference internal" href="../memcached_user_data.html#see-also">SEE ALSO</a></li>
347 </ul>
348 </li>
349 <li class="toctree-l1"><a class="reference internal" href="../memcached_verbosity.html">Setting the verbosity of a server</a><ul>
350 <li class="toctree-l2"><a class="reference internal" href="../memcached_verbosity.html#synopsis">SYNOPSIS</a></li>
351 <li class="toctree-l2"><a class="reference internal" href="../memcached_verbosity.html#description">DESCRIPTION</a></li>
352 <li class="toctree-l2"><a class="reference internal" href="../memcached_verbosity.html#return">RETURN</a></li>
353 <li class="toctree-l2"><a class="reference internal" href="../memcached_verbosity.html#see-also">SEE ALSO</a></li>
354 </ul>
355 </li>
356 <li class="toctree-l1"><a class="reference internal" href="../memcached_version.html">Getting version information about the client and server</a><ul>
357 <li class="toctree-l2"><a class="reference internal" href="../memcached_version.html#synopsis">SYNOPSIS</a></li>
358 <li class="toctree-l2"><a class="reference internal" href="../memcached_version.html#description">DESCRIPTION</a></li>
359 <li class="toctree-l2"><a class="reference internal" href="../memcached_version.html#return">RETURN</a></li>
360 <li class="toctree-l2"><a class="reference internal" href="../memcached_version.html#see-also">SEE ALSO</a></li>
361 </ul>
362 </li>
363 <li class="toctree-l1"><a class="reference internal" href="../libmemcached/defaults.html">DEFAULTS</a></li>
364 </ul>
365 <p class="caption"><span class="caption-text">Interface Versions</span></p>
366 <ul>
367 <li class="toctree-l1"><a class="reference internal" href="../libmemcached-1.0/index.html">libmemcached 1.0 API</a><ul>
368 <li class="toctree-l2"><a class="reference internal" href="../libmemcached-1.0/memcached_touch.html">memcached_touch, memcached_touch_by_key</a></li>
369 </ul>
370 </li>
371 <li class="toctree-l1"><a class="reference internal" href="../libmemcached-1.1/index.html">libmemcached 1.1 API</a></li>
372 </ul>
373 <p class="caption"><span class="caption-text">Deprecated Functions</span></p>
374 <ul>
375 <li class="toctree-l1"><a class="reference internal" href="../libmemcached/memcached_fetch.html">memcached_fetch</a></li>
376 </ul>
377 <p class="caption"><span class="caption-text">Platform Specifics</span></p>
378 <ul>
379 <li class="toctree-l1"><a class="reference internal" href="../tap.html">Systemtap support</a></li>
380 <li class="toctree-l1"><a class="reference internal" href="../types.html">Required C types</a><ul>
381 <li class="toctree-l2"><a class="reference internal" href="../types.html#types">Types</a></li>
382 <li class="toctree-l2"><a class="reference internal" href="../types.html#c-types-used">C Types Used</a></li>
383 </ul>
384 </li>
385 </ul>
386 <p class="caption"><span class="caption-text">Deriving Statistics from a Server</span></p>
387 <ul>
388 <li class="toctree-l1"><a class="reference internal" href="../memcached_analyze.html">Analyzing servers</a><ul>
389 <li class="toctree-l2"><a class="reference internal" href="../memcached_analyze.html#synopsis">SYNOPSIS</a></li>
390 <li class="toctree-l2"><a class="reference internal" href="../memcached_analyze.html#description">DESCRIPTION</a></li>
391 <li class="toctree-l2"><a class="reference internal" href="../memcached_analyze.html#return">RETURN</a></li>
392 <li class="toctree-l2"><a class="reference internal" href="../memcached_analyze.html#see-also">SEE ALSO</a></li>
393 </ul>
394 </li>
395 <li class="toctree-l1"><a class="reference internal" href="../memcached_stats.html">Working with statistical information from a server</a><ul>
396 <li class="toctree-l2"><a class="reference internal" href="../memcached_stats.html#synopsis">SYNOPSIS</a></li>
397 <li class="toctree-l2"><a class="reference internal" href="../memcached_stats.html#description">DESCRIPTION</a></li>
398 <li class="toctree-l2"><a class="reference internal" href="../memcached_stats.html#return">RETURN</a></li>
399 <li class="toctree-l2"><a class="reference internal" href="../memcached_stats.html#see-also">SEE ALSO</a></li>
400 </ul>
401 </li>
402 </ul>
403 <p class="caption"><span class="caption-text">Libmemcachedutil</span></p>
404 <ul>
405 <li class="toctree-l1"><a class="reference internal" href="../libmemcachedutil.html">Introducing libmemcachedutil</a><ul>
406 <li class="toctree-l2"><a class="reference internal" href="../libmemcachedutil.html#synopsis">SYNOPSIS</a></li>
407 <li class="toctree-l2"><a class="reference internal" href="../libmemcachedutil.html#description">DESCRIPTION</a></li>
408 <li class="toctree-l2"><a class="reference internal" href="../libmemcachedutil.html#threads">THREADS</a></li>
409 <li class="toctree-l2"><a class="reference internal" href="../libmemcachedutil.html#see-also">SEE ALSO</a></li>
410 </ul>
411 </li>
412 <li class="toctree-l1"><a class="reference internal" href="../memcached_pool.html">Working with memcached pools</a><ul>
413 <li class="toctree-l2"><a class="reference internal" href="../memcached_pool.html#synopsis">SYNOPSIS</a></li>
414 <li class="toctree-l2"><a class="reference internal" href="../memcached_pool.html#description">DESCRIPTION</a></li>
415 <li class="toctree-l2"><a class="reference internal" href="../memcached_pool.html#return">RETURN</a></li>
416 <li class="toctree-l2"><a class="reference internal" href="../memcached_pool.html#see-also">SEE ALSO</a></li>
417 </ul>
418 </li>
419 </ul>
420 <p class="caption"><span class="caption-text">Client Applications</span></p>
421 <ul class="current">
422 <li class="toctree-l1"><a class="reference internal" href="memcapable.html">memcapable - Checking a Memcached server capabilities and compatibility</a><ul>
423 <li class="toctree-l2"><a class="reference internal" href="memcapable.html#synopsis">SYNOPSIS</a></li>
424 <li class="toctree-l2"><a class="reference internal" href="memcapable.html#description">DESCRIPTION</a></li>
425 <li class="toctree-l2"><a class="reference internal" href="memcapable.html#limitations">LIMITATIONS</a></li>
426 <li class="toctree-l2"><a class="reference internal" href="memcapable.html#options">OPTIONS</a></li>
427 <li class="toctree-l2"><a class="reference internal" href="memcapable.html#see-also">SEE ALSO</a></li>
428 </ul>
429 </li>
430 <li class="toctree-l1"><a class="reference internal" href="memcat.html">memcat - “cat” data from a server</a><ul>
431 <li class="toctree-l2"><a class="reference internal" href="memcat.html#synopsis">SYNOPSIS</a></li>
432 <li class="toctree-l2"><a class="reference internal" href="memcat.html#description">DESCRIPTION</a></li>
433 <li class="toctree-l2"><a class="reference internal" href="memcat.html#options">OPTIONS</a></li>
434 <li class="toctree-l2"><a class="reference internal" href="memcat.html#see-also">SEE ALSO</a></li>
435 </ul>
436 </li>
437 <li class="toctree-l1"><a class="reference internal" href="memcp.html">memcp - Copy data to a server</a><ul>
438 <li class="toctree-l2"><a class="reference internal" href="memcp.html#synopsis">SYNOPSIS</a></li>
439 <li class="toctree-l2"><a class="reference internal" href="memcp.html#description">DESCRIPTION</a></li>
440 <li class="toctree-l2"><a class="reference internal" href="memcp.html#options">OPTIONS</a></li>
441 <li class="toctree-l2"><a class="reference internal" href="memcp.html#see-also">SEE ALSO</a></li>
442 </ul>
443 </li>
444 <li class="toctree-l1"><a class="reference internal" href="memdump.html">memdump - Dumping your server</a><ul>
445 <li class="toctree-l2"><a class="reference internal" href="memdump.html#synopsis">SYNOPSIS</a></li>
446 <li class="toctree-l2"><a class="reference internal" href="memdump.html#description">DESCRIPTION</a></li>
447 <li class="toctree-l2"><a class="reference internal" href="memdump.html#options">OPTIONS</a></li>
448 <li class="toctree-l2"><a class="reference internal" href="memdump.html#see-also">SEE ALSO</a></li>
449 </ul>
450 </li>
451 <li class="toctree-l1"><a class="reference internal" href="memerror.html">memerror - translate an error code to a string</a><ul>
452 <li class="toctree-l2"><a class="reference internal" href="memerror.html#synopsis">SYNOPSIS</a></li>
453 <li class="toctree-l2"><a class="reference internal" href="memerror.html#description">DESCRIPTION</a></li>
454 <li class="toctree-l2"><a class="reference internal" href="memerror.html#options">OPTIONS</a></li>
455 <li class="toctree-l2"><a class="reference internal" href="memerror.html#see-also">SEE ALSO</a></li>
456 </ul>
457 </li>
458 <li class="toctree-l1"><a class="reference internal" href="memflush.html">memflush - flush all data from a server</a><ul>
459 <li class="toctree-l2"><a class="reference internal" href="memflush.html#synopsis">SYNOPSIS</a></li>
460 <li class="toctree-l2"><a class="reference internal" href="memflush.html#description">DESCRIPTION</a></li>
461 <li class="toctree-l2"><a class="reference internal" href="memflush.html#options">OPTIONS</a></li>
462 <li class="toctree-l2"><a class="reference internal" href="memflush.html#see-also">SEE ALSO</a></li>
463 </ul>
464 </li>
465 <li class="toctree-l1"><a class="reference internal" href="memrm.html">memrm - Remove data from a server</a><ul>
466 <li class="toctree-l2"><a class="reference internal" href="memrm.html#synopsis">SYNOPSIS</a></li>
467 <li class="toctree-l2"><a class="reference internal" href="memrm.html#description">DESCRIPTION</a></li>
468 <li class="toctree-l2"><a class="reference internal" href="memrm.html#options">OPTIONS</a></li>
469 <li class="toctree-l2"><a class="reference internal" href="memrm.html#see-also">SEE ALSO</a></li>
470 </ul>
471 </li>
472 <li class="toctree-l1"><a class="reference internal" href="memslap.html">memslap - Load testing and benchmarking a server</a><ul>
473 <li class="toctree-l2"><a class="reference internal" href="memslap.html#synopsis">SYNOPSIS</a></li>
474 <li class="toctree-l2"><a class="reference internal" href="memslap.html#description">DESCRIPTION</a></li>
475 <li class="toctree-l2"><a class="reference internal" href="memslap.html#options">OPTIONS</a></li>
476 <li class="toctree-l2"><a class="reference internal" href="memslap.html#see-also">SEE ALSO</a></li>
477 </ul>
478 </li>
479 <li class="toctree-l1 current"><a class="current reference internal" href="#">memaslap - Load testing and benchmarking a server</a><ul>
480 <li class="toctree-l2"><a class="reference internal" href="#synopsis">SYNOPSIS</a></li>
481 <li class="toctree-l2"><a class="reference internal" href="#description">DESCRIPTION</a></li>
482 <li class="toctree-l2"><a class="reference internal" href="#features">FEATURES</a></li>
483 <li class="toctree-l2"><a class="reference internal" href="#details">DETAILS</a></li>
484 <li class="toctree-l2"><a class="reference internal" href="#usage">USAGE</a></li>
485 <li class="toctree-l2"><a class="reference internal" href="#configuration-file">Configuration file</a></li>
486 <li class="toctree-l2"><a class="reference internal" href="#format-of-output">Format of output</a></li>
487 <li class="toctree-l2"><a class="reference internal" href="#options">OPTIONS</a></li>
488 <li class="toctree-l2"><a class="reference internal" href="#examples">EXAMPLES</a></li>
489 <li class="toctree-l2"><a class="reference internal" href="#see-also">SEE ALSO</a></li>
490 </ul>
491 </li>
492 <li class="toctree-l1"><a class="reference internal" href="memstat.html">memstat - Gather statistics from a server</a><ul>
493 <li class="toctree-l2"><a class="reference internal" href="memstat.html#synopsis">SYNOPSIS</a></li>
494 <li class="toctree-l2"><a class="reference internal" href="memstat.html#description">DESCRIPTION</a></li>
495 <li class="toctree-l2"><a class="reference internal" href="memstat.html#options">OPTIONS</a></li>
496 <li class="toctree-l2"><a class="reference internal" href="memstat.html#see-also">SEE ALSO</a></li>
497 </ul>
498 </li>
499 <li class="toctree-l1"><a class="reference internal" href="memexist.html">memexist - Check for the existence of a key</a><ul>
500 <li class="toctree-l2"><a class="reference internal" href="memexist.html#synopsis">SYNOPSIS</a></li>
501 <li class="toctree-l2"><a class="reference internal" href="memexist.html#description">DESCRIPTION</a></li>
502 <li class="toctree-l2"><a class="reference internal" href="memexist.html#options">OPTIONS</a></li>
503 <li class="toctree-l2"><a class="reference internal" href="memexist.html#see-also">SEE ALSO</a></li>
504 </ul>
505 </li>
506 <li class="toctree-l1"><a class="reference internal" href="memparse.html">memparse - Parse an option string</a><ul>
507 <li class="toctree-l2"><a class="reference internal" href="memparse.html#synopsis">SYNOPSIS</a></li>
508 <li class="toctree-l2"><a class="reference internal" href="memparse.html#description">DESCRIPTION</a></li>
509 <li class="toctree-l2"><a class="reference internal" href="memparse.html#options">OPTIONS</a></li>
510 <li class="toctree-l2"><a class="reference internal" href="memparse.html#see-also">SEE ALSO</a></li>
511 </ul>
512 </li>
513 <li class="toctree-l1"><a class="reference internal" href="memping.html">memping - Test to see if a server is available.</a><ul>
514 <li class="toctree-l2"><a class="reference internal" href="memping.html#synopsis">SYNOPSIS</a></li>
515 <li class="toctree-l2"><a class="reference internal" href="memping.html#description">DESCRIPTION</a></li>
516 <li class="toctree-l2"><a class="reference internal" href="memping.html#options">OPTIONS</a></li>
517 <li class="toctree-l2"><a class="reference internal" href="memping.html#see-also">SEE ALSO</a></li>
518 </ul>
519 </li>
520 <li class="toctree-l1"><a class="reference internal" href="memtouch.html">memtouch - Touches a key.</a><ul>
521 <li class="toctree-l2"><a class="reference internal" href="memtouch.html#synopsis">SYNOPSIS</a></li>
522 <li class="toctree-l2"><a class="reference internal" href="memtouch.html#description">DESCRIPTION</a></li>
523 <li class="toctree-l2"><a class="reference internal" href="memtouch.html#options">OPTIONS</a></li>
524 <li class="toctree-l2"><a class="reference internal" href="memtouch.html#see-also">SEE ALSO</a></li>
525 </ul>
526 </li>
527 </ul>
528 <p class="caption"><span class="caption-text">Libhashkit</span></p>
529 <ul>
530 <li class="toctree-l1"><a class="reference internal" href="../libhashkit.html">Introducing libhashkit</a><ul>
531 <li class="toctree-l2"><a class="reference internal" href="../libhashkit.html#description">DESCRIPTION</a></li>
532 <li class="toctree-l2"><a class="reference internal" href="../libhashkit.html#see-also">SEE ALSO</a></li>
533 </ul>
534 </li>
535 <li class="toctree-l1"><a class="reference internal" href="../hashkit_create.html">Creating a hashkit structure</a><ul>
536 <li class="toctree-l2"><a class="reference internal" href="../hashkit_create.html#synopsis">SYNOPSIS</a></li>
537 <li class="toctree-l2"><a class="reference internal" href="../hashkit_create.html#description">DESCRIPTION</a></li>
538 <li class="toctree-l2"><a class="reference internal" href="../hashkit_create.html#return-value">RETURN VALUE</a></li>
539 <li class="toctree-l2"><a class="reference internal" href="../hashkit_create.html#see-also">SEE ALSO</a></li>
540 </ul>
541 </li>
542 <li class="toctree-l1"><a class="reference internal" href="../hashkit_functions.html">Available Hashes</a><ul>
543 <li class="toctree-l2"><a class="reference internal" href="../hashkit_functions.html#synopsis">SYNOPSIS</a></li>
544 <li class="toctree-l2"><a class="reference internal" href="../hashkit_functions.html#description">DESCRIPTION</a></li>
545 <li class="toctree-l2"><a class="reference internal" href="../hashkit_functions.html#return-value">RETURN VALUE</a></li>
546 <li class="toctree-l2"><a class="reference internal" href="../hashkit_functions.html#see-also">SEE ALSO</a></li>
547 </ul>
548 </li>
549 <li class="toctree-l1"><a class="reference internal" href="../hashkit_value.html">hashkit_value</a><ul>
550 <li class="toctree-l2"><a class="reference internal" href="../hashkit_value.html#synopsis">SYNOPSIS</a></li>
551 <li class="toctree-l2"><a class="reference internal" href="../hashkit_value.html#description">DESCRIPTION</a></li>
552 <li class="toctree-l2"><a class="reference internal" href="../hashkit_value.html#return-value">RETURN VALUE</a></li>
553 <li class="toctree-l2"><a class="reference internal" href="../hashkit_value.html#see-also">SEE ALSO</a></li>
554 </ul>
555 </li>
556 </ul>
557
558
559
560 </div>
561 </div>
562 </nav>
563
564 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
565
566
567 <nav class="wy-nav-top" aria-label="top navigation">
568
569 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
570 <a href="../index.html">libmemcached</a>
571
572 </nav>
573
574
575 <div class="wy-nav-content">
576
577 <div class="rst-content">
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595 <div role="navigation" aria-label="breadcrumbs navigation">
596
597 <ul class="wy-breadcrumbs">
598
599 <li><a href="../index.html">Docs</a> &raquo;</li>
600
601 <li>memaslap - Load testing and benchmarking a server</li>
602
603
604 <li class="wy-breadcrumbs-aside">
605
606
607
608 </li>
609
610 </ul>
611
612
613 <hr/>
614 </div>
615 <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
616 <div itemprop="articleBody">
617
618 <div class="section" id="memaslap-load-testing-and-benchmarking-a-server">
619 <h1>memaslap - Load testing and benchmarking a server<a class="headerlink" href="#memaslap-load-testing-and-benchmarking-a-server" title="Permalink to this headline"></a></h1>
620 <div class="section" id="synopsis">
621 <h2>SYNOPSIS<a class="headerlink" href="#synopsis" title="Permalink to this headline"></a></h2>
622 <p>memaslap [options]</p>
623 <dl class="option">
624 <dt id="cmdoption-memaslap-help">
625 <code class="sig-name descname">--help</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-memaslap-help" title="Permalink to this definition"></a></dt>
626 <dd></dd></dl>
627
628 <dl class="envvar">
629 <dt id="envvar-MEMCACHED_SERVERS">
630 <code class="sig-name descname">MEMCACHED_SERVERS</code><a class="headerlink" href="#envvar-MEMCACHED_SERVERS" title="Permalink to this definition"></a></dt>
631 <dd></dd></dl>
632
633 </div>
634 <div class="section" id="description">
635 <h2>DESCRIPTION<a class="headerlink" href="#description" title="Permalink to this headline"></a></h2>
636 <p><strong class="program">memaslap</strong> is a load generation and benchmark tool for memcached
637 servers. It generates configurable workload such as threads, concurrency,
638 connections, run time, overwrite, miss rate, key size, value size, get/set
639 proportion, expected throughput, and so on. Furthermore, it also tests data
640 verification, expire-time verification, UDP, binary protocol, facebook test,
641 replication test, multi-get and reconnection, etc.</p>
642 <p>Memaslap manages network connections like memcached with
643 libevent. Each thread of memaslap is bound with a CPU core, all
644 the threads don’t communicate with each other, and there are several socket
645 connections in each thread. Each connection keeps key size distribution,
646 value size distribution, and command distribution by itself.</p>
647 <p>You can specify servers via the <a class="reference internal" href="memslap.html#cmdoption-memslap-servers"><code class="xref std std-option docutils literal notranslate"><span class="pre">memslap</span> <span class="pre">--servers</span></code></a> option or via the
648 environment variable <span class="target" id="index-0"></span><a class="reference internal" href="#envvar-MEMCACHED_SERVERS"><code class="xref std std-envvar docutils literal notranslate"><span class="pre">MEMCACHED_SERVERS</span></code></a>.</p>
649 </div>
650 <div class="section" id="features">
651 <h2>FEATURES<a class="headerlink" href="#features" title="Permalink to this headline"></a></h2>
652 <p>Memslap is developed to for the following purposes:</p>
653 <p>Manages network connections with libevent asynchronously.</p>
654 <p>Set both TCP and UDP up to use non-blocking IO.</p>
655 <p>Improves parallelism: higher performance in multi-threads environments.</p>
656 <p>Improves time efficiency: faster processing speed.</p>
657 <p>Generates key and value more efficiently; key size distribution and value size distribution are configurable.</p>
658 <p>Supports get, multi-get, and set commands; command distribution is configurable.</p>
659 <p>Supports controllable miss rate and overwrite rate.</p>
660 <p>Supports data and expire-time verification.</p>
661 <p>Supports dumping statistic information periodically.</p>
662 <p>Supports thousands of TCP connections.</p>
663 <p>Supports binary protocol.</p>
664 <p>Supports facebook test (set with TCP and multi-get with UDP) and replication test.</p>
665 </div>
666 <div class="section" id="details">
667 <h2>DETAILS<a class="headerlink" href="#details" title="Permalink to this headline"></a></h2>
668 <div class="section" id="effective-implementation-of-network">
669 <h3>Effective implementation of network.<a class="headerlink" href="#effective-implementation-of-network" title="Permalink to this headline"></a></h3>
670 <p>For memaslap, both TCP and UDP use non-blocking network IO. All
671 the network events are managed by libevent as memcached. The network module
672 of memaslap is similar to memcached. Libevent can ensure
673 memaslap can handle network very efficiently.</p>
674 </div>
675 <div class="section" id="effective-implementation-of-multi-threads-and-concurrency">
676 <h3>Effective implementation of multi-threads and concurrency<a class="headerlink" href="#effective-implementation-of-multi-threads-and-concurrency" title="Permalink to this headline"></a></h3>
677 <p>Memslap has the similar implementation of multi-threads to
678 memcached. Memslap creates one or more self-governed threads;
679 each thread is bound with one CPU core if the system tests setting CPU
680 core affinity.</p>
681 <p>In addition, each thread has a libevent to manage the events of the network;
682 each thread has one or more self-governed concurrency; and each
683 concurrency has one or more socket connections. All the concurrent tasks don’t
684 communicate with each other even though they are in the same thread.</p>
685 <p>Memslap can create thousands of socket connections, and each
686 concurrency has tens of socket connections. Each concurrency randomly or
687 sequentially selects one socket connection from its socket connection pool
688 to run, so memaslap can ensure each concurrency handles one
689 socket connection at any given time. Users can specify the number of
690 concurrency and socket connections of each concurrency according to their
691 expected workload.</p>
692 </div>
693 <div class="section" id="effective-implementation-of-generating-key-and-value">
694 <h3>Effective implementation of generating key and value<a class="headerlink" href="#effective-implementation-of-generating-key-and-value" title="Permalink to this headline"></a></h3>
695 <p>In order to improve time efficiency and space efficiency,
696 memaslap creates a random characters table with 10M characters. All the
697 suffixes of keys and values are generated from this random characters table.</p>
698 <p>Memslap uses the offset in the character table and the length
699 of the string to identify a string. It can save much memory.
700 Each key contains two parts, a prefix and a suffix. The prefix is an
701 uint64_t, 8 bytes. In order to verify the data set before,
702 memaslap need to ensure each key is unique, so it uses the prefix to identify
703 a key. The prefix cannot include illegal characters, such as ‘r’, ‘n’,
7040’ and ‘ ‘. And memaslap has an algorithm to ensure that.</p>
705 <p>Memslap doesn’t generate all the objects (key-value pairs) at
706 the beginning. It only generates enough objects to fill the task window
707 (default 10K objects) of each concurrency. Each object has the following
708 basic information, key prefix, key suffix offset in the character table, key
709 length, value offset in the character table, and value length.</p>
710 <p>In the work process, each concurrency sequentially or randomly selects an
711 object from the window to do set operation or get operation. At the same
712 time, each concurrency kicks objects out of its window and adds new object
713 into it.</p>
714 </div>
715 <div class="section" id="simple-but-useful-task-scheduling">
716 <h3>Simple but useful task scheduling<a class="headerlink" href="#simple-but-useful-task-scheduling" title="Permalink to this headline"></a></h3>
717 <p>Memslap uses libevent to schedule all concurrent tasks of
718 threads, and each concurrency schedules tasks based on the local task
719 window. Memslap assumes that if each concurrency keeps the same
720 key distribution, value distribution and commands distribution, from
721 outside, memaslap keeps all the distribution as a whole.
722 Each task window includes a lot of objects, each object stores its basic
723 information, such as key, value, expire time, and so on. At any time, all
724 the objects in the window keep the same and fixed key and value
725 distribution. If an object is overwritten, the value of the object will be
726 updated. Memslap verifies the data or expire-time according to
727 the object information stored in the task window.</p>
728 <p>Libevent selects which concurrency to handle based on a specific network
729 event. Then the concurrency selects which command (get or set) to operate
730 based on the command distribution. If it needs to kick out an old object and
731 add a new object, in order to keep the same key and value distribution, the
732 new object must have the same key length and value length.</p>
733 <p>If memcached server has two cache layers (memory and SSD), running
734 memaslap with different window sizes can get different cache
735 miss rates. If memaslap adds enough objects into the windows at
736 the beginning, and the cache of memcached cannot store all the objects
737 initialized, then memaslap will get some objects from the second
738 cache layer. It causes the first cache layer to miss. So the user can
739 specify the window size to get the expected miss rate of the first cache
740 layer.</p>
741 </div>
742 <div class="section" id="useful-implementation-of-multi-servers-udp-tcp-multi-get-and-binary-protocol">
743 <h3>Useful implementation of multi-servers , UDP, TCP, multi-get and binary protocol<a class="headerlink" href="#useful-implementation-of-multi-servers-udp-tcp-multi-get-and-binary-protocol" title="Permalink to this headline"></a></h3>
744 <p>Because each thread is self-governed, memaslap can assign
745 different threads to handle different memcached servers. This is just one of
746 the ways in which memaslap tests multiple servers. The only
747 limitation is that the number of servers cannot be greater than the number
748 of threads. The other way to test multiple servers is for replication
749 test. Each concurrency has one socket connection to each memcached server.
750 For the implementation, memaslap can set some objects to one
751 memcached server, and get these objects from the other servers.</p>
752 <p>By default, Memslap does single get. If the user specifies
753 multi-get option, memaslap will collect enough get commands and
754 pack and send the commands together.</p>
755 <p>Memslap tests both the ASCII protocol and binary protocol,
756 but it runs on the ASCII protocol by default.
757 Memslap by default runs on the TCP protocol, but it also
758 tests UDP. Because UDP is unreliable, dropped packages and out-of-order
759 packages may occur. Memslap creates a memory buffer to handle
760 these problems. Memslap tries to read all the response data of
761 one command from the server and reorders the response data. If some packages
762 get lost, the waiting timeout mechanism can ensure half-baked packages will
763 be discarded and the next command will be sent.</p>
764 </div>
765 </div>
766 <div class="section" id="usage">
767 <h2>USAGE<a class="headerlink" href="#usage" title="Permalink to this headline"></a></h2>
768 <p>Below are some usage samples:</p>
769 <p>memaslap -s 127.0.0.1:11211 -S 5s</p>
770 <p>memaslap -s 127.0.0.1:11211 -t 2m -v 0.2 -e 0.05 -b</p>
771 <p>memaslap -s 127.0.0.1:11211 -F config -t 2m -w 40k -S 20s -o 0.2</p>
772 <p>memaslap -s 127.0.0.1:11211 -F config -t 2m -T 4 -c 128 -d 20 -P 40k</p>
773 <p>memaslap -s 127.0.0.1:11211 -F config -t 2m -d 50 -a -n 40</p>
774 <p>memaslap -s 127.0.0.1:11211,127.0.0.1:11212 -F config -t 2m</p>
775 <p>memaslap -s 127.0.0.1:11211,127.0.0.1:11212 -F config -t 2m -p 2</p>
776 <p>The user must specify one server at least to run memaslap. The
777 rest of the parameters have default values, as shown below:</p>
778 <p>Thread number = 1 Concurrency = 16</p>
779 <p>Run time = 600 seconds Configuration file = NULL</p>
780 <p>Key size = 64 Value size = 1024</p>
781 <p>Get/set = 9:1 Window size = 10k</p>
782 <p>Execute number = 0 Single get = true</p>
783 <p>Multi-get = false Number of sockets of each concurrency = 1</p>
784 <p>Reconnect = false Data verification = false</p>
785 <p>Expire-time verification = false ASCII protocol = true</p>
786 <p>Binary protocol = false Dumping statistic information periodically = false</p>
787 <p>Overwrite proportion = 0% UDP = false</p>
788 <p>TCP = true Limit throughput = false</p>
789 <p>Facebook test = false Replication test = false</p>
790 <div class="section" id="key-size-value-size-and-command-distribution">
791 <h3>Key size, value size and command distribution.<a class="headerlink" href="#key-size-value-size-and-command-distribution" title="Permalink to this headline"></a></h3>
792 <p>All the distributions are read from the configuration file specified by user
793 with “—cfg_cmd” option. If the user does not specify a configuration file,
794 memaslap will run with the default distribution (key size = 64,
795 value size = 1024, get/set = 9:1). For information on how to edit the
796 configuration file, refer to the “Configuration File” section.</p>
797 <p>The minimum key size is 16 bytes; the maximum key size is 250 bytes. The
798 precision of proportion is 0.001. The proportion of distribution will be
799 rounded to 3 decimal places.</p>
800 <p>The minimum value size is 1 bytes; the maximum value size is 1M bytes. The
801 precision of proportion is 0.001. The proportion of distribution will be
802 rounded to 3 decimal places.
803 Currently, memaslap only tests set and get commands. And it
804 testss 100% set and 100% get. For 100% get, it will preset some objects to
805 the server.</p>
806 </div>
807 <div class="section" id="multi-thread-and-concurrency">
808 <h3>Multi-thread and concurrency<a class="headerlink" href="#multi-thread-and-concurrency" title="Permalink to this headline"></a></h3>
809 <p>The high performance of memaslap benefits from the special
810 schedule of thread and concurrency. It’s important to specify the proper
811 number of them. The default number of threads is 1; the default number of
812 concurrency is 16. The user can use “—threads” and “–concurrency” to
813 specify these variables.</p>
814 <p>If the system tests setting CPU affinity and the number of threads
815 specified by the user is greater than 1, memaslap will try to
816 bind each thread to a different CPU core. So if you want to get the best
817 performance memaslap, it is better to specify the number of
818 thread equal to the number of CPU cores. The number of threads specified by
819 the user can also be less or greater than the number of CPU cores. Because
820 of the limitation of implementation, the number of concurrencies could be
821 the multiple of the number of threads.</p>
822 <ol class="arabic simple">
823 <li><p>For 8 CPU cores system</p></li>
824 </ol>
825 <p>For example:</p>
826 <p>–threads=2 –concurrency=128</p>
827 <p>–threads=8 –concurrency=128</p>
828 <p>–threads=8 –concurrency=256</p>
829 <p>–threads=12 –concurrency=144</p>
830 <ol class="arabic simple" start="2">
831 <li><p>For 16 CPU cores system</p></li>
832 </ol>
833 <p>For example:</p>
834 <p>–threads=8 –concurrency=128</p>
835 <p>–threads=16 –concurrency=256</p>
836 <p>–threads=16 –concurrency=512</p>
837 <p>–threads=24 –concurrency=288</p>
838 <p>The memaslap performs very well, when
839 used to test the performance of memcached servers.
840 Most of the time, the bottleneck is the network or
841 the server. If for some reason the user wants to
842 limit the performance of memaslap, there
843 are two ways to do this:</p>
844 <p>Decrease the number of threads and concurrencies.
845 Use the option “–tps” that memaslap
846 provides to limit the throughput. This option allows
847 the user to get the expected throughput. For
848 example, assume that the maximum throughput is 50
849 kops/s for a specific configuration, you can specify
850 the throughput equal to or less than the maximum
851 throughput using “–tps” option.</p>
852 </div>
853 <div class="section" id="window-size">
854 <h3>Window size<a class="headerlink" href="#window-size" title="Permalink to this headline"></a></h3>
855 <p>Most of the time, the user does not need to specify the window size. The
856 default window size is 10k. For Schooner Memcached, the user can specify
857 different window sizes to get different cache miss rates based on the test
858 case. Memslap testss cache miss rate between 0% and 100%.
859 If you use this utility to test the performance of Schooner Memcached, you
860 can specify a proper window size to get the expected cache miss rate. The
861 formula for calculating window size is as follows:</p>
862 <p>Assume that the key size is 128 bytes, and the value size is 2048 bytes, and
863 concurrency=128.</p>
864 <p>1. Small cache cache_size=1M, 100% cache miss (all data get from SSD).
865 win_size=10k</p>
866 <ol class="arabic simple" start="2">
867 <li><p>cache_size=4G</p></li>
868 </ol>
869 <p>(1). cache miss rate 0%</p>
870 <p>win_size=8k</p>
871 <p>(2). cache miss rate 5%</p>
872 <p>win_size=11k</p>
873 <ol class="arabic simple" start="3">
874 <li><p>cache_size=16G</p></li>
875 </ol>
876 <p>(1). cache miss rate 0%</p>
877 <p>win_size=32k</p>
878 <p>(2). cache miss</p>
879 <p>rate 5%</p>
880 <p>win_size=46k</p>
881 <p>The formula for calculating window size for cache miss rate 0%:</p>
882 <p>cache_size / concurrency / (key_size + value_size) * 0.5</p>
883 <p>The formula for calculating window size for cache miss rate 5%:</p>
884 <p>cache_size / concurrency / (key_size + value_size) * 0.7</p>
885 </div>
886 <div class="section" id="verification">
887 <h3>Verification<a class="headerlink" href="#verification" title="Permalink to this headline"></a></h3>
888 <p>Memslap testss both data verification and expire-time
889 verification. The user can use “–verify=” or “-v” to specify the proportion
890 of data verification. In theory, it testss 100% data verification. The
891 user can use “–exp_verify=” or “-e” to specify the proportion of
892 expire-time verification. In theory, it testss 100% expire-time
893 verification. Specify the “–verbose” options to get more detailed error
894 information.</p>
895 <p>For example: –exp_verify=0.01 –verify=0.1 , it means that 1% of the objects
896 set with expire-time, 10% of the objects gotten will be verified. If the
897 objects are gotten, memaslap will verify the expire-time and
898 value.</p>
899 </div>
900 <div class="section" id="multi-servers-and-multi-config">
901 <h3>multi-servers and multi-config<a class="headerlink" href="#multi-servers-and-multi-config" title="Permalink to this headline"></a></h3>
902 <p>Memslap testss multi-servers based on self-governed thread.
903 There is a limitation that the number of servers cannot be greater than the
904 number of threads. Memslap assigns one thread to handle one
905 server at least. The user can use the “–servers=” or “-s” option to specify
906 multi-servers.</p>
907 <p>For example:</p>
908 <p>–servers=10.1.1.1:11211,10.1.1.2:11212,10.1.1.3:11213 –threads=6 –concurrency=36</p>
909 <p>The above command means that there are 6 threads, with each thread having 6
910 concurrencies and that threads 0 and 3 handle server 0 (10.1.1.1); threads 1
911 and 4 handle server 1 (10.1.1.2); and thread 2 and 5 handle server 2
912 (10.1.1.3).</p>
913 <p>All the threads and concurrencies in memaslap are self-governed.</p>
914 <p>So is memaslap. The user can start up several
915 memaslap instances. The user can run memaslap on different client
916 machines to communicate with the same memcached server at the same. It is
917 recommended that the user start different memaslap on different
918 machines using the same configuration.</p>
919 </div>
920 <div class="section" id="run-with-execute-number-mode-or-time-mode">
921 <h3>Run with execute number mode or time mode<a class="headerlink" href="#run-with-execute-number-mode-or-time-mode" title="Permalink to this headline"></a></h3>
922 <p>The default memaslap runs with time mode. The default run time
923 is 10 minutes. If it times out, memaslap will exit. Do not
924 specify both execute number mode and time mode at the same time; just
925 specify one instead.</p>
926 <p>For example:</p>
927 <p>–time=30s (It means the test will run 30 seconds.)</p>
928 <p>–execute_number=100000 (It means that after running 100000 commands, the test will exit.)</p>
929 </div>
930 <div class="section" id="dump-statistic-information-periodically">
931 <h3>Dump statistic information periodically.<a class="headerlink" href="#dump-statistic-information-periodically" title="Permalink to this headline"></a></h3>
932 <p>The user can use “–stat_freq=” or “-S” to specify the frequency.</p>
933 <p>For example:</p>
934 <p>–stat_freq=20s</p>
935 <p>Memslap will dump the statistics of the commands (get and set) at the frequency of every 20
936 seconds.</p>
937 <p>For more information on the format of dumping statistic information, refer to “Format of Output” section.</p>
938 </div>
939 <div class="section" id="multi-get">
940 <h3>Multi-get<a class="headerlink" href="#multi-get" title="Permalink to this headline"></a></h3>
941 <p>The user can use “–division=” or “-d” to specify multi-get keys count.
942 Memslap by default does single get with TCP. Memslap also testss data
943 verification and expire-time verification for multi-get.</p>
944 <p>Memslap testss multi-get with both TCP and UDP. Because of
945 the different implementation of the ASCII protocol and binary protocol,
946 there are some differences between the two. For the ASCII protocol,
947 memaslap sends one “multi-get” to the server once. For the
948 binary protocol, memaslap sends several single get commands
949 together as “multi-get” to the server.</p>
950 </div>
951 <div class="section" id="udp-and-tcp">
952 <h3>UDP and TCP<a class="headerlink" href="#udp-and-tcp" title="Permalink to this headline"></a></h3>
953 <p>Memslap testss both UDP and TCP. For TCP,
954 memaslap does not reconnect the memcached server if socket connections are
955 lost. If all the socket connections are lost or memcached server crashes,
956 memaslap will exit. If the user specifies the “–reconnect”
957 option when socket connections are lost, it will reconnect them.</p>
958 <p>User can use “–udp” to enable the UDP feature, but UDP comes with some
959 limitations:</p>
960 <p>UDP cannot set data more than 1400 bytes.</p>
961 <p>UDP is not tested by the binary protocol because the binary protocol of
962 memcached does not tests that.</p>
963 <p>UDP doesn’t tests reconnection.</p>
964 </div>
965 <div class="section" id="facebook-test">
966 <h3>Facebook test<a class="headerlink" href="#facebook-test" title="Permalink to this headline"></a></h3>
967 <p>Set data with TCP and multi-get with UDP. Specify the following options:</p>
968 <p>“–facebook –division=50</p>
969 <p>If you want to create thousands of TCP connections, specify the</p>
970 <p>“–conn_sock=” option.</p>
971 <p>For example: –facebook –division=50 –conn_sock=200</p>
972 <p>The above command means that memaslap will do facebook test,
973 each concurrency has 200 socket TCP connections and one UDP socket.</p>
974 <p>Memslap sets objects with the TCP socket, and multi-gets 50
975 objects once with the UDP socket.</p>
976 <p>If you specify “–division=50”, the key size must be less that 25 bytes
977 because the UDP packet size is 1400 bytes.</p>
978 </div>
979 <div class="section" id="replication-test">
980 <h3>Replication test<a class="headerlink" href="#replication-test" title="Permalink to this headline"></a></h3>
981 <p>For replication test, the user must specify at least two memcached servers.
982 The user can use “—rep_write=” option to enable feature.</p>
983 <p>For example:</p>
984 <p>–servers=10.1.1.1:11211,10.1.1.2:11212 –rep_write=2</p>
985 <p>The above command means that there are 2 replication memcached servers,
986 memaslap will set objects to both server 0 and server 1, get
987 objects which are set to server 0 before from server 1, and also get objects
988 which are set to server 1 before from server 0. If server 0 crashes,
989 memaslap will only get objects from server 1. If server 0 comes
990 back to life again, memaslap will reconnect server 0. If both
991 server 0 and server 1 crash, memaslap will exit.</p>
992 </div>
993 <div class="section" id="supports-thousands-of-tcp-connections">
994 <h3>Supports thousands of TCP connections<a class="headerlink" href="#supports-thousands-of-tcp-connections" title="Permalink to this headline"></a></h3>
995 <p>Start memaslap with “–conn_sock=” or “-n” to enable this
996 feature. Make sure that your system can tests opening thousands of files
997 and creating thousands of sockets. However, this feature does not tests
998 reconnection if sockets disconnect.</p>
999 <p>For example:</p>
1000 <p>–threads=8 –concurrency=128 –conn_sock=128</p>
1001 <p>The above command means that memaslap starts up 8 threads, each
1002 thread has 16 concurrencies, each concurrency has 128 TCP socket
1003 connections, and the total number of TCP socket connections is 128 * 128 =
1004 16384.</p>
1005 </div>
1006 <div class="section" id="supports-binary-protocol">
1007 <h3>Supports binary protocol<a class="headerlink" href="#supports-binary-protocol" title="Permalink to this headline"></a></h3>
1008 <p>Start memaslap with “–binary” or “-B” options to enable this
1009 feature. It testss all the above features except UDP, because the latest
1010 memcached 1.3.3 does not implement binary UDP protocol.</p>
1011 <p>For example:</p>
1012 <p>–binary</p>
1013 <p>Since memcached 1.3.3 doesn’t implement binary UDP protocol,
1014 memaslap does not tests UDP. In addition, memcached 1.3.3 does not tests
1015 multi-get. If you specify “–division=50” option, it just sends 50 get
1016 commands together as “multi-get” to the server.</p>
1017 </div>
1018 </div>
1019 <div class="section" id="configuration-file">
1020 <h2>Configuration file<a class="headerlink" href="#configuration-file" title="Permalink to this headline"></a></h2>
1021 <p>This section describes the format of the configuration file. By default
1022 when no configuration file is specified memaslap reads the default
1023 one located at ~/.memaslap.cnf.</p>
1024 <p>Below is a sample configuration file:</p>
1025 <div class="highlight-perl notranslate"><div class="highlight"><pre><span></span><span class="o">---------------------------------------------------------------------------</span>
1026 <span class="c1">#comments should start with &#39;#&#39;</span>
1027 <span class="c1">#key</span>
1028 <span class="c1">#start_len end_len proportion</span>
1029 <span class="c1">#</span>
1030 <span class="c1">#key length range from start_len to end_len</span>
1031 <span class="c1">#start_len must be equal to or greater than 16</span>
1032 <span class="c1">#end_len must be equal to or less than 250</span>
1033 <span class="c1">#start_len must be equal to or greater than end_len</span>
1034 <span class="c1">#memaslap will generate keys according to the key range</span>
1035 <span class="c1">#proportion: indicates keys generated from one range accounts for the total</span>
1036 <span class="n">generated</span> <span class="nb">keys</span>
1037 <span class="c1">#</span>
1038 <span class="c1">#example1: key range 16~100 accounts for 80%</span>
1039 <span class="c1"># key range 101~200 accounts for 10%</span>
1040 <span class="c1"># key range 201~250 accounts for 10%</span>
1041 <span class="c1"># total should be 1 (0.8+0.1+0.1 = 1)</span>
1042 <span class="c1">#</span>
1043 <span class="c1"># 16 100 0.8</span>
1044 <span class="c1"># 101 200 0.1</span>
1045 <span class="c1"># 201 249 0.1</span>
1046 <span class="c1">#</span>
1047 <span class="c1">#example2: all keys length are 128 bytes</span>
1048 <span class="c1">#</span>
1049 <span class="c1"># 128 128 1</span>
1050 <span class="n">key</span>
1051 <span class="mi">128</span> <span class="mi">128</span> <span class="mi">1</span>
1052 <span class="c1">#value</span>
1053 <span class="c1">#start_len end_len proportion</span>
1054 <span class="c1">#</span>
1055 <span class="c1">#value length range from start_len to end_len</span>
1056 <span class="c1">#start_len must be equal to or greater than 1</span>
1057 <span class="c1">#end_len must be equal to or less than 1M</span>
1058 <span class="c1">#start_len must be equal to or greater than end_len</span>
1059 <span class="c1">#memaslap will generate values according to the value range</span>
1060 <span class="c1">#proportion: indicates values generated from one range accounts for the</span>
1061 <span class="n">total</span> <span class="n">generated</span> <span class="nb">values</span>
1062 <span class="c1">#</span>
1063 <span class="c1">#example1: value range 1~1000 accounts for 80%</span>
1064 <span class="c1"># value range 1001~10000 accounts for 10%</span>
1065 <span class="c1"># value range 10001~100000 accounts for 10%</span>
1066 <span class="c1"># total should be 1 (0.8+0.1+0.1 = 1)</span>
1067 <span class="c1">#</span>
1068 <span class="c1"># 1 1000 0.8</span>
1069 <span class="c1"># 1001 10000 0.1</span>
1070 <span class="c1"># 10001 100000 0.1</span>
1071 <span class="c1">#</span>
1072 <span class="c1">#example2: all value length are 128 bytes</span>
1073 <span class="c1">#</span>
1074 <span class="c1"># 128 128 1</span>
1075 <span class="n">value</span>
1076 <span class="mi">2048</span> <span class="mi">2048</span> <span class="mi">1</span>
1077 <span class="c1">#cmd</span>
1078 <span class="c1">#cmd_type cmd_proportion</span>
1079 <span class="c1">#</span>
1080 <span class="c1">#currently memaslap only testss get and set command.</span>
1081 <span class="c1">#</span>
1082 <span class="c1">#cmd_type</span>
1083 <span class="c1">#set 0</span>
1084 <span class="c1">#get 1</span>
1085 <span class="c1">#</span>
1086 <span class="c1">#example: set command accounts for 50%</span>
1087 <span class="c1"># get command accounts for 50%</span>
1088 <span class="c1"># total should be 1 (0.5+0.5 = 1)</span>
1089 <span class="c1">#</span>
1090 <span class="c1"># cmd</span>
1091 <span class="c1"># 0 0.5</span>
1092 <span class="c1"># 1 0.5</span>
1093 <span class="n">cmd</span>
1094 <span class="mi">0</span> <span class="mf">0.1</span>
1095 <span class="mf">1.0</span> <span class="mf">0.9</span>
1096 </pre></div>
1097 </div>
1098 </div>
1099 <div class="section" id="format-of-output">
1100 <h2>Format of output<a class="headerlink" href="#format-of-output" title="Permalink to this headline"></a></h2>
1101 <p>At the beginning, memaslap displays some configuration information as follows:</p>
1102 <p>servers : 127.0.0.1:11211</p>
1103 <p>threads count: 1</p>
1104 <p>concurrency: 16</p>
1105 <p>run time: 20s</p>
1106 <p>windows size: 10k</p>
1107 <p>set proportion: set_prop=0.10</p>
1108 <p>get proportion: get_prop=0.90</p>
1109 <div class="section" id="where">
1110 <h3>Where<a class="headerlink" href="#where" title="Permalink to this headline"></a></h3>
1111 <p>servers : “servers”</p>
1112 <blockquote>
1113 <div><p>The servers used by memaslap.</p>
1114 </div></blockquote>
1115 <p>threads count</p>
1116 <blockquote>
1117 <div><p>The number of threads memaslap runs with.</p>
1118 </div></blockquote>
1119 <p>concurrency</p>
1120 <blockquote>
1121 <div><p>The number of concurrencies memaslap runs with.</p>
1122 </div></blockquote>
1123 <p>run time</p>
1124 <blockquote>
1125 <div><p>How long to run memaslap.</p>
1126 </div></blockquote>
1127 <p>windows size</p>
1128 <blockquote>
1129 <div><p>The task window size of each concurrency.</p>
1130 </div></blockquote>
1131 <p>set proportion</p>
1132 <blockquote>
1133 <div><p>The proportion of set command.</p>
1134 </div></blockquote>
1135 <p>get proportion</p>
1136 <blockquote>
1137 <div><p>The proportion of get command.</p>
1138 </div></blockquote>
1139 <p>The output of dynamic statistics is something like this:</p>
1140 <div class="highlight-perl notranslate"><div class="highlight"><pre><span></span><span class="o">---------------------------------------------------------------------------------------------------------------------------------</span>
1141 <span class="n">Get</span> <span class="n">Statistics</span>
1142 <span class="n">Type</span> <span class="n">Time</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="n">Ops</span> <span class="n">TPS</span><span class="p">(</span><span class="n">ops</span><span class="sr">/s) Net(M/s</span><span class="p">)</span> <span class="n">Get_miss</span> <span class="n">Min</span><span class="p">(</span><span class="n">us</span><span class="p">)</span> <span class="n">Max</span><span class="p">(</span><span class="n">us</span><span class="p">)</span>
1143 <span class="n">Avg</span><span class="p">(</span><span class="n">us</span><span class="p">)</span> <span class="n">Std_dev</span> <span class="n">Geo_dist</span>
1144 <span class="n">Period</span> <span class="mi">5</span> <span class="mi">345826</span> <span class="mi">69165</span> <span class="mf">65.3</span> <span class="mi">0</span> <span class="mi">27</span> <span class="mi">2198</span> <span class="mi">203</span>
1145 <span class="mf">95.43</span> <span class="mf">177.29</span>
1146 <span class="n">Global</span> <span class="mi">20</span> <span class="mi">1257935</span> <span class="mi">62896</span> <span class="mf">71.8</span> <span class="mi">0</span> <span class="mi">26</span> <span class="mi">3791</span> <span class="mi">224</span>
1147 <span class="mf">117.79</span> <span class="mf">192.60</span>
1148
1149
1150 <span class="n">Set</span> <span class="n">Statistics</span>
1151 <span class="n">Type</span> <span class="n">Time</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="n">Ops</span> <span class="n">TPS</span><span class="p">(</span><span class="n">ops</span><span class="sr">/s) Net(M/s</span><span class="p">)</span> <span class="n">Get_miss</span> <span class="n">Min</span><span class="p">(</span><span class="n">us</span><span class="p">)</span> <span class="n">Max</span><span class="p">(</span><span class="n">us</span><span class="p">)</span>
1152 <span class="n">Avg</span><span class="p">(</span><span class="n">us</span><span class="p">)</span> <span class="n">Std_dev</span> <span class="n">Geo_dist</span>
1153 <span class="n">Period</span> <span class="mi">5</span> <span class="mi">38425</span> <span class="mi">7685</span> <span class="mf">7.3</span> <span class="mi">0</span> <span class="mi">42</span> <span class="mi">628</span> <span class="mi">240</span>
1154 <span class="mf">88.05</span> <span class="mf">220.21</span>
1155 <span class="n">Global</span> <span class="mi">20</span> <span class="mi">139780</span> <span class="mi">6989</span> <span class="mf">8.0</span> <span class="mi">0</span> <span class="mi">37</span> <span class="mi">3790</span> <span class="mi">253</span>
1156 <span class="mf">117.93</span> <span class="mf">224.83</span>
1157
1158
1159 <span class="n">Total</span> <span class="n">Statistics</span>
1160 <span class="n">Type</span> <span class="n">Time</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="n">Ops</span> <span class="n">TPS</span><span class="p">(</span><span class="n">ops</span><span class="sr">/s) Net(M/s</span><span class="p">)</span> <span class="n">Get_miss</span> <span class="n">Min</span><span class="p">(</span><span class="n">us</span><span class="p">)</span> <span class="n">Max</span><span class="p">(</span><span class="n">us</span><span class="p">)</span>
1161 <span class="n">Avg</span><span class="p">(</span><span class="n">us</span><span class="p">)</span> <span class="n">Std_dev</span> <span class="n">Geo_dist</span>
1162 <span class="n">Period</span> <span class="mi">5</span> <span class="mi">384252</span> <span class="mi">76850</span> <span class="mf">72.5</span> <span class="mi">0</span> <span class="mi">27</span> <span class="mi">2198</span> <span class="mi">207</span>
1163 <span class="mf">94.72</span> <span class="mf">181.18</span>
1164 <span class="n">Global</span> <span class="mi">20</span> <span class="mi">1397720</span> <span class="mi">69886</span> <span class="mf">79.7</span> <span class="mi">0</span> <span class="mi">26</span> <span class="mi">3791</span> <span class="mi">227</span>
1165 <span class="mf">117.93</span> <span class="mf">195.60</span>
1166 <span class="o">---------------------------------------------------------------------------------------------------------------------------------</span>
1167 </pre></div>
1168 </div>
1169 </div>
1170 <div class="section" id="id1">
1171 <h3>Where<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h3>
1172 <p>Get Statistics</p>
1173 <blockquote>
1174 <div><p>Statistics information of get command</p>
1175 </div></blockquote>
1176 <p>Set Statistics</p>
1177 <blockquote>
1178 <div><p>Statistics information of set command</p>
1179 </div></blockquote>
1180 <p>Total Statistics</p>
1181 <blockquote>
1182 <div><p>Statistics information of both get and set command</p>
1183 </div></blockquote>
1184 <p>Period</p>
1185 <blockquote>
1186 <div><p>Result within a period</p>
1187 </div></blockquote>
1188 <p>Global</p>
1189 <blockquote>
1190 <div><p>Accumulated results</p>
1191 </div></blockquote>
1192 <p>Ops</p>
1193 <blockquote>
1194 <div><p>Total operations</p>
1195 </div></blockquote>
1196 <p>TPS</p>
1197 <blockquote>
1198 <div><p>Throughput, operations/second</p>
1199 </div></blockquote>
1200 <p>Net</p>
1201 <blockquote>
1202 <div><p>The rate of network</p>
1203 </div></blockquote>
1204 <p>Get_miss</p>
1205 <blockquote>
1206 <div><p>How many objects can’t be gotten</p>
1207 </div></blockquote>
1208 <p>Min</p>
1209 <blockquote>
1210 <div><p>The minimum response time</p>
1211 </div></blockquote>
1212 <p>Max</p>
1213 <blockquote>
1214 <div><p>The maximum response time</p>
1215 </div></blockquote>
1216 <p>Avg:</p>
1217 <blockquote>
1218 <div><p>The average response time</p>
1219 </div></blockquote>
1220 <p>Std_dev</p>
1221 <blockquote>
1222 <div><p>Standard deviation of response time</p>
1223 </div></blockquote>
1224 <p>Geo_dist</p>
1225 <blockquote>
1226 <div><p>Geometric distribution based on natural exponential function</p>
1227 </div></blockquote>
1228 <p>At the end, memaslap will output something like this:</p>
1229 <div class="highlight-perl notranslate"><div class="highlight"><pre><span></span><span class="o">---------------------------------------------------------------------------------------------------------------------------------</span>
1230 <span class="n">Get</span> <span class="n">Statistics</span> <span class="p">(</span><span class="mi">1257956</span> <span class="n">events</span><span class="p">)</span>
1231 <span class="n">Min:</span> <span class="mi">26</span>
1232 <span class="n">Max:</span> <span class="mi">3791</span>
1233 <span class="n">Avg:</span> <span class="mi">224</span>
1234 <span class="n">Geo:</span> <span class="mf">192.60</span>
1235 <span class="n">Std:</span> <span class="mf">116.23</span>
1236 <span class="n">Log2</span> <span class="n">Dist:</span>
1237 <span class="mi">4</span><span class="p">:</span> <span class="mi">0</span> <span class="mi">10</span> <span class="mi">84490</span> <span class="mi">215345</span>
1238 <span class="mi">8</span><span class="p">:</span> <span class="mi">484890</span> <span class="mi">459823</span> <span class="mi">12543</span> <span class="mi">824</span>
1239 <span class="mi">12</span><span class="p">:</span> <span class="mi">31</span>
1240
1241 <span class="n">Set</span> <span class="n">Statistics</span> <span class="p">(</span><span class="mi">139782</span> <span class="n">events</span><span class="p">)</span>
1242 <span class="n">Min:</span> <span class="mi">37</span>
1243 <span class="n">Max:</span> <span class="mi">3790</span>
1244 <span class="n">Avg:</span> <span class="mi">253</span>
1245 <span class="n">Geo:</span> <span class="mf">224.84</span>
1246 <span class="n">Std:</span> <span class="mf">116.83</span>
1247 <span class="n">Log2</span> <span class="n">Dist:</span>
1248 <span class="mi">4</span><span class="p">:</span> <span class="mi">0</span> <span class="mi">0</span> <span class="mi">4200</span> <span class="mi">16988</span>
1249 <span class="mi">8</span><span class="p">:</span> <span class="mi">50784</span> <span class="mi">65574</span> <span class="mi">2064</span> <span class="mi">167</span>
1250 <span class="mi">12</span><span class="p">:</span> <span class="mi">5</span>
1251
1252 <span class="n">Total</span> <span class="n">Statistics</span> <span class="p">(</span><span class="mi">1397738</span> <span class="n">events</span><span class="p">)</span>
1253 <span class="n">Min:</span> <span class="mi">26</span>
1254 <span class="n">Max:</span> <span class="mi">3791</span>
1255 <span class="n">Avg:</span> <span class="mi">227</span>
1256 <span class="n">Geo:</span> <span class="mf">195.60</span>
1257 <span class="n">Std:</span> <span class="mf">116.60</span>
1258 <span class="n">Log2</span> <span class="n">Dist:</span>
1259 <span class="mi">4</span><span class="p">:</span> <span class="mi">0</span> <span class="mi">10</span> <span class="mi">88690</span> <span class="mi">232333</span>
1260 <span class="mi">8</span><span class="p">:</span> <span class="mi">535674</span> <span class="mi">525397</span> <span class="mi">14607</span> <span class="mi">991</span>
1261 <span class="mi">12</span><span class="p">:</span> <span class="mi">36</span>
1262
1263 <span class="n">cmd_get:</span> <span class="mi">1257969</span>
1264 <span class="n">cmd_set:</span> <span class="mi">139785</span>
1265 <span class="n">get_misses:</span> <span class="mi">0</span>
1266 <span class="n">verify_misses:</span> <span class="mi">0</span>
1267 <span class="n">verify_failed:</span> <span class="mi">0</span>
1268 <span class="n">expired_get:</span> <span class="mi">0</span>
1269 <span class="n">unexpired_unget:</span> <span class="mi">0</span>
1270 <span class="n">written_bytes:</span> <span class="mi">242516030</span>
1271 <span class="n">read_bytes:</span> <span class="mi">1003702556</span>
1272 <span class="n">object_bytes:</span> <span class="mi">152086080</span>
1273 <span class="n">packet_disorder:</span> <span class="mi">0</span>
1274 <span class="n">packet_drop:</span> <span class="mi">0</span>
1275 <span class="n">udp_timeout:</span> <span class="mi">0</span>
1276
1277 <span class="n">Run</span> <span class="nb">time</span><span class="p">:</span> <span class="mf">20.0</span><span class="n">s</span> <span class="n">Ops:</span> <span class="mi">1397754</span> <span class="n">TPS:</span> <span class="mi">69817</span> <span class="n">Net_rate:</span> <span class="mf">59.4</span><span class="n">M</span><span class="o">/</span><span class="n">s</span>
1278 <span class="o">---------------------------------------------------------------------------------------------------------------------------------</span>
1279 </pre></div>
1280 </div>
1281 </div>
1282 <div class="section" id="id2">
1283 <h3>Where<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h3>
1284 <p>Get Statistics</p>
1285 <blockquote>
1286 <div><p>Get statistics of response time</p>
1287 </div></blockquote>
1288 <p>Set Statistics</p>
1289 <blockquote>
1290 <div><p>Set statistics of response time</p>
1291 </div></blockquote>
1292 <p>Total Statistics</p>
1293 <blockquote>
1294 <div><p>Both get and set statistics of response time</p>
1295 </div></blockquote>
1296 <p>Min</p>
1297 <blockquote>
1298 <div><p>The accumulated and minimum response time</p>
1299 </div></blockquote>
1300 <p>Max</p>
1301 <blockquote>
1302 <div><p>The accumulated and maximum response time</p>
1303 </div></blockquote>
1304 <p>Avg</p>
1305 <blockquote>
1306 <div><p>The accumulated and average response time</p>
1307 </div></blockquote>
1308 <p>Std</p>
1309 <blockquote>
1310 <div><p>Standard deviation of response time</p>
1311 </div></blockquote>
1312 <p>Log2 Dist</p>
1313 <blockquote>
1314 <div><p>Geometric distribution based on logarithm 2</p>
1315 </div></blockquote>
1316 <p>cmd_get</p>
1317 <blockquote>
1318 <div><p>Total get commands done</p>
1319 </div></blockquote>
1320 <p>cmd_set</p>
1321 <blockquote>
1322 <div><p>Total set commands done</p>
1323 </div></blockquote>
1324 <p>get_misses</p>
1325 <blockquote>
1326 <div><p>How many objects can’t be gotten from server</p>
1327 </div></blockquote>
1328 <p>verify_misses</p>
1329 <blockquote>
1330 <div><p>How many objects need to verify but can’t get them</p>
1331 </div></blockquote>
1332 <p>verify_failed</p>
1333 <blockquote>
1334 <div><p>How many objects with insistent value</p>
1335 </div></blockquote>
1336 <p>expired_get</p>
1337 <blockquote>
1338 <div><p>How many objects are expired but we get them</p>
1339 </div></blockquote>
1340 <p>unexpired_unget</p>
1341 <blockquote>
1342 <div><p>How many objects are unexpired but we can’t get them</p>
1343 </div></blockquote>
1344 <p>written_bytes</p>
1345 <blockquote>
1346 <div><p>Total written bytes</p>
1347 </div></blockquote>
1348 <p>read_bytes</p>
1349 <blockquote>
1350 <div><p>Total read bytes</p>
1351 </div></blockquote>
1352 <p>object_bytes</p>
1353 <blockquote>
1354 <div><p>Total object bytes</p>
1355 </div></blockquote>
1356 <p>packet_disorder</p>
1357 <blockquote>
1358 <div><p>How many UDP packages are disorder</p>
1359 </div></blockquote>
1360 <p>packet_drop</p>
1361 <blockquote>
1362 <div><p>How many UDP packages are lost</p>
1363 </div></blockquote>
1364 <p>udp_timeout</p>
1365 <blockquote>
1366 <div><p>How many times UDP time out happen</p>
1367 </div></blockquote>
1368 <p>Run time</p>
1369 <blockquote>
1370 <div><p>Total run time</p>
1371 </div></blockquote>
1372 <p>Ops</p>
1373 <blockquote>
1374 <div><p>Total operations</p>
1375 </div></blockquote>
1376 <p>TPS</p>
1377 <blockquote>
1378 <div><p>Throughput, operations/second</p>
1379 </div></blockquote>
1380 <p>Net_rate</p>
1381 <blockquote>
1382 <div><p>The average rate of network</p>
1383 </div></blockquote>
1384 </div>
1385 </div>
1386 <div class="section" id="options">
1387 <h2>OPTIONS<a class="headerlink" href="#options" title="Permalink to this headline"></a></h2>
1388 <dl class="simple">
1389 <dt>-s, –servers=</dt><dd><p>List one or more servers to connect. Servers count must be less than
1390 threads count. e.g.: –servers=localhost:1234,localhost:11211</p>
1391 </dd>
1392 <dt>-T, –threads=</dt><dd><p>Number of threads to startup, better equal to CPU numbers. Default 8.</p>
1393 </dd>
1394 <dt>-c, –concurrency=</dt><dd><p>Number of concurrency to simulate with load. Default 128.</p>
1395 </dd>
1396 <dt>-n, –conn_sock=</dt><dd><p>Number of TCP socks per concurrency. Default 1.</p>
1397 </dd>
1398 <dt>-x, –execute_number=</dt><dd><p>Number of operations(get and set) to execute for the
1399 given test. Default 1000000.</p>
1400 </dd>
1401 <dt>-t, –time=</dt><dd><p>How long the test to run, suffix: s-seconds, m-minutes, h-hours,
1402 d-days e.g.: –time=2h.</p>
1403 </dd>
1404 <dt>-F, –cfg_cmd=</dt><dd><p>Load the configure file to get command,key and value distribution list.</p>
1405 </dd>
1406 <dt>-w, –win_size=</dt><dd><p>Task window size of each concurrency, suffix: K, M e.g.: –win_size=10k.
1407 Default 10k.</p>
1408 </dd>
1409 <dt>-X, –fixed_size=</dt><dd><p>Fixed length of value.</p>
1410 </dd>
1411 <dt>-v, –verify=</dt><dd><p>The proportion of date verification, e.g.: –verify=0.01</p>
1412 </dd>
1413 <dt>-d, –division=</dt><dd><p>Number of keys to multi-get once. Default 1, means single get.</p>
1414 </dd>
1415 <dt>-S, –stat_freq=</dt><dd><p>Frequency of dumping statistic information. suffix: s-seconds,
1416 m-minutes, e.g.: –resp_freq=10s.</p>
1417 </dd>
1418 <dt>-e, –exp_verify=</dt><dd><p>The proportion of objects with expire time, e.g.: –exp_verify=0.01.
1419 Default no object with expire time</p>
1420 </dd>
1421 <dt>-o, –overwrite=</dt><dd><p>The proportion of objects need overwrite, e.g.: –overwrite=0.01.
1422 Default never overwrite object.</p>
1423 </dd>
1424 </dl>
1425 <dl class="option-list">
1426 <dt><kbd><span class="option">-R</span>, <span class="option">--reconnect</span></kbd></dt>
1427 <dd><p>Reconnect tests, when connection is closed it will be reconnected.</p>
1428 </dd>
1429 <dt><kbd><span class="option">-U</span>, <span class="option">--udp</span></kbd></dt>
1430 <dd><p>UDP tests, default memaslap uses TCP, TCP port and UDP port of
1431 server must be same.</p>
1432 </dd>
1433 <dt><kbd><span class="option">-a</span>, <span class="option">--facebook</span></kbd></dt>
1434 <dd><p>Whether it enables facebook test feature, set with TCP and multi-get with UDP.</p>
1435 </dd>
1436 <dt><kbd><span class="option">-B</span>, <span class="option">--binary</span></kbd></dt>
1437 <dd><p>Whether it enables binary protocol. Default with ASCII protocol.</p>
1438 </dd>
1439 </dl>
1440 <dl class="simple">
1441 <dt>-P, –tps=</dt><dd><p>Expected throughput, suffix: K, e.g.: –tps=10k.</p>
1442 </dd>
1443 <dt>-p, –rep_write=</dt><dd><p>The first nth servers can write data, e.g.: –rep_write=2.</p>
1444 </dd>
1445 </dl>
1446 <dl class="option-list">
1447 <dt><kbd><span class="option">-b</span>, <span class="option">--verbose</span></kbd></dt>
1448 <dd><p>Whether it outputs detailed information when verification fails.</p>
1449 </dd>
1450 <dt><kbd><span class="option">-h</span>, <span class="option">--help</span></kbd></dt>
1451 <dd><p>Display this message and then exit.</p>
1452 </dd>
1453 <dt><kbd><span class="option">-V</span>, <span class="option">--version</span></kbd></dt>
1454 <dd><p>Display the version of the application and then exit.</p>
1455 </dd>
1456 </dl>
1457 </div>
1458 <div class="section" id="examples">
1459 <h2>EXAMPLES<a class="headerlink" href="#examples" title="Permalink to this headline"></a></h2>
1460 <p>memaslap -s 127.0.0.1:11211 -S 5s</p>
1461 <p>memaslap -s 127.0.0.1:11211 -t 2m -v 0.2 -e 0.05 -b</p>
1462 <p>memaslap -s 127.0.0.1:11211 -F config -t 2m -w 40k -S 20s -o 0.2</p>
1463 <p>memaslap -s 127.0.0.1:11211 -F config -t 2m -T 4 -c 128 -d 20 -P 40k</p>
1464 <p>memaslap -s 127.0.0.1:11211 -F config -t 2m -d 50 -a -n 40</p>
1465 <p>memaslap -s 127.0.0.1:11211,127.0.0.1:11212 -F config -t 2m</p>
1466 <p>memaslap -s 127.0.0.1:11211,127.0.0.1:11212 -F config -t 2m -p 2</p>
1467 </div>
1468 <div class="section" id="see-also">
1469 <h2>SEE ALSO<a class="headerlink" href="#see-also" title="Permalink to this headline"></a></h2>
1470 <p><em class="manpage">memcached(1)</em> <em class="manpage">libmemcached(3)</em></p>
1471 </div>
1472 </div>
1473
1474
1475 </div>
1476
1477 </div>
1478 <footer>
1479
1480 <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
1481
1482 <a href="memstat.html" class="btn btn-neutral float-right" title="memstat - Gather statistics from a server" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
1483
1484
1485 <a href="memslap.html" class="btn btn-neutral float-left" title="memslap - Load testing and benchmarking a server" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
1486
1487 </div>
1488
1489
1490 <hr/>
1491
1492 <div role="contentinfo">
1493 <p>
1494 &copy; <a href="../copyright.html">Copyright</a>
1495
1496 </p>
1497 </div>
1498 Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
1499
1500 </footer>
1501
1502 </div>
1503 </div>
1504
1505 </section>
1506
1507 </div>
1508
1509
1510
1511 <script type="text/javascript">
1512 jQuery(function () {
1513 SphinxRtdTheme.Navigation.enable(true);
1514 });
1515 </script>
1516
1517
1518
1519
1520
1521
1522 </body>
1523 </html>