]> git.proxmox.com Git - mirror_zfs.git/commit
Fix memory allocation for the checksum benchmark
authorTino Reichardt <milky-zfs@mcmilk.de>
Thu, 21 Jul 2022 00:01:32 +0000 (02:01 +0200)
committerGitHub <noreply@github.com>
Thu, 21 Jul 2022 00:01:32 +0000 (17:01 -0700)
commit97fd1ea42a59b85ca29c91056ceef56c12cfae0b
tree5457be671bcb0f24c55aeebba646b150f62efd85
parentf371cc18f81168c74314b77480862b6c516e15d5
Fix memory allocation for the checksum benchmark

Allocation via kmem_cache_alloc() is limited to less then 4m for
some architectures.

This commit limits the benchmarks with the linear abd cache to 1m
on all architectures and adds 4m + 16m benchmarks via non-linear
abd_alloc().

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Co-authored-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #13669
Closes #13670
module/zfs/zfs_chksum.c