On Thu, Aug 15, 2013 at 06:02:53PM +0800, Hillf Danton wrote: > If the allocation order is not high, direct compaction does nothing. > Can we skip compaction here if order drops to zero? >
If the allocation order is not high then pgdat_needs_compaction == (order > 0) == false == no calling compact_pdatt In the case where order is reset to 0 due to fragmentation then it does call compact_pgdat but it does no work due to the cc->order check in __compact_pgdat. -- Mel Gorman SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

