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

2022-10-05 Thread Alexander Atanasov
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 infla

[Devel] [PATCH vz7 2/4] drivers: virtio: balloon report stats to mm core

2022-10-05 Thread Alexander Atanasov
Propagate balloon stats to mm core. https://jira.sw.ru/browse/PSBM-142436 Signed-off-by: Alexander Atanasov --- drivers/virtio/virtio_balloon.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index e8cefeea4f22..8c2a03e2b

[Devel] [PATCH 4/4] drivers: hyperv: balloon report stats to mm core

2022-10-05 Thread Alexander Atanasov
Propagate balloon stats to mm core. https://jira.sw.ru/browse/PSBM-142436 Signed-off-by: Alexander Atanasov --- drivers/hv/hv_balloon.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index 9bf30659a975..5faf5bfd62b1 100644 --- a

[Devel] [PATCH vz7 1/4] Enable balloon drivers to report inflated memory

2022-10-05 Thread Alexander Atanasov
Add counters to be updated by the balloon drivers. Print balloon stats when logging kernel memory usage. https://jira.sw.ru/browse/PSBM-142436 Signed-off-by: Alexander Atanasov --- include/linux/balloon_compaction.h | 7 +++ lib/show_mem.c | 8 mm/balloon_comp

[Devel] [PATCH vz7 3/4] drivers: vmware: balloon report stats to mm core

2022-10-05 Thread Alexander Atanasov
Propagate balloon stats to mm core. https://jira.sw.ru/browse/PSBM-142436 Signed-off-by: Alexander Atanasov --- drivers/misc/vmw_balloon.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c index 981f47f400ae..5bb579c