gc tuning

This commit is contained in:
Devin Howard 2015-11-25 11:59:56 +08:00 committed by Connor Turland
parent 9575a62e67
commit d3814708a9
3 changed files with 19 additions and 0 deletions

View file

@ -16,3 +16,16 @@ SSO_KEY
# for a uniq ordered list of env vars:
## grep -rIsoh -P "(?<=ENV)(\.fetch\(|\[).[A-Z_]+.(\)|\])" | grep -oP "[A-Z_]+" | sort -u > temp
RUBY_GC_TUNE=0 #set to 1 to enable GC test
RUBY_GC_TOKEN=4f4380fc9a2857d1f008005a3eb86928
RUBY_GC_HEAP_INIT_SLOTS=186426
RUBY_GC_HEAP_FREE_SLOTS=559278
RUBY_GC_HEAP_GROWTH_FACTOR=1.03
RUBY_GC_HEAP_GROWTH_MAX_SLOTS=74570
RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.4
RUBY_GC_MALLOC_LIMIT=32883406
RUBY_GC_MALLOC_LIMIT_MAX=69055153
RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR=1.68
RUBY_GC_OLDMALLOC_LIMIT=32509481
RUBY_GC_OLDMALLOC_LIMIT_MAX=68269910
RUBY_GC_OLDMALLOC_LIMIT_GROWTH_FACTOR=1.4

View file

@ -49,4 +49,5 @@ group :development, :test do
gem 'better_errors'
gem 'binding_of_caller'
gem 'quiet_assets'
gem 'tunemygc'
end

View file

@ -188,6 +188,7 @@ GEM
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1)
tunemygc (1.0.61)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.7.2)
@ -229,5 +230,9 @@ DEPENDENCIES
rails_12factor
redis
sass-rails
tunemygc
uglifier
uservoice-ruby
BUNDLED WITH
1.10.6