Building a More Efficient Ruby Interpreter
Sign in to YouTube
Sign in to YouTube
Sign in to YouTube
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.
-
Category
-
License
Standard YouTube License
Loading...
Loading...
Loading...
Loading...
Loading...
-
59:26
The Go Programming Languageby GoogleTechTalksFeatured
301,770
-
1:11:16
JRuby: The power of Java and Rubyby GoogleTechTalks
44,674 views
-
1:29:54
Think faster focus better and remember moreRewiring our brain to stay younger...by GoogleTechTalks
400,956 views
-
49:57
Ruby 1.9by GoogleTechTalks
87,178 views
-
1:00:54
Bufferbloat: Dark Buffers in the Internetby GoogleTechTalks
14,684 views
-
37
videos
Play all
Computersby buddybuchanan
-
Ruby
9,470 videos130
-
14:25
Languages Matterby GoogleTechTalks
13,314 views
-
52:38
A JVM Does That?by GoogleTechTalks
43,675 views
-
1:00:30
Interactive Ray Tracing: A Better Way to Program 3Dby GoogleTechTalks
16,963 views
-
36:58
Go Behave! A BDD Framework for the Go Programming Languageby GoogleTechTalks
11,590 views
-
1:05:34
Born to be Good: The Science of a Meaningful Lifeby GoogleTechTalks
37,908 views
-
1:00:15
How To Design A Good API and Why it Mattersby GoogleTalksArchive
12,677 views
-
1:19:53
Michael Gazzaniga - The Interpreterby EdinburghUniversity
16,922 views
-
1:03:47
JavaScript: The Good Partsby GoogleTechTalks
312,544 views
-
1:01:37
Compiling and Optimizing Scripting Languagesby GoogleTechTalks
18,180 views
-
51:58
Learning from StackOverflow.comby GoogleTechTalks
101,722 views
-
1:05:21
Transform Your Mind, Change Your Brainby GoogleTechTalks
524,992 views
-
41:26
Write and Submit your first Linux kernel Patchby fosdemtalks
41,215 views
-
58:44
RailsConf 2011, David Heinemeier Hanssonby OreillyMedia
43,000 views
-
47:35
Merb, Rubinius and the Engine Yard Stackby GoogleTechTalks
10,086 views
-
27:13
An Introduction to Procs, Lambdas and Closures in Rubyby CooperPress
8,281 views
- Loading more suggestions...
Top Comments
tiesdekock 3 years ago
Solid presentation :)
Sign in to YouTube
Sign in to YouTube
Jules Jacobs 3 years ago
Interesting talk.
Sign in to YouTube
Sign in to YouTube
All Comments (19)
Sijar Ahmed 6 months ago
3 words, BEST TALK EVER.
Sign in to YouTube
Sign in to YouTube
Langi Yudhistiara 7 months ago
can i get the presentation file.
Sign in to YouTube
Sign in to YouTube
ddubs123 3 years ago
I dunno, he sounded Vietnamese to me. Not sure if he actually is though.
Sign in to YouTube
Sign in to YouTube
hipertracker 3 years ago
This comment has received too many negative votes show
SQL and RDBMS suck. OODB rulez
Sign in to YouTube
Sign in to YouTube
Attila Györffy 3 years ago
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.
Sign in to YouTube
Sign in to YouTube