TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Production Rails Tuning with Passenger: PassengerMaxProcesses

14 pointsby itsderek23over 15 years ago

1 comment

jeremywover 15 years ago
<i>Generally speaking, you want to fill up as much RAM as possible with passenger processes without utilizing swap in order to maximize you performance and throughput.</i><p>Uh, what?<p>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.)<p>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.<p>And don't do swap, kids.
评论 #984434 未加载