Re: What kind of page allocation optimization does the kernel implemented?

From: Alexey Dobriyan
Date: Mon Aug 14 2006 - 23:40:15 EST

On Mon, Aug 14, 2006 at 11:07:34PM -0400, Lei Jin wrote:
> Does the kernel support the page coloring algorithm? I cannot find any
> clue from the code.

IANVMHacker, but

$ grep color -n -r mm/
mm/page_alloc.c:1743: * of pages of one half of the possible page
mm/page_alloc.c:1744: * and the other with pages of the other colors.
mm/mmap.c:379: rb_insert_color(&vma->vm_rb, &mm->mm_rb);
mm/nommu.c:351: rb_insert_color(&vma->vm_rb, &nommu_vma_tree);
mm/slab.c:295: unsigned int colour_next; /* Per-node cache coloring */
mm/mempolicy.c:1420: rb_insert_color(&new->nd, &sp->root);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at