소스 검색

add jemalloc

Grant Limberg 1 주 전
부모
커밋
4f07599992
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      environment.yml
  2. 1 1
      ext/central-controller-docker/main-new.sh

+ 1 - 0
environment.yml

@@ -17,3 +17,4 @@ dependencies:
   - conda-forge::inja=3.3.0
   - conda-forge::libhiredis=1.3.0
   - conda-forge::nlohmann_json=3.12.0
+  - conda-forge::jemalloc=5.3.0

+ 1 - 1
ext/central-controller-docker/main-new.sh

@@ -162,5 +162,5 @@ fi
 
 export GLIBCXX_FORCE_NEW=1
 export GLIBCPP_FORCE_NEW=1
-export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libjemalloc.so.2"
+export LD_PRELOAD="/opt/conda/envs/central_controller/lib/libjemalloc.so.2"
 exec /usr/local/bin/zerotier-one -p${ZT_CONTROLLER_PORT:-$DEFAULT_PORT} /var/lib/zerotier-one