8000 YJIT: Update yjit.md about mem size (#9687) · ruby/ruby@303fef8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 303fef8

Browse files
authored
YJIT: Update yjit.md about mem size (#9687)
1 parent 1702528 commit 303fef8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/yjit/yjit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ which often consumes more memory than JIT code. Generally, YJIT adds memory over
243243
3-4x of `--yjit-exec-mem-size` in production as of Ruby 3.3. You should multiply that by the number
244244
of worker processes to estimate the worst case memory overhead.
245245

246-
We use `--yjit-exec-mem-size=64` for Shopify's Rails monolith, which is Ruby 3.3's default,
247-
but smaller values like 32 MiB or 48 MiB might make sense for your application.
246+
`--yjit-exec-mem-size=48` is the default since Ruby 3.3.1,
247+
but smaller values like 32 MiB might make sense for your application.
248248
While doing so, you may want to monitor `RubyVM::YJIT.runtime_stats[:ratio_in_yjit]` as explained above.
249249

250250
### Enabling YJIT lazily

0 commit comments

Comments
 (0)
0