All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Make balloon drivers memory changes known to the rest of the kernel
@ 2022-08-16  9:41 ` Alexander Atanasov
  0 siblings, 0 replies; 26+ messages in thread
From: Alexander Atanasov @ 2022-08-16  9:41 UTC (permalink / raw)
  Cc: kernel, Alexander Atanasov, Michael S . Tsirkin,
	David Hildenbrand, Wei Liu, Nadav Amit, pv-drivers, Jason Wang,
	virtualization, K. Y. Srinivasan, Haiyang Zhang,
	Stephen Hemminger, Dexuan Cui, linux-hyperv, Juergen Gross,
	Stefano Stabellini, Oleksandr Tyshchenko, xen-devel

Currently balloon drivers (Virtio,XEN, HyperV, VMWare, ...)
inflate and deflate the guest memory size but there is no
way to know how much the memory size is changed by them.

A common use of the ballooning is to emulate [1]
hot plug and hot unplug - due to the complexity of the later.
Hotplug has a notifier and one can also check the updated
memory size.

To improve this add InflatedTotal and InflatedFree
to /proc/meminfo and implement a balloon notifier.

Amount of inflated memory can be used:
 - si_meminfo(..) users can improve calculations
 - adjust cache/buffer sizes 
 - adjust object/connection limits
 - as a hint for the oom a killer
 - by user space software that monitors memory pressure

Patches for the other balloon drivers will be done next.

Alexander Atanasov (4):
  Make place for common balloon code
  Enable balloon drivers to report inflated memory
  Display inflated memory to users
  drivers: virtio: balloon - update inflated memory

 Documentation/filesystems/proc.rst            |  6 +++
 MAINTAINERS                                   |  4 +-
 arch/powerpc/platforms/pseries/cmm.c          |  2 +-
 drivers/misc/vmw_balloon.c                    |  2 +-
 drivers/virtio/virtio_balloon.c               |  7 +++-
 fs/proc/meminfo.c                             | 10 +++++
 ...{balloon_compaction.h => balloon_common.h} | 20 +++++++++-
 mm/Makefile                                   |  2 +-
 mm/{balloon_compaction.c => balloon_common.c} | 38 ++++++++++++++++++-
 mm/migrate.c                                  |  2 +-
 mm/vmscan.c                                   |  2 +-
 11 files changed, 84 insertions(+), 11 deletions(-)
 rename include/linux/{balloon_compaction.h => balloon_common.h} (90%)
 rename mm/{balloon_compaction.c => balloon_common.c} (89%)

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Wei Liu <wei.liu@kernel.org>
Cc: Nadav Amit <namit@vmware.com>
Cc: pv-drivers@vmware.com
Cc: Jason Wang <jasowang@redhat.com>
Cc: virtualization@lists.linux-foundation.org
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: linux-hyperv@vger.kernel.org
Cc: Juergen Gross <jgross@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Cc: xen-devel@lists.xenproject.org


-- 
2.31.1


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2022-08-18  6:44 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-16  9:41 [PATCH v2 0/4] Make balloon drivers memory changes known to the rest of the kernel Alexander Atanasov
2022-08-16  9:41 ` Alexander Atanasov
2022-08-16  9:41 ` [PATCH v2 1/4] Make place for common balloon code Alexander Atanasov
2022-08-16  9:41   ` Alexander Atanasov
2022-08-16  9:49   ` Greg Kroah-Hartman
2022-08-16  9:49     ` Greg Kroah-Hartman
2022-08-16  9:49     ` Greg Kroah-Hartman
2022-08-16 11:47     ` Alexander Atanasov
2022-08-16 11:47       ` Alexander Atanasov
2022-08-16 11:56       ` Greg Kroah-Hartman
2022-08-16 11:56         ` Greg Kroah-Hartman
2022-08-16 11:56         ` Greg Kroah-Hartman
2022-08-16 12:00         ` Michael S. Tsirkin
2022-08-16 12:00           ` Michael S. Tsirkin
2022-08-16 12:00           ` Michael S. Tsirkin
2022-08-18  4:41   ` Ritesh Harjani
2022-08-18  4:41     ` Ritesh Harjani
2022-08-18  6:43     ` Alexander Atanasov
2022-08-18  6:43       ` Alexander Atanasov
2022-08-16  9:41 ` [PATCH v2 2/4] Enable balloon drivers to report inflated memory Alexander Atanasov
2022-08-16  9:41 ` [PATCH v2 3/4] Display inflated memory to users Alexander Atanasov
2022-08-16  9:41 ` [PATCH v2 4/4] drivers: virtio: balloon - update inflated memory Alexander Atanasov
2022-08-16 22:17   ` kernel test robot
2022-08-16 22:17     ` kernel test robot
2022-08-17  5:09   ` kernel test robot
2022-08-17  5:09     ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.