mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
Basic test that stats are non-zero
This commit is contained in:
parent
5512c307db
commit
ff0197543e
@ -0,0 +1 @@
|
||||
1 1 1 1 1
|
13
tests/queries/0_stateless/02810_system_jemalloc_bins.sql
Normal file
13
tests/queries/0_stateless/02810_system_jemalloc_bins.sql
Normal file
@ -0,0 +1,13 @@
|
||||
WITH
|
||||
(SELECT value IN ('ON', '1') FROM system.build_options WHERE name = 'USE_JEMALLOC') AS jemalloc_enabled,
|
||||
(SELECT count() FROM system.jemalloc_bins) AS total_bins,
|
||||
(SELECT count() FROM system.jemalloc_bins WHERE large) AS large_bins,
|
||||
(SELECT count() FROM system.jemalloc_bins WHERE NOT large) AS small_bins,
|
||||
(SELECT sum(size * (nmalloc - ndalloc)) FROM system.jemalloc_bins WHERE large) AS large_allocated_bytes,
|
||||
(SELECT sum(size * (nmalloc - ndalloc)) FROM system.jemalloc_bins WHERE NOT large) AS small_allocated_bytes
|
||||
SELECT
|
||||
(total_bins > 0) = jemalloc_enabled,
|
||||
(large_bins > 0) = jemalloc_enabled,
|
||||
(small_bins > 0) = jemalloc_enabled,
|
||||
(large_allocated_bytes > 0) = jemalloc_enabled,
|
||||
(small_allocated_bytes > 0) = jemalloc_enabled;
|
Loading…
Reference in New Issue
Block a user