need suggestion to debug CPU 100% #732
Unanswered
calvin2021y
asked this question in
Q&A
Replies: 1 comment
-
|
I trace it done to raft_start with a lot logs(not snapshot yet), like around 44517 take long time in debug mode (12962ms), not slow in release mode. how can I speed up my command is only 8 byte so I like to set the threshold to 64K or 128K |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I start 3 node raft node with a simple fsm store a count (so total 8 byte snapshot size).
after run some random leadership test, I can not start raft anymore.
I build with debug, and set
LIBRAFT_TRACE=1, no print from app.I run perf top -g -p pid, get this.
30.51% 3.54% libc.so.6 [.] epoll_pwait 29.89% 9.77% [kernel] [k] do_epoll_wait 20.77% 0.03% [kernel] [k] __schedule 20.77% 0.00% [kernel] [k] schedule 17.27% 0.00% libc.so.6 [.] __libc_connect 17.27% 0.00% [kernel] [k] tcp_v4_connect 11.64% 0.00% test_raft [.] uv__run_timers 10.38% 10.36% test_raft [.] uv__io_poll 10.30% 10.30% [kernel] [k] tcp_select_initial_window 10.30% 0.00% [kernel] [k] entry_SYSCALL_64_after_hwframe 10.30% 0.00% [kernel] [k] do_syscall_64 10.30% 0.00% [kernel] [k] __x64_sys_connect 10.30% 0.00% [kernel] [k] __sys_connect 10.30% 0.00% [kernel] [k] inet_stream_connect 10.30% 0.00% [kernel] [k] __inet_stream_connect 10.30% 0.00% [kernel] [k] tcp_connect 8.19% 1.29% test_raft [.] uvClientTimerCb 7.88% 7.88% [kernel] [k] pick_next_task_fair 7.41% 7.41% [unknown] [.] 0000000000000000 6.90% 6.90% test_raft [.] uv__stream_init 6.75% 6.75% [kernel] [k] sock_alloc 6.04% 6.04% [kernel] [k] finish_task_switch.isra.0 4.96% 0.05% [kernel] [k] ctx_sched_inany tips how to debug this case?
Beta Was this translation helpful? Give feedback.
All reactions