4 ms·
I'm coming from a Python perspective; no idea if this is easy/possible in Ruby. Maybe this is a really stupid idea, but what if we gasp disabled the GC during
by peterhunt 15y ago
I'm coming from a Python perspective; no idea if this is easy/possible in Ruby.
Maybe this is a really stupid idea, but what if we gasp disabled the GC during the course of each request and did a collection run after the request is completed and before the next one is accepted? With a sufficient number of workers, wouldn't this solve some of the problems they were having?
- SamReidHughes 15y agoSo you'd only handle one request at a time?
- mnutt 15y agoRails usually has a request lock so most rails servers end up forking off a number of processes that each only process one request at a time.
- mnutt 15y agoI just remembered that Unicorn actually has an option for out-of-band garbage collection. It works best when you're at < 50% CPU utilization, and improves response times with a possible overall performance decrease. http://unicorn.bogomips.org/Unicorn/OobGC.html http://unicorn.bogomips.org/Unicorn/OobGC.html