> From: Andi Kleen <ak@xxxxxxxxxxxxxxx> > > Pass down the correct node for a transparent hugepage allocation. > Most callers continue to use the current node, however the hugepaged > daemon now uses the previous node of the first to be collapsed page > instead. This ensures that khugepaged does not mess up local memory > for an existing process which uses local policy. > > The choice of node is somewhat primitive currently: it just > uses the node of the first page in the pmd range. An alternative > would be to look at multiple pages and use the most popular > node. I used the simplest variant for now which should work > well enough for the case of all pages being on the same node. > > Acked-by: Andrea Arcangeli <aarcange@xxxxxxxxxx> > Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx> > Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>