SELECT metric, description, formatReadableSize(value) sizeFROM system.asynchronous_metricsWHERE metric LIKE '%Cach%' OR metric LIKE '%Mem%'ORDER BY value DESC;
SELECT sumIf(data_uncompressed_bytes, part_type = 'InMemory') AS memory_parts, formatReadableSize(sum(primary_key_bytes_in_memory)) AS primary_key_bytes_in_memory, formatReadableSize(sum(primary_key_bytes_in_memory_allocated)) AS primary_key_bytes_in_memory_allocated, formatReadableSize(sum(index_granularity_bytes_in_memory)) AS index_granularity_bytes_in_memory, formatReadableSize(sum(index_granularity_bytes_in_memory_allocated)) AS index_granularity_bytes_in_memory_allocatedFROM system.parts;