Re: __get_free_pages(): is the MEM really mine?

From: Ingo Molnar (mingo@elte.hu)
Date: Thu Sep 27 2001 - 04:20:45 EST


another method is to apply the attached patch to 2.4.10, and watch the
stack traces whether it all happens in the order and places you intended
it to. Your driver should be the only thing doing order-9 allocations on
your system.

        Ingo

--- linux/mm/page_alloc.c.orig Thu Sep 27 11:04:02 2001
+++ linux/mm/page_alloc.c Thu Sep 27 11:05:27 2001
@@ -70,6 +70,10 @@
         struct page *base;
         zone_t *zone;

+ if (order == 9) {
+ printk("free_pages order 9 called.\n");
+ show_stack(NULL);
+ }
         if (page->buffers)
                 BUG();
         if (page->mapping)
@@ -319,6 +323,10 @@
         struct page * page;
         int freed;

+ if (order == 9) {
+ printk("alloc_pages order 9 called.\n");
+ show_stack(NULL);
+ }
         zone = zonelist->zones;
         classzone = *zone;
         for (;;) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Sep 30 2001 - 21:00:54 EST