These are chat archives for ManageIQ/manageiq/performance

25th
Jan 2019
Daniel Berger
@djberg96
Jan 25 16:03
jemalloc.so: undefined symbol: Init_jemalloc - what did i do wrong?
Daniel Berger
@djberg96
Jan 25 18:18
hm, kinda worried about this lib in general, seems to be bundled specifically against jemalloc 3.4, latest version is 5.1
Keenan Brock
@kbrock
Jan 25 18:18
yikes - that is quite a difference
Daniel Berger
@djberg96
Jan 25 18:18
and that folks is why bundling source is generally a bad idea
Keenan Brock
@kbrock
Jan 25 18:20
building a ruby library against bindings tends to be tricky / maintenance nightmare
stories of imagemagick coming to mind (though that is probably 10+ years ago)
Daniel Berger
@djberg96
Jan 25 18:37
well, near as i can tell you can just build it yourself and add export LD_PRELOAD=/usr/lib64/libjemalloc.so to your .bash_profile
(or wherever yours lives)
Keenan Brock
@kbrock
Jan 25 19:13
I do kinda remember ruby wanting to add allocators so you would not need to recompile ruby
But that may be my imagination. So the library load path makes sense