LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Ruby/Rails (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=20)
-   -   Passenger architecture (http://www.litespeedtech.com/support/forum/showthread.php?t=2127)

zellster 06-12-2008 11:18 AM

Passenger architecture
 
FYI: http://www.modrails.com/documentatio...0overview.html

A different approach to spawning and managing Rails instances. Not sure how it performs in practice, but the memory savings could be interesting.

mistwang 06-12-2008 02:37 PM

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 08-22-2008 01:35 AM

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 08-22-2008 02:59 PM

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.

fantasydreaming 02-19-2009 12:53 PM

Any luck with this?
 
I'm considering adding it to my sites, and wanted to check if anyone ran into any problems.

andreas 02-26-2009 11:24 AM

I got segfaults with the patched ruby.


All times are GMT -7. The time now is 04:53 AM.