diff options
author | Jean Boussier <[email protected]> | 2023-02-03 09:46:14 +0100 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2023-02-08 09:26:07 +0100 |
commit | 3ab34551450c7a3a3e1ae0b24bf6b78d26129dfa () | |
tree | 274efe5d1465b8d65866002f1c74f7cb59a08b04 /man/ruby.1 | |
parent | 6e7990144f37850b9b3ec871956890e2aa29ad6d (diff) |
Add RUBY_GC_HEAP_INIT_SIZE_%d_SLOTS to pre-init pools granularly
The old RUBY_GC_HEAP_INIT_SLOTS isn't really usable anymore as it initalize all the pools by the same factor, but it's unlikely that pools will need similar sizes. In production our 40B pool is 5 to 6 times bigger than our 80B pool.
Notes: Merged: https://.com/ruby/ruby/pull/7235
-rw-r--r-- | man/ruby.1 | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -550,7 +550,12 @@ There are currently 4 possible areas where the GC may be tuned by the following 11 environment variables: .Bl -hang -compact -width "RUBY_GC_OLDMALLOC_LIMIT_GROWTH_FACTOR" .It Ev RUBY_GC_HEAP_INIT_SLOTS -Initial allocation slots. Introduced in Ruby 2.1, default: 10000. .Pp .It Ev RUBY_GC_HEAP_FREE_SLOTS Prepare at least this amount of slots after GC. |