]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
PerfMsgr: Add usage helper info
authorHaomai Wang <haomaiwang@gmail.com>
Thu, 11 Jun 2015 17:04:54 +0000 (01:04 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Thu, 11 Jun 2015 17:04:54 +0000 (01:04 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/test/msgr/perf_msgr_client.cc
src/test/msgr/perf_msgr_server.cc

index bafa626775f210f0364eceaeb717be2e118e7d1a..17c4aca3e038ba4baf9feae9c96e95b8bf213704 100644 (file)
@@ -158,7 +158,13 @@ void MessengerClient::ClientDispatcher::ms_fast_dispatch(Message *m) {
 
 
 void usage(const string &name) {
-  cerr << "Usage: " << name << " [server ip:port] [numjobs] [concurrency] [ios] [thinktime us] [msg lenght]" << std::endl;
+  cerr << "Usage: " << name << " [server ip:port] [numjobs] [concurrency] [ios] [thinktime us] [msg length]" << std::endl;
+  cerr << "       [server ip:port]: connect to the ip:port pair" << std::endl;
+  cerr << "       [numjobs]: how much client threads spawned and do benchmark" << std::endl;
+  cerr << "       [concurrency]: the max inflight messages(like iodepth in fio)" << std::endl;
+  cerr << "       [ios]: how much messages sent for each client" << std::endl;
+  cerr << "       [thinktime]: sleep time when do fast dispatching(match client logic)" << std::endl;
+  cerr << "       [msg length]: message data bytes" << std::endl;
 }
 
 int main(int argc, char **argv)
index 146219f42190fa43a2fe35028dcb3221528d0dd3..b38a76ab1a2039a71940884807fb2644eb51d69b 100644 (file)
@@ -135,6 +135,9 @@ class MessengerServer {
 
 void usage(const string &name) {
   cerr << "Usage: " << name << " [bind ip:port] [server worker threads] [thinktime us]" << std::endl;
+  cerr << "       [bind ip:port]: The ip:port pair to bind, client need to specify this pair to connect" << std::endl;
+  cerr << "       [server worker threads]: threads will process incoming messages and reply(matching pg threads)" << std::endl;
+  cerr << "       [thinktime]: sleep time when do dispatching(match fast dispatch logic in OSD.cc)" << std::endl;
 }
 
 int main(int argc, char **argv)