Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/kconfig: make BALLOON_COMPACTION depend on MIGRATION

Migration support for balloon memory depends on MIGRATION not COMPACTION.
Compaction is simply another user of page migration.

The last dependency on compaction.c was effectively removed with commit
3d388584d599 ("mm: convert "movable" flag in page->mapping to a page
flag"). Ever since, everything for handling movable_ops page migration
resides in core migration code.

So let's change the dependency and adjust the description + help text.

We'll rename BALLOON_COMPACTION separately next.

Link: https://lkml.kernel.org/r/20260119230133.3551867-22-david@kernel.org
Signed-off-by: David Hildenbrand (Red Hat) <david@kernel.org>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Eugenio Pérez <eperezma@redhat.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Jerrin Shaji George <jerrin.shaji-george@broadcom.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: SeongJae Park <sj@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

David Hildenbrand (Red Hat) and committed by
Andrew Morton
7cf3318a 25b48b4c

+6 -9
+6 -9
mm/Kconfig
··· 599 599 # 600 600 # support for memory balloon compaction 601 601 config BALLOON_COMPACTION 602 - bool "Allow for balloon memory compaction/migration" 602 + bool "Allow for balloon memory migration" 603 603 default y 604 - depends on COMPACTION && MEMORY_BALLOON 604 + depends on MIGRATION && MEMORY_BALLOON 605 605 help 606 - Memory fragmentation introduced by ballooning might reduce 607 - significantly the number of 2MB contiguous memory blocks that can be 608 - used within a guest, thus imposing performance penalties associated 609 - with the reduced number of transparent huge pages that could be used 610 - by the guest workload. Allowing the compaction & migration for memory 611 - pages enlisted as being part of memory balloon devices avoids the 612 - scenario aforementioned and helps improving memory defragmentation. 606 + Allow for migration of pages inflated in a memory balloon such that 607 + they can be allocated from memory areas only available for movable 608 + allocations (e.g., ZONE_MOVABLE, CMA) and such that they can be 609 + migrated for memory defragmentation purposes by memory compaction. 613 610 614 611 # 615 612 # support for memory compaction