Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1282688
| From | Joonsoo Kim <js1304@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] mm/compaction: restore COMPACT_CLUSTER_MAX to 32 |
| Date | 2015-12-03 05:20 +0100 |
| Message-ID | <qBtx7-8sd-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Until now, COMPACT_CLUSTER_MAX is defined as SWAP_CLUSTER_MAX.
Commit ("mm: increase SWAP_CLUSTER_MAX to batch TLB flushes")
changes SWAP_CLUSTER_MAX from 32 to 256 to improve tlb flush performance
so COMPACT_CLUSTER_MAX is also changed to 256. But, it has
no justification on compaction-side and I think that loss is more than
benefit.
One example is that migration scanner would isolates and migrates
too many pages unnecessarily with 256 COMPACT_CLUSTER_MAX. It may be
enough to migrate 4 pages in order to make order-2 page, but, now,
compaction will migrate 256 pages.
To reduce this unneeded overhead, this patch restores
COMPACT_CLUSTER_MAX to 32.
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
---
include/linux/swap.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/swap.h b/include/linux/swap.h
index d08feef..31eb343 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -155,7 +155,7 @@ enum {
};
#define SWAP_CLUSTER_MAX 256UL
-#define COMPACT_CLUSTER_MAX SWAP_CLUSTER_MAX
+#define COMPACT_CLUSTER_MAX 32UL
/*
* Ratio between zone->managed_pages and the "gap" that above the per-zone
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] mm/compaction: restore COMPACT_CLUSTER_MAX to 32 Joonsoo Kim <js1304@gmail.com> - 2015-12-03 05:20 +0100
Re: [PATCH] mm/compaction: restore COMPACT_CLUSTER_MAX to 32 Andrew Morton <akpm@linux-foundation.org> - 2015-12-08 02:10 +0100
Re: [PATCH] mm/compaction: restore COMPACT_CLUSTER_MAX to 32 Mel Gorman <mgorman@suse.de> - 2015-12-08 10:50 +0100
csiph-web