tests/stateless: add a test with explicit number of jemalloc narenas

This commit is contained in:
Azat Khuzhin 2021-12-22 10:43:05 +03:00
parent b41db62621
commit ba9588fc27
2 changed files with 6 additions and 0 deletions

View File

@ -1,2 +1,4 @@
1
<jemalloc>: Number of CPUs is not deterministic
<jemalloc>: Number of CPUs is not deterministic, but narenas is set. Hope you not what you are doing and you have set narenas to largest possible CPU ID.
1

View File

@ -28,3 +28,7 @@ taskset --cpu-list $((ncpus-1)) ${CLICKHOUSE_LOCAL} -q 'select * from numbers_mt
MALLOC_CONF=abort_conf:true
taskset --cpu-list $((ncpus-1)) ${CLICKHOUSE_LOCAL} -q 'select 1'
) |& grep -F 'Number of CPUs is not deterministic'
# this command should not fail because we specify narenas explicitly
# (even with abort_conf:true)
MALLOC_CONF=abort_conf:true,narenas:$((ncpus)) taskset --cpu-list $((ncpus-1)) ${CLICKHOUSE_LOCAL} -q 'select 1' 2>&1