From: Ricardo M. Correia Date: Fri, 17 Sep 2010 23:08:56 +0000 (-0700) Subject: Quiet down very frequent large allocation warning in ZFS. X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=1e411a4c12b95b1a18028585ae7fd5e51030b25e;p=zfs.git Quiet down very frequent large allocation warning in ZFS. In my machine, dnode_hold_impl() allocates 9992 bytes in DEBUG mode and it causes a large stream of stack traces in the logs. Instead, use KM_NODEBUG to quiet down this known large alloc. Signed-off-by: Ricardo M. Correia Signed-off-by: Brian Behlendorf --- diff --git a/module/zfs/dnode.c b/module/zfs/dnode.c index 1dd73cc..d341b58 100644 --- a/module/zfs/dnode.c +++ b/module/zfs/dnode.c @@ -1074,7 +1074,7 @@ dnode_hold_impl(objset_t *os, uint64_t object, int flag, int i; dnode_children_t *winner; children_dnodes = kmem_alloc(sizeof (dnode_children_t) + - (epb - 1) * sizeof (dnode_handle_t), KM_SLEEP); + (epb - 1) * sizeof (dnode_handle_t), KM_SLEEP | KM_NODEBUG); children_dnodes->dnc_count = epb; dnh = &children_dnodes->dnc_children[0]; for (i = 0; i < epb; i++) {