max_server_memory_usage already set to 75%, so OOM should not happens,
the reason is that because RSS does not match with memory tracker
statistics:
2022.08.05 12:36:57.869896 [ 82524 ] {} <Trace> AsynchronousMetrics: MemoryTracking: was 64.69 GiB, peak 65.26 GiB, will set to 62.80 GiB (RSS), difference: -1.89 GiB
...
2022.08.05 12:37:00.213440 [ 82334 ] {} <Error> void DB::MergeTreeBackgroundExecutor<DB::MergeMutateRuntimeQueue>::routine(DB::TaskRuntimeDataPtr) [Queue = DB::MergeMutateRuntimeQueue]: Code: 241. DB::Exception: Memory limit (total) exceeded: would use 64.68 GiB (attempt to allocate chunk of 1298794 bytes), maximum: 51.44 GiB. OvercommitTracker decision: Memory overcommit isn't used. Waiting time or orvercommit denominator are set to zero.. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below):
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
- The old name made sense for (dev option) "-DUSE_STATIC_LIBRARIES=0
-DSPLIT_SHARED_LIBRARIES=1 -DSPLIT_BINARY=1" but that was removed with
#39520.
- What still exists is "-DUSE_STATIC_LIBRARIES=0
-DSPLIT_SHARED_LIBRARIES=1" which does a shared library build
clickhouse-bundle does not includes utils, and to avoid modifying each
utility it is better to build all, anyway this is not a common build.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
--verbose is supported only for make/install, while 3.16 is OK (ubuntu
20.04), newer cmake (3.23) does not, and simply fails:
# cmake --debug-trycompile --verbose=1 /foo
debug trycompile on
CMake Error: Unknown argument --verbose=1
CMake Error: Run 'cmake --help' for all supported options.
And this is how it works with 3.16:
# cmake --debug-trycompile --verbose=1 /foo
debug trycompile on
CMake Error: The source directory "/foo" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Anyway this script sets CMAKE_VERBOSE_MAKEFILE, and this is what
--verbose does.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>