linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Allow order zero pages in page reporting
@ 2026-02-26  7:01 Yuvraj Sakshith
  2026-02-26  7:01 ` [PATCH 1/3] mm/page_reporting: Allow zero page_reporting_order Yuvraj Sakshith
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yuvraj Sakshith @ 2026-02-26  7:01 UTC (permalink / raw)
  To: akpm, mst, david
  Cc: vbabka, surenb, mhocko, jackmanb, hannes, ziy, linux-mm,
	jasowang, xuanzhuo, eperezma, virtualization, kys, haiyangz,
	wei.liu, decui, longli, linux-hyperv, linux-kernel

Today, page reporting sets page_reporting_order in two ways:

(1) page_reporting.page_reporting_order cmdline parameter
(2) Driver can pass order while registering itself.

In both cases, order zero is ignored by free page reporting
because it is used to set page_reporting_order to a default
value, like MAX_PAGE_ORDER.

In some cases we might want page_reporting_order to be zero.

For instance, when virtio-balloon runs inside a guest with
tiny memory (say, 16MB), it might not be able to find a order 1 page
(or in the worst case order MAX_PAGE_ORDER page) after some uptime.
Page reporting should be able to return order zero pages back for
optimal memory relinquishment.

This patch changes the default fallback value from '0' to '-1' in
all possible clients of free page reporting (hv_balloon and
virtio-balloon) together with allowing '0' as a valid order in
page_reporting_register().

Yuvraj Sakshith (3):
  mm/page_reporting: Allow zero page_reporting_order
  hv_balloon: Change default page reporting order
  virtio_balloon: Set pr_dev.order to new default

 drivers/hv/hv_balloon.c         |  2 +-
 drivers/virtio/virtio_balloon.c | 14 ++++++++++++++
 mm/page_reporting.c             |  2 +-
 3 files changed, 16 insertions(+), 2 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2026-02-26  7:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-26  7:01 [PATCH 0/3] Allow order zero pages in page reporting Yuvraj Sakshith
2026-02-26  7:01 ` [PATCH 1/3] mm/page_reporting: Allow zero page_reporting_order Yuvraj Sakshith
2026-02-26  7:01 ` [PATCH 2/3] hv_balloon: Change default page reporting order Yuvraj Sakshith
2026-02-26  7:01 ` [PATCH 3/3] virtio_balloon: Set pr_dev.order to new default Yuvraj Sakshith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox