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