]> git.proxmox.com Git - mirror_spl.git/commit
Increase spl_kmem_alloc_warn limit
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 17 Sep 2016 00:10:36 +0000 (17:10 -0700)
committerGitHub <noreply@github.com>
Sat, 17 Sep 2016 00:10:36 +0000 (17:10 -0700)
commitcb81c0c5887ffd6d862b13bca594d522e3f8673c
tree611b0997f785460a85fc3129bdf8818a53eab8d1
parent49fbac3acecf384454aa8a6e9604a311848d864e
Increase spl_kmem_alloc_warn limit

In order to support ABD with large blocks the spl_kmem_alloc_warn
limit needs to be increased to 64K.

A 16M block requires that pointers be stored for 4096 4K-pages
on an x86_64 system.  Each of these pointers is 8 bytes requiring
an allocation of 8*4096=32,768 bytes.  The addition of a small
header to this structure pushes the allocation over the default
32K warning threshold.

In addition, fix a small bug where MAX was used instead of MIN
when setting the default.  This ensures a reasonable limit is
still set on systems with page sizes larger then 4K.

Reviewed-by: David Quigley <david.quigley@intel.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #571
module/spl/spl-kmem.c