summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-06-03 20:07:16 +0900
committerNobuyoshi Nakada <[email protected]>2024-06-03 23:10:05 +0900
commit589764b1c9ed8ed5b59dfb953667b41c41700ce2 ()
tree0f067a6311fa5a416fb965ca9ed5936b9eb33128 /man
parent1ca4c8b41f04a72ce66537edf16729af3f5d41d0 (diff)
[DOC] man: Add missing GC environment variables
-rw-r--r--man/ruby.133
1 files changed, 32 insertions, 1 deletions
@@ -561,7 +561,7 @@ Reaching the old malloc limit.
.El
.Pp
There are currently 4 possible areas where the GC may be tuned by
-the following 11 environment variables:
.Bl -hang -compact -width "RUBY_GC_HEAP_INIT_SLOTS"
.It Ev RUBY_GC_HEAP_INIT_SLOTS
Initial allocation slots. Applies to all slot sizes. Introduced in Ruby 2.1, default: 10000.
@@ -591,6 +591,12 @@ where R is this factor and N is the number of old objects after the
last full GC.
Introduced in Ruby 2.1.1, default: 2.0
.Pp
.It Ev RUBY_GC_MALLOC_LIMIT
The initial limit of young generation allocation from the malloc-family.
GC will start when this limit is reached.
@@ -607,6 +613,31 @@ GC frequency but increasing malloc growth until RUBY_GC_MALLOC_LIMIT_MAX
is reached.
Introduced in Ruby 2.1, default: 1.4, minimum: 1.0 (no growth)
.Pp
.It Ev RUBY_GC_OLDMALLOC_LIMIT
The initial limit of old generation allocation from malloc,
a full GC will start when this limit is reached.