You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kudu.apache.org by "Todd Lipcon (Code Review)" <ge...@cloudera.org> on 2016/05/03 20:56:36 UTC

[kudu-CR] rpc-bench: add async benchmark, make more configurable

Hello Binglin Chang, Henry Robinson, Mike Percy,

I'd like you to do a code review.  Please visit

    http://gerrit.cloudera.org:8080/2937

to review the following change.

Change subject: rpc-bench: add async benchmark, make more configurable
......................................................................

rpc-bench: add async benchmark, make more configurable

This changes rpc-bench to have an 'async' mode which uses a smaller
number of client threads which have multiple outstanding calls.
It also now reports the number of context switches per call as well
as the parameters used to run the test.

Baseline results on a 24 core 2.5Ghz (48 logical cores) system:

./bin/rpc-bench -server_reactors 24 -async_call_concurrency 100 -worker_threads 40 -client_threads 24  -run_seconds 3

  Mode:            Sync
  Client threads:   24
  Worker threads:   40
  Server reactors:  24
  ----------------------------------
  Reqs/sec:         189006
  User CPU per req: 21.9328us
  Sys CPU per req:  31.633us
  Ctx Sw. per req:  5.08355

  Mode:            Async
  Client reactors:  24
  Call concurrency: 100
  Worker threads:   40
  Server reactors:  24
  ----------------------------------
  Reqs/sec:         202874
  User CPU per req: 14.2749us
  Sys CPU per req:  23.538us
  Ctx Sw. per req:  2.7318

Change-Id: I8318911ea76d85fa96acb52203101a97a539e42c
---
M src/kudu/rpc/rpc-bench.cc
M src/kudu/scripts/benchmarks.sh
M src/kudu/util/stopwatch.h
3 files changed, 151 insertions(+), 21 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/37/2937/1
-- 
To view, visit http://gerrit.cloudera.org:8080/2937
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8318911ea76d85fa96acb52203101a97a539e42c
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Todd Lipcon <to...@apache.org>
Gerrit-Reviewer: Binglin Chang <de...@gmail.com>
Gerrit-Reviewer: Henry Robinson <he...@cloudera.com>
Gerrit-Reviewer: Mike Percy <mp...@apache.org>