Building a More Efficient Ruby Interpreter
Exclusive video!
Google Tech Talk December 11, 2009 ABSTRACT Presented by Hongli Lai and Ninh Bui from Phusion. The Ruby programming language powers a significant portion of today's websites and is still growing in popularity. However, its implementation is not as efficient as it could be, and in this talk we will explain how Ruby Enterprise Edition addresses some of these issues. Ruby has a relatively high memory usage compared to eg C++, and we've found that this is partially caused by the fact that memory for program code is not shared between multiple interpreter instances as is possible in C++ programs. One way to battle this problem is by leveraging copy-on-write virtual memory semantics. However, Ruby's garbage collector hostile to this technique. We will explain how we've made the garbage collector copy-on-write friendly, how we've leveraged Linux kernel features during the development of this enhancement, how our Phusion Passenger web app deployment product leverages copy-on-write and how much memory one can save. Another problem the fact that Ruby's userspace threading implementation severely degrades in performance in the face of large thread stacks. Several contributors have identified the source of this problem: Ruby copies the entire thread stack during a context switch. We will explain how they've identified this problem, what obstacles we've faced during the development of a patch and just how significant the improvement is.
There is a town in Texas called ‘Ding Dong.’
Copyright 2009 Jellofart - Advertise With Us Jellofart Home | About Jellofart | Contact (Annoy) Jellofart | Shop our Store | Our Privacy Policy

July 4th, 2010 - 17:41
want watch – Ruby & the Rockits in HD and all eps, seasons? then go:
TVFLAP . COM
July 4th, 2010 - 18:12
@foojoku I dunno, he sounded Vietnamese to me. Not sure if he actually is though.
July 4th, 2010 - 18:59
SQL and RDBMS suck. OODB rulez
July 4th, 2010 - 19:31
Solid presentation
July 4th, 2010 - 20:08
Interesting talk.
July 4th, 2010 - 20:23
Bit off topic, but… I started listening to the video without seeing it and I don’t think I’ve ever seen a greater disparity between the image a voice conjured up in my mind and the actual person producing the voice. I need to rethink a few things, I think.
Anyway, (video)++ for using mac minis and proper scales in their visuals.
July 4th, 2010 - 21:04
i quite like the phusion guys’ way of thinking. i didn’t know before what exactly REE was doing in the background.
keep up the good work.
July 4th, 2010 - 21:19
nah, you were “fist”
July 4th, 2010 - 21:43
There’s more to Ruby than Rails… I think.
July 4th, 2010 - 22:20
SQL on Rails is so much better that Ruby on Rails.
July 4th, 2010 - 23:17
thanks…u just need to put help & downloads links in the diion section
July 4th, 2010 - 23:33
me <——– not first