Created attachment 217832 [details] databases/clickhouse: apply patch from #13859: MemoryTracking support Clickhouse for FreeBSD updating no memory usage stats. In the case build without NDEBUG, allocator use 4KB chunk, those dont account when freeing and MemoryTracking metric grow up to ~6TB, after this clickhouse stop query processing with error "Memory limit (total) exceeded: would use 6.24 TiB" due skipping calc allocation < 4MB Patch still not upstreamed, obtained from: https://github.com/ClickHouse/ClickHouse/issues/13859 + https://github.com/ClickHouse/ClickHouse/pull/13869 reported and tested by: Vyacheslav (via Clickhouse telegram)
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/187728010
A commit references this bug: Author: rm Date: Thu Sep 10 15:21:28 UTC 2020 New revision: 548207 URL: https://svnweb.freebsd.org/changeset/ports/548207 Log: databases/clickhouse: apply patch from #13859: MemoryTracking support Clickhouse for FreeBSD updating no memory usage stats. In the case build without NDEBUG, allocator use 4KB chunk, those dont account when freeing and MemoryTracking metric grow up to ~6TB, after this clickhouse stop query processing with error "Memory limit (total) exceeded: would use 6.24 TiB" due skipping calc allocation < 4MB Patch still not upstreamed, obtained from: https://github.com/ClickHouse/ClickHouse/issues/13859 + https://github.com/ClickHouse/ClickHouse/pull/13869 reported and tested by: Vyacheslav (via Clickhouse telegram) PR: 249205 Submitted by: olevole@olevole.ru (maintainer) Obtained from: clickhouse repository Changes: head/databases/clickhouse/Makefile head/databases/clickhouse/files/patch-cmake_freebsd_default__libs.cmake head/databases/clickhouse/files/patch-src_Common_MemoryStatisticsOS.cpp head/databases/clickhouse/files/patch-src_Common_MemoryStatisticsOS.h head/databases/clickhouse/files/patch-src_Interpreters_AsynchronousMetrics.cpp head/databases/clickhouse/files/patch-src_Interpreters_AsynchronousMetrics.h
Committed, thank you!