Quiet down very frequent large allocation warning in ZFS.
authorRicardo M. Correia <ricardo.correia@oracle.com>
Fri, 17 Sep 2010 23:08:56 +0000 (16:08 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 17 Sep 2010 23:24:15 +0000 (16:24 -0700)
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 <ricardo.correia@oracle.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/zfs/dnode.c

index 1dd73cc..d341b58 100644 (file)
@@ -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++) {