]> git.proxmox.com Git - mirror_zfs.git/commit
ZIL: Reduce maximum size of WR_COPIED to 7.5K
authorAlexander Motin <mav@FreeBSD.org>
Fri, 6 Oct 2023 17:09:27 +0000 (13:09 -0400)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2023 17:09:27 +0000 (10:09 -0700)
commit66b81b349749bc1ba11fa277bee860be03315429
tree1670ce3f5515a464964f951345131a2662f11780
parent74ed1ae08a16d836efb4e24759fa4ffdb7d1af30
ZIL: Reduce maximum size of WR_COPIED to 7.5K

Benchmarks show that at certain write sizes range lock/unlock take
not so much time as extra memory copy.  The exact threshold is not
obvious due to other overheads, but it is definitely lower than
~63KB used before.  Make it configurable, defaulting at 7.5KB,
that is 8KB of nearest malloc() size minus itx and lr structs.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15353
man/man4/zfs.4
module/zfs/zil.c