Improve memory performance by reducing dirty pages after fork()
The nakayoshi_fork gem works around the lack of a Ruby compacting garbage collecting by calling GC.start a few times to "promote" the age of young objects to the maximum age 3. This reduces the number of dirty pages and consequently improves copy-on-write behavior with unicorn and other forking Web application servers.
Showing
... | @@ -15,6 +15,9 @@ source 'https://rubygems.org' | ... | @@ -15,6 +15,9 @@ source 'https://rubygems.org' |
gem 'rails', gem_versions['rails'] | gem 'rails', gem_versions['rails'] | ||
gem 'rails-deprecated_sanitizer', '~> 1.0.3' | gem 'rails-deprecated_sanitizer', '~> 1.0.3' | ||
# Improves copy-on-write performance for MRI | |||
gem 'nakayoshi_fork', '~> 0.0.4' | |||
# Responders respond_to and respond_with | # Responders respond_to and respond_with | ||
gem 'responders', '~> 2.0' | gem 'responders', '~> 2.0' | ||
... | ... |
Please register or sign in to comment