Project

General

Profile

Actions

Bug #22454

open

Heaps of exited Ractors are reclaimed only by a global GC, so memory grows without bound with short-lived Ractors

Bug #22454: Heaps of exited Ractors are reclaimed only by a global GC, so memory grows without bound with short-lived Ractors

Added by matteo.folin@gmail.com (Matteo Folin) 1 day ago. Updated 1 day ago.

Status:
Open
Assignee:
-
Target version:
-
ruby -v:
ruby 4.1.0preview1 (2026-10-11 master 2d08b5f42f)
[ruby-core:127172]

Description

  • 8 rounds of 1,000 short-lived Ractors on 4.1.0-preview1: RSS climbs from 159 MB to 1,125 MB, with a single global GC.
  • With a GC.start after each round, it stops at ~435 MB.
  • On 4.0.7 it stays at 34–44 MB.
  • It tells the server story: OOM-killed in 8 GB once the first sockets closed.
  • It asks for a trigger based on the exited Ractors still waiting to be reclaimed, and notes that even 435 MB is ~10× 4.0's figure.
Actions

Also available in: PDF Atom