On 07/14/2014 06:09 PM, David Rientjes wrote: > + if (node == NUMA_NO_NODE) { > + node = page_to_nid(page); > + } else { > + int distance = node_distance(page_to_nid(page), node); > + > + /* > + * Do not migrate to memory that would not be reclaimed > + * from. > + */ > + if (distance > RECLAIM_DISTANCE) > + goto out_unmap; > + }
Isn't the reclaim behavior based on zone_reclaim_mode and not RECLAIM_DISTANCE directly? And isn't that reclaim behavior disabled by default? I think you should at least be consulting zone_reclaim_mode. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/