As per Seth's suggestion, I tried ratelimiting the cma_alloc messages:
diff --git a/mm/cma.c b/mm/cma.c index c7b39dd3b4f6..56d2a046f689 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -477,7 +477,7 @@ struct page *cma_alloc(struct cma *cma, size_t count, unsigned int align, page_kasan_tag_reset(page + i); }
- if (ret && !no_warn) { + if (ret && !no_warn && printk_ratelimit()) { pr_err("%s: alloc failed, req-size: %zu pages, ret: %d\n", __func__, count, ret); cma_debug_show_areas(cma);
This drops the cma_alloc error message count down from 10758 to 21.
As per Seth's suggestion, I tried ratelimiting the cma_alloc messages:
diff --git a/mm/cma.c b/mm/cma.c .56d2a046f689 100644
page_ kasan_tag_ reset(page + i);
index c7b39dd3b4f6.
--- a/mm/cma.c
+++ b/mm/cma.c
@@ -477,7 +477,7 @@ struct page *cma_alloc(struct cma *cma, size_t count, unsigned int align,
}
- if (ret && !no_warn) {
pr_err( "%s: alloc failed, req-size: %zu pages, ret: %d\n",
__func_ _, count, ret);
cma_debug_ show_areas( cma);
+ if (ret && !no_warn && printk_ratelimit()) {
This drops the cma_alloc error message count down from 10758 to 21.