On 11/19/2011 02:54 PM, Andrea Arcangeli wrote:
Add a lightweight sync migration (sync == 2) mode that avoids overwork so more suitable to be used by compaction to provide lower latency but
--- a/mm/compaction.c +++ b/mm/compaction.c @@ -552,7 +552,7 @@ static int compact_zone(struct zone *zone, struct compact_control *cc) nr_migrate = cc->nr_migratepages; err = migrate_pages(&cc->migratepages, compaction_alloc, (unsigned long)cc, false, - cc->sync); + cc->sync ? 2 : 0);
Great idea, but it would be good if these numbers got a symbolic name so people trying to learn the code can figure it out a little easier. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. 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>