mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 12:12:13 +03:00
Default zfs_max_recordsize to 16M
Increase the default allowed maximum recordsize from 1M to 16M. As described in the zfs(4) man page, there are significant costs which need to be considered before using very large blocks. However, there are scenarios where they make good sense and it should no longer be necessary to artificially restrict their use behind a module option. Note that for 32-bit platforms we continue to leave this restriction in place due to the limited virtual address space available (256-512MB). On these systems only a handful of blocks could be cached at any one time severely impacting performance and potentially stability. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes #12830 Closes #13302
This commit is contained in:
@@ -166,15 +166,6 @@ zio_init(void)
|
||||
cflags = (zio_exclude_metadata || size > zio_buf_debug_limit) ?
|
||||
KMC_NODEBUG : 0;
|
||||
|
||||
#if defined(_ILP32) && defined(_KERNEL)
|
||||
/*
|
||||
* Cache size limited to 1M on 32-bit platforms until ARC
|
||||
* buffers no longer require virtual address space.
|
||||
*/
|
||||
if (size > zfs_max_recordsize)
|
||||
break;
|
||||
#endif
|
||||
|
||||
while (!ISP2(p2))
|
||||
p2 &= p2 - 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user