Production Rails Tuning with Passenger: PassengerMaxProcesses
blog.scoutapp.com
blog.scoutapp.com
Uh, what?
On a single-app box with real traffic (as the article implies), look first to CPU. If your average request spends 50% time in db/services and 50% time in processing/render, using more than 2-3 passenger procs per core (i.e. 100% core utilization) is less efficient and a waste of memory. Multiply by cores. (Back off a bit for db on the same machine.)
You want plenty of spare memory for OS cache, to keep your code and static files in memory -- that is, your disk reads should be zero.
And don't do swap, kids.
Having additional Passenger processes available even when CPU bound will allow for greater throughput (if at a less-than-ideal speed) than having requests back up on the queue, however - especially if those requests spend a good amount of time waiting on DB, memcached, or other external API calls.