aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew-iv <andrew-iv@yandex-team.com>2023-08-09 15:32:43 +0300
committerandrew-iv <andrew-iv@yandex-team.com>2023-08-09 17:49:42 +0300
commit349fc04bc3f50216b2afe5528bf25d64bc305297 (patch)
treee1275147c6097e34529c825c53f30747e378d2a2
parentff8eec9e85a6ff60582bfef5a361e8e1be842f4a (diff)
downloadydb-349fc04bc3f50216b2afe5528bf25d64bc305297.tar.gz
Hu for market profiles
-rw-r--r--build/ymake.core.conf10
1 files changed, 7 insertions, 3 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index 8bcea92163..807ec2b969 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -751,7 +751,7 @@ when ($COMMON_LINK_SETTINGS == "yes") {
}
when (($MUSL != "yes" && $WITH_VALGRIND == "yes") || $SANITIZER_DEFINED == "yes") {
- when ($ALLOCATOR in [ "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "TCMALLOC_TC", "GOOGLE", "J", "LF", "LF_YT", "LF_DBG", "B", "BM", "C", "LOCKLESS", "YT", "MIM", "HU", "PROFILED_HU" ]) {
+ when ($ALLOCATOR in [ "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "TCMALLOC_TC", "GOOGLE", "J", "LF", "LF_YT", "LF_DBG", "B", "BM", "C", "LOCKLESS", "YT", "MIM", "HU", "PROFILED_HU", "THREAD_PROFILED_HU" ]) {
PEERDIR+=library/cpp/malloc/system
}
}
@@ -766,6 +766,9 @@ when ($COMMON_LINK_SETTINGS == "yes") {
"PROFILED_HU" ? {
PEERDIR+=library/cpp/malloc/profiled_hu
}
+ "THREAD_PROFILED_HU" ? {
+ PEERDIR+=library/cpp/malloc/thread_profiled_hu
+ }
"TCMALLOC_256K" ? {
PEERDIR+=library/cpp/malloc/tcmalloc
PEERDIR+=contrib/libs/tcmalloc
@@ -2447,7 +2450,7 @@ multimodule SANDBOX_PY3_TASK {
### Set memory allocator implementation for the PROGRAM()/DLL() module.
### This may only be specified for programs and dlls, use in other modules leads to configuration errors.
###
-### Available allocators are: "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU", "PROFILED_HU".
+### Available allocators are: "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU", "PROFILED_HU", "THREAD_PROFILED_HU".
### - LF - lfalloc (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc)
### - LF_YT - Allocator selection for YT (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc/yt/ya.make)
### - LF_DBG - Debug allocator selection (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc/dbg/ya.make)
@@ -2466,12 +2469,13 @@ multimodule SANDBOX_PY3_TASK {
### - FAKE - Don't link with any allocator
### - HU - Huge page allocator by @gulin.
### - PROFILED_HU - patched HU. It is a bit slower but has metrics of memory consumption.
+### - THREAD_PROFILED_HU - patched (special for market) HU. It is a bit slower but has metrics of memory consumption.
###
### More about allocators in Arcadia: https://wiki.yandex-team.ru/arcadia/allocators/
macro ALLOCATOR(Alloc) {
SET(ALLOCATOR $Alloc)
- when ($ALLOCATOR in [ "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "TCMALLOC_TC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU", "PROFILED_HU" ]) {
+ when ($ALLOCATOR in [ "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "TCMALLOC_TC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU", "PROFILED_HU", "THREAD_PROFILED_HU" ]) {
}
otherwise {
PEERDIR+=___configure_error___unknown_allocator_type___$ALLOCATOR