Skip to content

eBPF probes for MMTk GC module - #145

Open
wks wants to merge 1 commit into
ruby:mainfrom
wks:feature/ruby-mmtk-ebpf
Open

wks wants to merge 1 commit into
ruby:mainfrom
wks:feature/ruby-mmtk-ebpf

Conversation

@wks

@wks wks commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

eBPF probes for MMTk GC module

This commit adds eBPF probes to visualize details of work packets in the MMTk GC module, including

  • potential pinning parents
  • obj_free candidates
  • weak references

The statistics are shown for both invidual work packets and aggregated results for all work packets in each GC.

This commit adds eBPF probes to visualize details of work packets in the
MMTk GC module, including

-   potential pinning parents
-   `obj_free` candidates
-   weak references

The statistics are shown for both invidual work packets and aggregated
results for all work packets in each GC.
@wks
wks force-pushed the feature/ruby-mmtk-ebpf branch from 1f6b518 to c19edb6 Compare December 2, 2026 08:10
@wks wks changed the title WIP: eBPF probes for MMTk GC module eBPF probes for MMTk GC module Dec 2, 2026
@wks
wks marked this pull request as ready for review December 2, 2026 08:17
@wks
wks requested a review from peterzhu2118 December 2, 2026 08:18
@wks

wks commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

The statistics can be seen in the lower pane when selecting a work packet or the "GC" bar.

Screenshot_20261202_154039

@wks

wks commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

Some tests failed in this line:

assert_equal ObjectSpace.memsize_of(utf16_with_spare_capacity),
  ObjectSpace.memsize_of(moved)

It looks like the memsize changed after a string is sent to a ractor and returned back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant