swipesense / ruby

Docker Official Image packaging for Ruby - built with jemalloc
http://www.ruby-lang.org/
BSD 2-Clause "Simplified" License
19 stars 7 forks source link

all alpine version there`s no jemalloc configured. #5

Open renatosousafilho opened 5 years ago

renatosousafilho commented 5 years ago

I`ve tried to check the containers from all verions of alpine to check if the ruby was compilled with jemalloc using the command

ruby -r rbconfig -e "puts RbConfig::CONFIG['LIBS']"

but the responde always never include the -ljemalloc config. What is wrong in this images.?

daya commented 5 years ago

@renatosousafilho if you try the following it will work

root@3c38b8c4c5ab:/# ruby -r rbconfig -e "puts RbConfig::CONFIG['MAINLIBS']"
-lz -lpthread -lrt -lrt -ljemalloc -lgmp -ldl -lcrypt -lm 
root@3c38b8c4c5ab:/# 
pjmartorell commented 4 years ago

@renatosousafilho if you try the following it will work

root@3c38b8c4c5ab:/# ruby -r rbconfig -e "puts RbConfig::CONFIG['MAINLIBS']"
-lz -lpthread -lrt -lrt -ljemalloc -lgmp -ldl -lcrypt -lm 
root@3c38b8c4c5ab:/# 

As far as I know, Alpine (don't know which version exactly) is no longer compatible with jemalloc since it uses musl libc which uses malloc internally and there no plans to support jemalloc for now. Could you confirm this?