diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 3366092..5e7487a 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2414,6 +2414,8 @@ __alloc_pages_slowpath(gfp_t gfp_mask, unsigned int order, bool sync_migration = false; bool deferred_compaction = false; bool contended_compaction = false; + unsigned long nr_free_before; + nr_free_before = global_page_state(NR_FREE_PAGES); /* * In the slowpath, we sanity check order to avoid ever trying to @@ -2597,6 +2599,7 @@ rebalance: } nopage: + printk(KERN_ERR"nr_free_before:%lu nr_free_now:%lu\n", nr_free_before, global_page_state(NR_FREE_PAGES)); warn_alloc_failed(gfp_mask, order, NULL); return page; got_pg: