• Home
  • Personal
  • Tech
  • Politics
  • Photography
  • Rubinius multiple instances, one process

    January 15th, 2008

    Rubinius has support (as of today!) for running multiple instances of it’s VM within one process, each VM on it’s own *native* thread, each VM running many ruby green threads. Each VM has it’s own heap and so each VM could load different apps that wouldn’t interfere with each other. We have plans for a mod_rubinius for apache that takes full advantage of this feature. Stay tuned ;)

    - Ezra Zygmuntowi on a comment on Ruby Inside.

    Very interesting stuff. Why bother making Rails thread safe when you have an awesome Ruby VM such as Rubinius. I’d like to see Mongrel (or FastCGI! Bring back FastCGI!) make use of this somehow, running multiple Rails instances itself in one process and distributing requests between them. Interested in knowing how it’d deal with memory leaks in external libraries though (like rmagick suffers from).

    Still, you lose finer grained access to most of the nice UNIX process management stuff though then, like limiting memory usage with ulimits, but nobody seems to be using that for Ruby deployment anyway. It’s all fiddling around with Monit and such instead (why always with the steps backward!).

    Tags: apache, deployment, mongrel, processes, rails, rubinius, ruby, threads

    Posted in Ruby on Rails | No Comments »

  • Turck MMCache speediness on Debian Sarge

    January 12th, 2006

    UPDATE: The info in this post is deprecated. See the new post about eAccelerator instead.

    I installed Turck MMCache PHP accelerator and I got a big improvement.

    ApacheBench reported 4.52 pages per second before and 12.47 pages after installation (a Wordpress 1.5.2 page on a 1.2Ghz PIII). That a 275% increase in performance, with currently no observed problems. I tested this with both Apache2 and lighttpd, and got a similar boost with both.

    There is only a package for Debian unstable at the moment, so I downloaded the package source and backported it to Debian sarge. I put the package in my apt repository (along with a backported openswan package I’m using). Add to your sources.list:

    deb http://johnleach.co.uk/downloads/debian sarge backports

    and apt-get update ; apt-get install turck-mmcache

    See PHP fly (comparatively)

    UPDATE: I’m running into a few problems now actually. Wordpress runs fine, but an application of my own is having some serious problems. MMTurck is kicking out the following log message:

    [13072] MMCACHE: PHP crashed on opline 1 of main() at /path/to/webapp/cligs-app.php:24

    I’ve disabled the extension for now until I investigate further.

    UPDATE: S

    Tags: acceleration, apache, backport, Debian, lighttpd, php, sarge, speed, turckmmcache, wordpress

    Posted in Tech | 1 Comment »

  • John Leach

    • John Leach is a human being living in Leeds, UK.
  • Twitter

    • John Lily met @davidsmalley and one of his dogs Tess today and we had beers and burgers. Dogs had walks and treats, and Tess had my coleslaw 22 hrs ago
    • More twitter updates →
  • Author Stuff

    • Brightbox Rails Hosting
    • Compost This
    • ELER Web Comic
    • New World Odour
    • News Sniffer
    • Photography
    • Profile and History
    • Recycle This
    • The Gillroyd Parade
    • Things to do today
    • Website
  • Friends

    • Caius Durling
    • Deb Bassett
    • Gianni Tedesco
    • Ian Higgins
    • Louisa Parry
    • Rahoul Baruah
    • Sleepy Kev
    • Tim Waters
    • Tom Hall
  • Stuff

    • ifup
    • Media Lens
    • Mia Bambina
    • News from nowhere
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
  • Search

Creative Commons License The text of this blog is licensed under the Creative Commons BY-ND license