[Devel] [PATCH vz7 v2 0/4] Make balloon drivers report and log memory stats

Alexander Atanasov alexander.atanasov at virtuozzo.com
Mon Oct 17 14:57:07 MSK 2022


To print balloon stats in case of OOM and sysrq we need to have
this stats in the mm core.
1. Add stats for balloon memory in core.
2. Propagate changes from drivers.
3. Print balloon stats in show_mem which is used on OOM and sysrq.

Alexander Atanasov (4):
  Enable balloon drivers to report inflated memory
  drivers: virtio: balloon report stats to mm core
  drivers: vmware: balloon report stats to mm core
  drivers: hyperv: balloon report stats to mm core

 drivers/hv/hv_balloon.c            | 11 +++++++++++
 drivers/misc/vmw_balloon.c         |  7 ++++++-
 drivers/virtio/virtio_balloon.c    |  5 +++++
 include/linux/balloon_compaction.h |  7 +++++++
 lib/show_mem.c                     |  8 ++++++++
 mm/balloon_compaction.c            | 16 ++++++++++++++++
 6 files changed, 53 insertions(+), 1 deletion(-)

v1->v2: fixed warning in vmware driver

https://jira.sw.ru/browse/PSBM-142436
-- 
2.31.1



More information about the Devel mailing list