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

Ingo Molnar
2001-09-27T09:23:06Z

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 (;;) {