]> git.proxmox.com Git - mirror_zfs.git/commit
Adjust prefetch parameters.
authorAlexander Motin <mav@FreeBSD.org>
Fri, 21 Jul 2023 18:51:47 +0000 (14:51 -0400)
committerGitHub <noreply@github.com>
Fri, 21 Jul 2023 18:51:47 +0000 (11:51 -0700)
commit34b3d498a965451f2c21e9652a99952ed6e93c59
tree47dfb2e7d6e3ddb436bf60d82a4a10c1b24fffbf
parent28430b51e3e2387e6f36d5b4ee5b30ef33095993
Adjust prefetch parameters.

- Reduce maximum prefetch distance for 32bit platforms to 8MB as it
was previously.  Those systems didn't grow much probably, so better
stay conservative there.
 - Retire array_rd_sz tunable, blocking prefetch for large requests.
We should not penalize applications trying to be more efficient. The
speculative prefetcher by itself has reasonable distance limits, and
1MB is not much at all these days.

Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15072
include/sys/dmu_zfetch.h
man/man4/zfs.4
module/zfs/dmu.c
module/zfs/dmu_zfetch.c