grpc-rs icon indicating copy to clipboard operation
grpc-rs copied to clipboard

performance: more cost on CPU when upgrading to v0.13.0

Open LykxSassinator opened this issue 2 years ago • 1 comments

Problem Descriptions

When trying to upgrade the grpcio version from v0.10.3 to the latest version v0.13.0 in TiKV, it seems that it costs more CPU compared to the previous version v0.10.3.

  • Related upgrading pr is: https://github.com/tikv/tikv/pull/16165
  • Testing results can be reviewed at comment.

And according to profiling flame-graph, the grpcio module might introduce more cost on CompletionQueue::next().

  • Master(with v0.10.3 version) image

  • Upgraded pr(with 0.13.0 version) image

Source profiling files can be reviewed in: comparison.zip

LykxSassinator avatar Dec 27 '23 08:12 LykxSassinator

Also check the release note in https://github.com/tikv/grpc-rs/releases/tag/v0.12.0.

BusyJay avatar Apr 16 '24 11:04 BusyJay