LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Passenger architecture

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2008, 11:18 AM
zellster zellster is offline
Senior Member
 
Join Date: Sep 2004
Posts: 55
Default 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.
Reply With Quote
  #2  
Old 06-12-2008, 02:37 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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.
Reply With Quote
  #3  
Old 08-22-2008, 01:35 AM
malffred malffred is offline
Member
 
Join Date: Dec 2006
Location: Hawaii
Posts: 27
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.
Reply With Quote
  #4  
Old 08-22-2008, 02:59 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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 by mistwang; 09-10-2008 at 03:23 PM..
Reply With Quote
  #5  
Old 02-19-2009, 12:53 PM
fantasydreaming fantasydreaming is offline
Senior Member
 
Join Date: Sep 2006
Posts: 76
Default Any luck with this?

I'm considering adding it to my sites, and wanted to check if anyone ran into any problems.
Reply With Quote
  #6  
Old 02-26-2009, 11:24 AM
andreas andreas is offline
Senior Member
 
Join Date: Aug 2006
Posts: 91
I got segfaults with the patched ruby.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:10 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.