rr-debugger / rr-debugger/rr

rr replay becomes slow on ARM64 (AWS c6g.4xlarge)

Open
#3,599 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.7k
Forks
662
Avg merge
2d 3h
Merged PRs (30d)
2

Description

I'm on a Graviton instance. The rr replay works good on the exact same trace weeks ago. But without change rr itself and gdb, today I open the rr replay on the same trace. It becomes very slow when it replay after I run "continue" and it is unusable in my case. I did the profiling, 99% time is spent in the following call stack. How can I fix it?

My environment is c6g.4xlarge AWS Graviton instance. Kernel is 6.2.0-1011-aws https://github.com/rr-debugger/rr/pull/11~22.04.1-Ubuntu. GDB 13.2. rr version 5.6.0.

_start
__libc_start_main_impl (inlined)
__libc_start_call_main
main
gdb_main
captured_command_loop
gdb_do_one_event
gdb_wait_for_event
run_async_handler_and_reschedule
fetch_inferior_event
handle_inferior_event
handle_stop_requested (inlined)
handle_signal_stop
skip_inline_frames
block_for_pc
block_for_pc_sect (inlined)
blockvector_for_pc_sect (inlined)
find_pc_sect_compunit_symtab
lookup_minimal_symbol_by_pc_section
find_pc_section
update_section_map (inlined)
std::sort<obj_section**, bool (*)(obj_section const*, obj_section const*)> (inlined)
std::__sort<obj_section**, __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(obj_section const*, obj_section const*)> > (inlined)
sort_cmp

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing rr replay on the reported ARM64 AWS Graviton environment with the same trace, then inspect the profiled GDB path from handle_signal_stop through block_for_pc and update_section_map. Compare replay behavior and profiling with the stated rr 5.6.0, GDB 13.2, and kernel versions; done requires identifying and resolving the cause of the severe slowdown.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
devtools, operating-systems, performance
Issue type
Bug
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.