From 8478a54008ea64bf734b9dfc78d940ed69bc00ff Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 28 Jan 2012 09:03:57 +0000 Subject: doc: update doc for Ruby 2.0.0dev CoW-friendliness Ruby 2.0.0dev is the future and includes a CoW-friendly GC, so we shall encourage folks to give Ruby 2.0.0dev a spin. --- DESIGN | 6 +++--- examples/unicorn.conf.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DESIGN b/DESIGN index 2c98c2f..bff6a8b 100644 --- a/DESIGN +++ b/DESIGN @@ -31,9 +31,9 @@ * One master process spawns and reaps worker processes. The Rack application itself is called only within the worker process (but can be loaded within the master). A copy-on-write friendly garbage - collector like Ruby Enterprise Edition can be used to minimize memory - usage along with the "preload_app true" directive (see - Unicorn::Configurator). + collector like the one found in Ruby 2.0.0dev or Ruby Enterprise Edition + can be used to minimize memory usage along with the "preload_app true" + directive (see Unicorn::Configurator). * The number of worker processes should be scaled to the number of CPUs, memory or even spindles you have. If you have an existing diff --git a/examples/unicorn.conf.rb b/examples/unicorn.conf.rb index 61f0b4b..0238043 100644 --- a/examples/unicorn.conf.rb +++ b/examples/unicorn.conf.rb @@ -40,7 +40,7 @@ pid "/path/to/app/shared/pids/unicorn.pid" stderr_path "/path/to/app/shared/log/unicorn.stderr.log" stdout_path "/path/to/app/shared/log/unicorn.stdout.log" -# combine REE with "preload_app true" for memory savings +# combine Ruby 2.0.0dev or REE with "preload_app true" for memory savings # http://rubyenterpriseedition.com/faq.html#adapt_apps_for_cow preload_app true GC.respond_to?(:copy_on_write_friendly=) and -- cgit v1.2.3-24-ge0c7