Permalink
Browse files

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.
  • Loading branch information...
1 parent 49c70ae commit 8478a54008ea64bf734b9dfc78d940ed69bc00ff Eric Wong committed Jan 28, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 DESIGN
  2. +1 −1 examples/unicorn.conf.rb
View
6 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
View
@@ -40,7 +40,7 @@
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

0 comments on commit 8478a54

Please sign in to comment.