Skip to content

Instantly share code, notes, and snippets.

@mattetti
Forked from burke/0-readme.md
Created October 11, 2012 18:23

Revisions

  1. mattetti revised this gist Oct 11, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions 2-1.9.3-p194-patched.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    build_package_combined_patch() {
    local package_name="1.9.3-p194-perf-dtrace"
    local package_name="$1"

    {
    autoconf
    @@ -13,4 +13,4 @@ build_package_combined_patch() {

    install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
    # You can see the source for this package at https://github.com/burke/ruby/commits/work
    install_package "ruby-1.9.3-p194-perf-dtrace" "http://cloud.github.com/downloads/burke/ruby/ruby-1.9.3-p194-perf-dtrace.tar.gz" combined_patch
    install_package "build" "http://cloud.github.com/downloads/burke/ruby/ruby-1.9.3-p194-perf-dtrace.tar.gz" combined_patch
  2. mattetti revised this gist Oct 11, 2012. 3 changed files with 3 additions and 3 deletions.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@ You will also need a C Compiler. If you're on Linux, you probably already have o
    ### Ok, let's do this!

    ```sh
    curl https://raw.github.com/gist/3808235/rbenv.sh | sh ; rbenv global 1.9.3-p194-dtrace
    curl https://raw.github.com/gist/3874482/rbenv.sh | sh ; rbenv global 1.9.3-p194-dtrace
    ```

    Warning: `ruby*::vm_exec_core:function-*` seem to be broken, causing `SystemStackError`s in the ruby process you instrument.
    2 changes: 1 addition & 1 deletion 2-1.9.3-p194-patched.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    build_package_combined_patch() {
    local package_name="$1"
    local package_name="1.9.3-p194-perf-dtrace"

    {
    autoconf
    2 changes: 1 addition & 1 deletion rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    VERSION="1.9.3-p194"
    curl https://raw.github.com/gist/3808235/2-$VERSION-patched.sh > /tmp/$VERSION-dtrace
    curl https://raw.github.com/gist/3874482/2-$VERSION-patched.sh > /tmp/$VERSION-dtrace
    rbenv install /tmp/$VERSION-dtrace
  3. @burke burke revised this gist Sep 30, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -23,4 +23,6 @@ You will also need a C Compiler. If you're on Linux, you probably already have o

    ```sh
    curl https://raw.github.com/gist/3808235/rbenv.sh | sh ; rbenv global 1.9.3-p194-dtrace
    ```
    ```

    Warning: `ruby*::vm_exec_core:function-*` seem to be broken, causing `SystemStackError`s in the ruby process you instrument.
  4. @burke burke revised this gist Sep 30, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions 2-1.9.3-p194-patched.sh
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,5 @@ build_package_combined_patch() {
    }

    install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
    # You can see the source for this package at https://github.com/burke/ruby/commits/work
    install_package "ruby-1.9.3-p194-perf-dtrace" "http://cloud.github.com/downloads/burke/ruby/ruby-1.9.3-p194-perf-dtrace.tar.gz" combined_patch
  5. @burke burke revised this gist Sep 30, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 2-1.9.3-p194-patched.sh
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,4 @@ build_package_combined_patch() {
    }

    install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
    install_package "ruby-1.9.3-p194-perf-dtrace" "https://github.com/downloads/burke/ruby/ruby-1.9.3-p194-perf-dtrace.tar.gz" combined_patch
    install_package "ruby-1.9.3-p194-perf-dtrace" "http://cloud.github.com/downloads/burke/ruby/ruby-1.9.3-p194-perf-dtrace.tar.gz" combined_patch
  6. @burke burke revised this gist Sep 30, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion 2-1.9.3-p194-patched.sh
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,9 @@ build_package_combined_patch() {
    local package_name="$1"

    {
    make probes.h
    autoconf
    ./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
    make probes.h
    make -j 8
    make install
    } >&4 2>&1
  7. @burke burke revised this gist Sep 30, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 2-1.9.3-p194-patched.sh
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,4 @@ build_package_combined_patch() {
    }

    install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
    install_package "ruby-1.9.3-p194" "https://github.com/downloads/burke/ruby/ruby-1.9.3-p194-perf-dtrace.tar.gz" combined_patch
    install_package "ruby-1.9.3-p194-perf-dtrace" "https://github.com/downloads/burke/ruby/ruby-1.9.3-p194-perf-dtrace.tar.gz" combined_patch
  8. @burke burke revised this gist Sep 30, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 2-1.9.3-p194-patched.sh
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,4 @@ build_package_combined_patch() {
    }

    install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
    install_package "ruby-1.9.3-p194" "https://github.com/downloads/burke/ruby/ruby-1.9.3-p194-perf-dtrace.tgz" combined_patch
    install_package "ruby-1.9.3-p194" "https://github.com/downloads/burke/ruby/ruby-1.9.3-p194-perf-dtrace.tar.gz" combined_patch
  9. @burke burke revised this gist Sep 30, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -22,5 +22,5 @@ You will also need a C Compiler. If you're on Linux, you probably already have o
    ### Ok, let's do this!

    ```sh
    curl https://raw.github.com/gist/3808235/rbenv.sh | sh ; rbenv global 1.9.3-p194-perf
    curl https://raw.github.com/gist/3808235/rbenv.sh | sh ; rbenv global 1.9.3-p194-dtrace
    ```
  10. @burke burke revised this gist Sep 30, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Ruby 1.9.3-p194 with DTrace, Perf Patches, and backported COW-friendly GC
    # Ruby 1.9.3-p194 with DTrace probes, Perf Patches, and backported COW-friendly GC

    ### Overview

  11. @burke burke revised this gist Sep 30, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Patched ruby 1.9.3-p194 for 30% faster rails boot
    # Ruby 1.9.3-p194 with DTrace, Perf Patches, and backported COW-friendly GC

    ### Overview

  12. @burke burke revised this gist Sep 30, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -22,5 +22,5 @@ You will also need a C Compiler. If you're on Linux, you probably already have o
    ### Ok, let's do this!

    ```sh
    curl https://raw.github.com/gist/1688857/rbenv.sh | sh ; rbenv global 1.9.3-p194-perf
    ```
    curl https://raw.github.com/gist/3808235/rbenv.sh | sh ; rbenv global 1.9.3-p194-perf
    ```
  13. @burke burke revised this gist Sep 30, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    VERSION="1.9.3-p194"
    curl https://raw.github.com/gist/1688857/2-$VERSION-patched.sh > /tmp/$VERSION-perf
    rbenv install /tmp/$VERSION-dtrace
    curl https://raw.github.com/gist/3808235/2-$VERSION-patched.sh > /tmp/$VERSION-dtrace
    rbenv install /tmp/$VERSION-dtrace
  14. @burke burke created this gist Sep 30, 2012.
    26 changes: 26 additions & 0 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    # Patched ruby 1.9.3-p194 for 30% faster rails boot

    ### Overview

    This script installs a patched version of ruby 1.9.3-p194 with DTrace probes, boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

    Many thanks to funny-falcon for the performance patches and to Aaron Patterson for the DTrace instrumentation.

    * http://github.com/tenderlove/ruby/tree/probes
    * http://github.com/ruby/ruby/pull/66
    * http://github.com/ruby/ruby/pull/68
    * http://github.com/ruby/ruby/pull/83
    * http://github.com/ruby/ruby/pull/84

    ### Requirements

    * [rbenv](https://github.com/sstephenson/rbenv/)
    * [ruby-build](https://github.com/sstephenson/ruby-build/)

    You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and `brew install autoconf` using [homebrew](http://github.com/mxcl/homebrew).

    ### Ok, let's do this!

    ```sh
    curl https://raw.github.com/gist/1688857/rbenv.sh | sh ; rbenv global 1.9.3-p194-perf
    ```
    14 changes: 14 additions & 0 deletions 2-1.9.3-p194-patched.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    build_package_combined_patch() {
    local package_name="$1"

    {
    make probes.h
    ./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
    make -j 8
    make install
    } >&4 2>&1

    }

    install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
    install_package "ruby-1.9.3-p194" "https://github.com/downloads/burke/ruby/ruby-1.9.3-p194-perf-dtrace.tgz" combined_patch
    3 changes: 3 additions & 0 deletions rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    VERSION="1.9.3-p194"
    curl https://raw.github.com/gist/1688857/2-$VERSION-patched.sh > /tmp/$VERSION-perf
    rbenv install /tmp/$VERSION-dtrace