mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Reduce number of arc_prune threads
On FreeBSD vnode reclamation is single-threaded, protected by single global lock. Linux seems to be able to use a thread per mount point, but at this time it creates more harm than good. Reduce number of threads to 1, adding tunable in case somebody wants to try more. Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Chris Dunlop <chris@onthe.net.au> Reviewed-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Closes #12896 Issue #9966
This commit is contained in:
@@ -676,6 +676,13 @@ Minimum time "prescient prefetched" blocks are locked in the ARC.
|
||||
These blocks are meant to be prefetched fairly aggressively ahead of
|
||||
the code that may use them.
|
||||
.
|
||||
.It Sy zfs_arc_prune_task_threads Ns = Ns Sy 1 Pq int
|
||||
Number of arc_prune threads.
|
||||
.Fx
|
||||
does not need more than one.
|
||||
Linux may theoretically use one per mount point up to number of CPUs,
|
||||
but that was not proven to be useful.
|
||||
.
|
||||
.It Sy zfs_max_missing_tvds Ns = Ns Sy 0 Pq int
|
||||
Number of missing top-level vdevs which will be allowed during
|
||||
pool import (only in read-only mode).
|
||||
|
||||
Reference in New Issue
Block a user