YouTube home Comedy Week on YouTube
Upload

Building a More Efficient Ruby Interpreter

GoogleTechTalks GoogleTechTalks·1,782 videos
146,953
17,738
Like     Dislike 4

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like GoogleTechTalks's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike GoogleTechTalks's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add GoogleTechTalks's video to your playlist.

Uploaded on Dec 14, 2009

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 e.g. 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.

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

The interactive transcript could not be loaded.

Loading icon Loading...

Loading icon Loading...

Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.

Top Comments

  • tiesdekock

    Solid presentation :)

    · 12

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate tiesdekock's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate tiesdekock's comment.
  • Jules Jacobs

    Interesting talk.

    · 7

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Jules Jacobs's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Jules Jacobs's comment.

All Comments (19)

Sign in now to post a comment!
  • Sijar Ahmed

    3 words, BEST TALK EVER.

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Sijar Ahmed's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Sijar Ahmed's comment.
  • Langi Yudhistiara

    can i get the presentation file.

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Langi Yudhistiara's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Langi Yudhistiara's comment.
  • ddubs123

    I dunno, he sounded Vietnamese to me. Not sure if he actually is though.

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate ddubs123's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate ddubs123's comment.
    in reply to foojoku (Show the comment)
  • Attila Györffy

    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.

    · 4

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Attila Györffy's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Attila Györffy's comment.
  • Loading comment...
Loading...
Loading...
Working...
Sign in to add this to Watch Later