SELECT
*,
formatReadableSize(value)
FROM system.asynchronous_metrics
WHERE (metric LIKE '%Cach%') OR (metric LIKE '%Mem%')
ORDER BY metric ASC
FORMAT PrettyCompactMonoBlock
結果
┌─metric───────────────────────┬───────value─┬─formatReadableSize(value)─┐
│ CompiledExpressionCacheBytes │ 16384 │ 16.00 KiB │
│ CompiledExpressionCacheCount │ 3 │ 3.00 B │
│ MMapCacheCells │ 0 │ 0.00 B │
│ MarkCacheBytes │ 11200 │ 10.94 KiB │
│ MarkCacheFiles │ 16 │ 16.00 B │
│ MemoryCode │ 366669824 │ 349.68 MiB │
│ MemoryDataAndStack │ 13088329728 │ 12.19 GiB │
│ MemoryResident │ 608034816 │ 579.87 MiB │
│ MemoryShared │ 278302720 │ 265.41 M