HomeFreeBSD

databases/clickhouse: apply patch from #13859: MemoryTracking support

Description

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

Details

Provenance
rmAuthored on
Parents
rP548206: sysutils/logstash7: Update to version 7.9.1
Branches
Unknown
Tags
Unknown