linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* kswapd skips compaction if reclaim order drops to zero?
@ 2013-08-15 10:02 Hillf Danton
  2013-08-15 10:47 ` Mel Gorman
  0 siblings, 1 reply; 9+ messages in thread
From: Hillf Danton @ 2013-08-15 10:02 UTC (permalink / raw)
  To: Mel Gorman; +Cc: Minchan Kim, LKML, Linux-MM

If the allocation order is not high, direct compaction does nothing.
Can we skip compaction here if order drops to zero?

--- a/mm/vmscan.c Thu Aug 15 17:47:26 2013
+++ b/mm/vmscan.c Thu Aug 15 17:48:58 2013
@@ -3034,7 +3034,7 @@ static unsigned long balance_pgdat(pg_da
  * Compact if necessary and kswapd is reclaiming at least the
  * high watermark number of pages as requsted
  */
- if (pgdat_needs_compaction && sc.nr_reclaimed > nr_attempted)
+ if (pgdat_needs_compaction && sc.nr_reclaimed > nr_attempted && order)
  compact_pgdat(pgdat, order);

  /*
--

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-08-16  4:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-15 10:02 kswapd skips compaction if reclaim order drops to zero? Hillf Danton
2013-08-15 10:47 ` Mel Gorman
2013-08-15 13:41   ` Minchan Kim
2013-08-15 13:56     ` Mel Gorman
2013-08-15 14:10       ` Minchan Kim
2013-08-15 15:39         ` [PATCH] mm: compaction: Do not compact pgdat for order-0 Mel Gorman
2013-08-16  4:37           ` Minchan Kim
2013-08-16  0:25         ` kswapd skips compaction if reclaim order drops to zero? Wanpeng Li
2013-08-16  0:25         ` Wanpeng Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).