apache / apache/brpc

请问,bar中,关于iobuf的监控项分别代表什么意思,有什么作用?

Open
#874 0 comments 0 reactions 0 assignees View on GitHub
discussion
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

目前项目中遇到个问题,就是解析pb的时间占比过高,占整体耗时接近20%,十几ms,即brpc::processRpcRequest -> brpc::parsePbFromIOBuf -> brpc::ParsePbFromIOBuf,看到brpc bvar的一些监控项,不太了解iobuf相关的监控项含义,比如:
iobuf_block_count : 1454
iobuf_block_count_hit_tls_threshold : 26326739 (这个tls代表什么意思?)
iobuf_block_memory : 1183824
iobuf_newbigview_second : 49

另外,parsePb耗时过高的话,能给我一些建议么,相关的火焰图在附件里面
[perf-kernel.zip](https://github.com/apache/incubator-brpc/files/3465669/perf-kernel.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the brpc::processRpcRequest -> brpc::parsePbFromIOBuf -> brpc::ParsePbFromIOBuf path and the listed bvar iobuf metrics, using the attached perf-kernel.zip as context. Done means documenting what each metric means, including TLS, and recording actionable guidance for the reported parsePb performance concern.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.