summaryrefslogtreecommitdiffstats
path: root/module/spl/spl-kmem.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-07-16 14:00:57 -0700
committerBrian Behlendorf <[email protected]>2014-07-22 09:47:24 -0700
commit377e12f14a2c3694c3a733782b91ae7beecc44f3 (patch)
tree0a727ab7595c6a819320325656bdb52319a6bbb9 /module/spl/spl-kmem.c
parentf6a869614e5bdf9a3819a845f7a90d8c9ede0fc3 (diff)
Rate limit debugging stack traces
There have been issues in the past where excessive debug logging to the console has resulted in significant performance impacts. In the vast majority of these cases only a few stack traces are required to diagnose the issue. Therefore, stack traces dumped to the console will now we limited to 5 every 60s. Signed-off-by: Brian Behlendorf <[email protected]> Signed-off-by: Prakash Surya <[email protected]> Closes #374
Diffstat (limited to 'module/spl/spl-kmem.c')
-rw-r--r--module/spl/spl-kmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/spl/spl-kmem.c b/module/spl/spl-kmem.c
index e458c2020..6389dc5aa 100644
--- a/module/spl/spl-kmem.c
+++ b/module/spl/spl-kmem.c
@@ -725,7 +725,7 @@ kmem_alloc_debug(size_t size, int flags, const char *func, int line,
"large kmem_alloc(%llu, 0x%x) at %s:%d (%lld/%llu)\n",
(unsigned long long) size, flags, func, line,
kmem_alloc_used_read(), kmem_alloc_max);
- dump_stack();
+ spl_debug_dumpstack(NULL);
}
/* Use the correct allocator */