Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pd CPU jitter every 5s #8674

Closed
tiancaiamao opened this issue Sep 29, 2024 · 0 comments · Fixed by #8675
Closed

pd CPU jitter every 5s #8674

tiancaiamao opened this issue Sep 29, 2024 · 0 comments · Fixed by #8675
Labels
affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. severity/major type/bug The issue is confirmed as a bug.

Comments

@tiancaiamao
Copy link
Contributor

tiancaiamao commented Sep 29, 2024

Bug Report

What did you do?

I create IM empty tables create table t (id int)

What did you expect to see?

CPU usage stable

What did you see instead?

On average, the CPU usage is about 200%+
PD server CPU usage jitter every 5s, between 0~700%

image

Attached is the cpu and heap profile:

pprof.pd-server.samples.cpu.012.pb.gz
pprof.pd-server.alloc_objects.alloc_space.inuse_objects.inuse_space.019.pb.gz

If we can avoid the rand.NewSource call, maybe we can save a lot

image

What version of PD are you using (pd-server -V)?

Release Version: v8.4.0-alpha-1-g2e8f20f
Edition: Community
Git Commit Hash: 2e8f20fef9ce497f9a2d9ed2be3174ecf16fd17e
Git Branch: HEAD
UTC Build Time:  2024-08-21 03:25:28
@tiancaiamao tiancaiamao added the type/bug The issue is confirmed as a bug. label Sep 29, 2024
@rleungx rleungx added affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. severity/major labels Sep 29, 2024
@ti-chi-bot ti-chi-bot bot closed this as completed in 25dedab Sep 29, 2024
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Oct 18, 2024
close tikv#8674

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Oct 18, 2024
close tikv#8674

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Oct 18, 2024
close tikv#8674

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot bot pushed a commit that referenced this issue Oct 25, 2024
close #8674

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: Ryan Leung <rleungx@gmail.com>

Co-authored-by: Ryan Leung <rleungx@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Oct 28, 2024
close #8674

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: Ryan Leung <rleungx@gmail.com>

Co-authored-by: Ryan Leung <rleungx@gmail.com>
ti-chi-bot bot added a commit that referenced this issue Oct 28, 2024
close #8674

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: Ryan Leung <rleungx@gmail.com>

Co-authored-by: Ryan Leung <rleungx@gmail.com>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants