v.21.11Improvements

Apply memory profiling parameters during mutate/merge operations

Apply max_untracked_memory/memory_profiler_step/memory_profiler_sample_probability during mutate/merge to profile memory usage during merges. #29681 (Azat Khuzhin).
Introduce memory profiling during mutate and merge operations by applying max_untracked_memory, memory_profiler_step, and memory_profiler_sample_probability settings to track and monitor memory usage.

Why it matters

This feature helps users understand and analyze memory consumption patterns during data mutations and merges, enabling better memory management, troubleshooting, and optimization of heavy operations in ClickHouse.

How to use it

Users can enable memory profiling by configuring the settings max_untracked_memory, memory_profiler_step, and memory_profiler_sample_probability in their server configuration or session. These parameters control the threshold of untracked memory, the profiling granularity, and the sampling probability, respectively.