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

Ingo Molnar (mingo@elte.hu)
Thu, 27 Sep 2001 11:20:45 +0200 (CEST)


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/