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

Innovation: Glean metrics from YJIT #2215

Open
fallwith opened this issue Sep 14, 2023 · 5 comments
Open

Innovation: Glean metrics from YJIT #2215

fallwith opened this issue Sep 14, 2023 · 5 comments
Assignees
Labels
innovation version: 10.0.0 Next Major Release - Breaking Changes

Comments

@fallwith
Copy link
Contributor

fallwith commented Sep 14, 2023

The Rust based "just-in-time" compiler YJIT is already a viable option for production use. With related improvements coming soon in Ruby 3.3, and with Rails Edge now enabling YJIT functionality with an initializer, YJIT adoption is expected to be ever increasing.

We should spike on determining what metric information can be gleaned from YJIT, and categorize the information into 3 buckets: what can be cleaned from within the Ruby VM itself (low hanging fruit), what would require a Shopify tool or 3rd party wrapper to get at, and what would require changes to the YJIT Rust code itself.

@workato-integration
Copy link

@fallwith fallwith changed the title Spike: Glean metrics from YJIT and RJIT Innovation: Glean metrics from YJIT and RJIT Oct 13, 2023
@workato-integration
Copy link

@fallwith fallwith changed the title Innovation: Glean metrics from YJIT and RJIT Innovation: Glean metrics from YJIT Nov 27, 2023
@fallwith
Copy link
Contributor Author

NOTE: RJIT innovation has been split out into the separate innovation issue #2332

@kaylareopelle
Copy link
Contributor

RubyVM::YJIT documentation: https://docs.ruby-lang.org/en/3.2/RubyVM/YJIT.html

@fallwith fallwith self-assigned this Nov 28, 2023
@fallwith fallwith moved this from Triage to In progress in Ruby Engineering Board Nov 28, 2023
@fallwith fallwith added the jan-mar qtr Possible FY Q4 candidate label Dec 7, 2023
@fallwith
Copy link
Contributor Author

fallwith commented Dec 7, 2023

Even without enabling YJIT stats reporting (which incurs overhead), RubyVM::YJIT.runtime_stats will still expose 18 stats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
innovation version: 10.0.0 Next Major Release - Breaking Changes
Projects
None yet
Development

No branches or pull requests

4 participants