Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / doc / dev / messenger.rst
1 ============================
2  Messenger notes
3 ============================
4
5 Messenger is the Ceph network layer implementation. Currently Ceph supports
6 three messenger type "simple", "async" and "xio". The latter two are both
7 experiment features and shouldn't use them in production environment.
8
9 ceph_perf_msgr
10 ==============
11
12 ceph_perf_msgr is used to do benchmark for messenger module only and can help
13 to find the bottleneck or time consuming within messenger moduleIt just like
14 "iperf", we need to start server-side program firstly:
15
16 # ./ceph_perf_msgr_server 172.16.30.181:10001 0
17
18 The first argument is ip:port pair which is telling the destination address the
19 client need to specified. The second argument tells the "think time" when
20 dispatching messages. After Giant, CEPH_OSD_OP message which is the actual client
21 read/write io request is fast dispatched without queueing to Dispatcher, in order
22 to achieve better performance. So CEPH_OSD_OP message will be processed inline,
23 "think time" is used by mock this "inline process" process.
24
25 # ./ceph_perf_msgr_client 172.16.30.181:10001 1 32 10000 10 4096 
26
27 The first argument is specified the server ip:port, and the second argument is
28 used to specify client threads. The third argument specify the concurrency(the
29 max inflight messages for each client thread), the fourth argument specify the
30 io numbers will be issued to server per client thread. The fifth argument is
31 used to indicate the "think time" for client thread when receiving messages,
32 this is also used to mock the client fast dispatch process. The last argument
33 specify the message data length to issue.