Index: linux-2.6.14-rc4-mm1/Makefile =================================================================== --- linux-2.6.14-rc4-mm1.orig/Makefile 2005-10-17 10:24:28.000000000 -0700 +++ linux-2.6.14-rc4-mm1/Makefile 2005-10-19 15:05:30.000000000 -0700 @@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 14 -EXTRAVERSION =-rc4-mm1 +EXTRAVERSION =-rc4-mm1-mfmove NAME=Affluent Albatross # *DOCUMENTATION* Index: linux-2.6.14-rc4-mm1/mm/mempolicy.c =================================================================== --- linux-2.6.14-rc4-mm1.orig/mm/mempolicy.c 2005-10-19 15:05:12.000000000 -0700 +++ linux-2.6.14-rc4-mm1/mm/mempolicy.c 2005-10-19 15:05:30.000000000 -0700 @@ -254,6 +254,7 @@ static int check_pte_range(struct vm_are } nid = pfn_to_nid(pfn); if (!node_isset(nid, *nodes)) { + printk("Page %lx node %d not on the right node\n", pfn, nid); if (pagelist) { struct page *page = pfn_to_page(pfn); @@ -482,8 +483,8 @@ long do_mbind(unsigned long start, unsig if (!new) flags |= MPOL_MF_DISCONTIG_OK; - PDprintk("mbind %lx-%lx mode:%ld nodes:%lx\n",start,start+len, - mode,nodes_addr(nodes)[0]); + printk(KERN_ERR "mbind %lx-%lx mode:%ld nodes:%lx flags=%lx\n",start,start+len, + mode,nodes_addr(*nmask)[0], flags); down_write(&mm->mmap_sem); vma = check_range(mm, start, end, nmask, flags, @@ -493,11 +494,15 @@ long do_mbind(unsigned long start, unsig err = mbind_range(vma, start, end, new); if (!list_empty(&pagelist)) swapout_pages(&pagelist); + else + printk(KERN_ERR "No pages to move\n"); if (!err && !list_empty(&pagelist) && (flags & MPOL_MF_STRICT)) err = -EIO; } if (!list_empty(&pagelist)) putback_lru_pages(&pagelist); + else + printk(KERN_ERR "No page to put back on LRU\n"); up_write(&mm->mmap_sem); mpol_free(new); @@ -730,6 +735,7 @@ asmlinkage long sys_mbind(unsigned long nodemask_t nodes; int err; + printk(KERN_ERR "sys_mbind\n"); err = get_nodes(&nodes, nmask, maxnode); if (err) return err;