Using in-tree tcmalloc library [#METR-20000].

This commit is contained in:
Alexey Milovidov 2016-05-22 03:33:15 +03:00
parent f09d37a337
commit b8a4fddac4
3 changed files with 2 additions and 16 deletions

View File

@ -113,6 +113,7 @@ link_directories (${METRICA_SOURCE_DIR}/contrib/libdouble-conversion)
link_directories (${METRICA_SOURCE_DIR}/contrib/libcpuid) link_directories (${METRICA_SOURCE_DIR}/contrib/libcpuid)
link_directories (${METRICA_SOURCE_DIR}/contrib/libzstd) link_directories (${METRICA_SOURCE_DIR}/contrib/libzstd)
link_directories (${METRICA_SOURCE_DIR}/contrib/libre2) link_directories (${METRICA_SOURCE_DIR}/contrib/libre2)
link_directories (${METRICA_SOURCE_DIR}/contrib/libtcmalloc)
link_directories (${METRICA_SOURCE_DIR}/contrib/libpoco/lib) link_directories (${METRICA_SOURCE_DIR}/contrib/libpoco/lib)
link_directories (${METRICA_BINARY_DIR}/libs/libcommon) link_directories (${METRICA_BINARY_DIR}/libs/libcommon)

View File

@ -7,6 +7,7 @@ add_subdirectory (libmetrohash)
add_subdirectory (libpoco) add_subdirectory (libpoco)
add_subdirectory (libre2) add_subdirectory (libre2)
add_subdirectory (libboost-threadpool) add_subdirectory (libboost-threadpool)
add_subdirectory (libtcmalloc)
IF (NOT AARCH64) IF (NOT AARCH64)
add_subdirectory (libcpuid) add_subdirectory (libcpuid)

View File

@ -68,22 +68,6 @@ cd boost_1_60_0
sudo ./b2 install --toolset=gcc-5 -j $THREADS sudo ./b2 install --toolset=gcc-5 -j $THREADS
cd .. cd ..
# Install tcmalloc. Patch is important.
wget https://googledrive.com/host/0B6NtGsLhIcf7MWxMMF9JdTN3UVk/gperftools-2.4.tar.gz
tar -xf gperftools-2.4.tar.gz
cd gperftools-2.4
patch src/static_vars.cc <<END
103c103
< TCMallocGetenvSafe("TCMALLOC_AGGRESSIVE_DECOMMIT"), true);
---
> TCMallocGetenvSafe("TCMALLOC_AGGRESSIVE_DECOMMIT"), false);
END
./configure --enable-minimal
make -j $THREADS
sudo make install
cd ..
# Install mongoclient. This library is needed only for 'external dictionaries' with MongoDB source. This is rarely used but enabled by default. # Install mongoclient. This library is needed only for 'external dictionaries' with MongoDB source. This is rarely used but enabled by default.
sudo apt-get install scons sudo apt-get install scons