-
Notifications
You must be signed in to change notification settings - Fork 742
Closed
Labels
affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
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%
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
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
lance6716 and AndreMouche
Metadata
Metadata
Assignees
Labels
affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.