]> git.proxmox.com Git - mirror_zfs.git/commit
Use boot_ncpus in place of max_ncpus in taskq_create
authorDeHackEd <DeHackEd@users.noreply.github.com>
Wed, 20 May 2020 17:07:21 +0000 (13:07 -0400)
committerGitHub <noreply@github.com>
Wed, 20 May 2020 17:07:21 +0000 (10:07 -0700)
commit57434abae6af23cf0b0b360882762dfae7fee555
tree579045b12eee6557d4d650869ab380266cae3b5c
parentde4f06c275430937026e328f48438cc799eba987
Use boot_ncpus in place of max_ncpus in taskq_create

Due to hotplug support or BIOS bugs sometimes max_ncpus can be
an absurdly high value. I have a system with 32 cores/threads
but reports max_ncpus == 440. This many threads potentially
cripples the system during arc_prune floods for example.

boot_ncpus is the number of working CPUs when called so use
that instead.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: DHE <git@dehacked.net>
Closes #10282
module/zfs/arc.c
module/zfs/dsl_pool.c
module/zfs/txg.c