diff options
author | Konstantin Khlebnikov <k.khlebnikov@samsung.com> | 2014-10-09 18:29:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-09 22:26:01 -0400 |
commit | 09316c09dde33aae14f34489d9e3d243ec0d5938 (patch) | |
tree | 3238cf34be33d587a93db64a9f934f8b1c69cfb8 /mm/Kconfig | |
parent | 9d1ba8056474a208ed9efb7e58cd014795d9f818 (diff) |
mm/balloon_compaction: add vmstat counters and kpageflags bit
Always mark pages with PageBalloon even if balloon compaction is disabled
and expose this mark in /proc/kpageflags as KPF_BALLOON.
Also this patch adds three counters into /proc/vmstat: "balloon_inflate",
"balloon_deflate" and "balloon_migrate". They accumulate balloon
activity. Current size of balloon is (balloon_inflate - balloon_deflate)
pages.
All generic balloon code now gathered under option CONFIG_MEMORY_BALLOON.
It should be selected by ballooning driver which wants use this feature.
Currently virtio-balloon is the only user.
Signed-off-by: Konstantin Khlebnikov <k.khlebnikov@samsung.com>
Cc: Rafael Aquini <aquini@redhat.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/Kconfig')
-rw-r--r-- | mm/Kconfig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mm/Kconfig b/mm/Kconfig index 0ceb8a567dab..1d1ae6b078fd 100644 --- a/mm/Kconfig +++ b/mm/Kconfig | |||
@@ -231,11 +231,16 @@ config ARCH_ENABLE_SPLIT_PMD_PTLOCK | |||
231 | boolean | 231 | boolean |
232 | 232 | ||
233 | # | 233 | # |
234 | # support for memory balloon | ||
235 | config MEMORY_BALLOON | ||
236 | boolean | ||
237 | |||
238 | # | ||
234 | # support for memory balloon compaction | 239 | # support for memory balloon compaction |
235 | config BALLOON_COMPACTION | 240 | config BALLOON_COMPACTION |
236 | bool "Allow for balloon memory compaction/migration" | 241 | bool "Allow for balloon memory compaction/migration" |
237 | def_bool y | 242 | def_bool y |
238 | depends on COMPACTION && VIRTIO_BALLOON | 243 | depends on COMPACTION && MEMORY_BALLOON |
239 | help | 244 | help |
240 | Memory fragmentation introduced by ballooning might reduce | 245 | Memory fragmentation introduced by ballooning might reduce |
241 | significantly the number of 2MB contiguous memory blocks that can be | 246 | significantly the number of 2MB contiguous memory blocks that can be |