GoogleCloudPlatform / ruby-docker

Ruby runtime for Google Cloud Platform
Apache License 2.0
134 stars 56 forks source link

Support compiling Ruby with jemalloc #143

Open dazuma opened 6 years ago

dazuma commented 6 years ago

The libjemalloc library is being added to the base image in https://github.com/GoogleCloudPlatform/ruby-docker/pull/142

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

dazuma commented 6 years ago

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 commented 4 years ago

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!