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