mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
20 lines
753 B
Bash
20 lines
753 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||
|
. "$CURDIR"/../shell_config.sh
|
||
|
|
||
|
ncpus="$(getconf _NPROCESSORS_ONLN)"
|
||
|
|
||
|
# to hit possible issues even in unbundled builds:
|
||
|
# (although likiley jemalloc will be compiled with NDEBUG there)
|
||
|
export MALLOC_CONF=percpu_arena:percpu
|
||
|
|
||
|
# Regression for:
|
||
|
#
|
||
|
# $ taskset --cpu-list 8 ./clickhouse local -q 'select 1'
|
||
|
# <jemalloc>: ../contrib/jemalloc/src/jemalloc.c:321: Failed assertion: "ind <= narenas_total_get()"
|
||
|
# Aborted (core dumped)
|
||
|
taskset --cpu-list $((ncpus-1)) ${CLICKHOUSE_LOCAL} -q 'select 1'
|
||
|
# just in case something more complicated
|
||
|
taskset --cpu-list $((ncpus-1)) ${CLICKHOUSE_LOCAL} -q 'select * from numbers_mt(100000000) settings max_threads=100 FORMAT Null'
|