summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorDaniel Black <daniel@linux.ibm.com>2018-11-09 14:38:22 +1100
committerAnel Husakovic <anel@mariadb.org>2020-02-19 00:12:37 +0100
commit671d18fc8721952d685983370c5793679e435bca (patch)
treef3ef6f22014af71162a0579940f782113f6a307f /.travis.yml
parent959fc0c0ccaac0c0946a9c07bceb9b82116c8b47 (diff)
downloadmariadb-git-671d18fc8721952d685983370c5793679e435bca.tar.gz
my_getncpus based on threads availablebb-10.2-anel-PR922
Detecting the cpus based on sysconf of the online CPUs can significantly over estimate the number of cpus available. Wheither via numactl, cgroups, taskset, systemd constraints, docker containers and probably other mechanisms, the number of threads mysqld can be run on can be quite less. As such we use the pthread_getaffinity_np function on Linux and FreeBSD (identical API) to get the number of CPUs. The number of CPUs is the default for the thread_pool_size and a too high default will resulting in large memory usage and high context switching overhead.
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions