Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support compiling Ruby with jemalloc #143

Open
dazuma opened this issue Feb 12, 2018 · 2 comments
Open

Support compiling Ruby with jemalloc #143

dazuma opened this issue Feb 12, 2018 · 2 comments
Labels

Comments

@dazuma
Copy link
Member

dazuma commented Feb 12, 2018

The libjemalloc library is being added to the base image in #142

To provide full support for jemalloc, we'd need to do the following:

  • Set RUBY_CONFIGURE_OPTS=--with-jemalloc when installing Ruby with rbenv
  • Provide an alternative set of prebuilt MRI binaries compiled against jemalloc. (We cannot just replace the current set because apps pinned to an older runtime with an older base image would break.)
  • Add a runtime_config entry letting users opt-in to using jemalloc.
@dazuma dazuma added the on hold label May 11, 2018
@dazuma
Copy link
Member Author

dazuma commented May 11, 2018

Update: libjemalloc is available in current runtimes. You should be able to invoke it using LD_PRELOAD (see the getting started for jemalloc) today. However, for the Ruby runtime, we have the Ubuntu switch happening at the end of May, at which point a number of things (including the mechanism for prebuilt binaries) will be different. So holding off on further integration until the dust settles.

@mtomov
Copy link

mtomov commented Dec 6, 2019

Hi,

Is there any update to using versions of ruby compiled with jemalloc?

As far as I understand, currently for AppEngine, my only option is to dynamically invoke jemalloc by adding an environmental variable like this?

env_variables:
  LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1

Is this the correct path?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants