Passenger architecture

mistwang

LiteSpeed Staff
#2
It is similar to what LiteSpeed has done for years.
They have to fix the copy-on-write problem in Ruby VM to save memory, and ruby-lsapi will save memory too with the patched Ruby VM.
 

malffred

Active Member
#3
Would it be possible to use the patched "Ruby Enterprise" VM the Phusion guys have with LiteSpeed and get the same memory improvements? Or would ruby-lsapi completely die?

If so, is that something you've done or recommend? I haven't tried it personally yet but haven't heard any problems in general about their "Ruby Enterprise" patched VM.
 

mistwang

LiteSpeed Staff
#4
We have not tried it yet, but it should work well with LiteSpeed based on their claim. You may need to patch lsws/fcgi-bin/RailsRunner.rb by adding
Code:
if GC.respond_to?(:copy_on_write_friendly=)
    GC.copy_on_write_friendly = true
end
at the very beginning in order to fully take advantage of it.
Please let us know the result if you give it a try.
 
Last edited:
Top