I installed my jemalloc in / usr / local, so it exited the "normal" library paths.
The installation kindly created a wrapper for me to run programs using the jemalloc library.
To some extent, it automates the above procedure described above, but uses only jemalloc for the program that I want to execute. If this is the intended use, you can do the following:
First check if there is something small script somewhere in your path:
me@mypc /root #
which jemalloc.sh
/usr/local/bin/jemalloc.sh
If it exists, you can simply execute your program as follows:
me@mypc /root #
jemalloc.sh your-program your-program-arguments &
You can read /usr/local/bin/jemalloc.sh
to make sure it uses a similar method with Iulius described.
me@mypc /root #
jemalloc-config --help
will help you understand how your jemalloc was compiled, and me@mypc /root #
jemalloc-config --version
will show you your version of jemalloc.
This way you can check if your programs are working properly with jemalloc without repackaging them. You can make the final decisions.
George.
source share