Passenger architecture

Discussion in 'Ruby/Rails' started by zellster, Jun 12, 2008.

  1. zellster

    zellster Well-Known Member

  2. mistwang

    mistwang LiteSpeed Staff

    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.
  3. malffred

    malffred Active Member

    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.
  4. mistwang

    mistwang LiteSpeed Staff

    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
    if GC.respond_to?(:copy_on_write_friendly=)
        GC.copy_on_write_friendly = true
    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: Sep 10, 2008
  5. fantasydreaming

    fantasydreaming Well-Known Member

    Any luck with this?

    I'm considering adding it to my sites, and wanted to check if anyone ran into any problems.
  6. andreas

    andreas Well-Known Member

    I got segfaults with the patched ruby.

Share This Page