Skip to content

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

@LykxSassinator

Description

@LykxSassinator

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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions