mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Using in-tree tcmalloc library [#METR-20000].
This commit is contained in:
parent
f09d37a337
commit
b8a4fddac4
@ -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/libzstd)
|
||||
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_BINARY_DIR}/libs/libcommon)
|
||||
|
1
contrib/CMakeLists.txt
vendored
1
contrib/CMakeLists.txt
vendored
@ -7,6 +7,7 @@ add_subdirectory (libmetrohash)
|
||||
add_subdirectory (libpoco)
|
||||
add_subdirectory (libre2)
|
||||
add_subdirectory (libboost-threadpool)
|
||||
add_subdirectory (libtcmalloc)
|
||||
|
||||
IF (NOT AARCH64)
|
||||
add_subdirectory (libcpuid)
|
||||
|
@ -68,22 +68,6 @@ cd boost_1_60_0
|
||||
sudo ./b2 install --toolset=gcc-5 -j $THREADS
|
||||
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.
|
||||
|
||||
sudo apt-get install scons
|
||||
|
Loading…
Reference in New Issue
Block a user