Skip to content

Configurable order free page reporting in hyper-v

Shradha Gupta linux-hyperv linux-mm lkml llvm 2 versions – Applied

Status from this message: Applied to hyperv-next. Thanks.

Get series with b4
b4 am 1664517699-1085-1-git-send-email-shradhagupta@linux.microsoft.com

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesApplied
  2. v11 of 2 patches 0 repliesSuperseded

Changes in v2 from the cover letter

* Add more details in the cover letter about the motivation
* Fix the threading between dependent patches

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2mm/page_reporting: Add checks for page_reporting_order parammm/page_reporting.c+45 -54 replies
2/2hv_balloon: Add support for configurable order free page reportingdrivers/hv/hv_balloon.c+73 -211 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMichael Kelley
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Configurable order free page reporting in hyper-v

In some scenarios Hyper-V needs to manage memory more tightly, so it needs as much information as possible about unused guest pages. To that end Hyper-V now allows free page reporting in chunks smaller than 2 Mbytes. Because of the performance tradeoffs, we want to make the chunk size configurable. Since there's already a free page reporting module parameter, let's use that rather than creating yet another parameter.

Configurable order free page reporting is enabled in page_reporting driver in mm tree. However, changes need to be made in drivers like hyper-v's hv_balloon to make it aware of the page order.
These patches add support for the same.
In the page_reporting driver(patch 1) we export the page_reporting_order module parameter. Besides this, in the page_reporting module a check is added to ensure that whenever the page_reporting_order value is changed, it is within the prescribed limits.

The hv_balloon side changes(patch 2) include consuming the exported page_reporting_order. Making changes in reporting these variable order free pages as cold discard hints to hyper-v and dropping and refining checks that restrict the order to a minimum of 9(default).

---
Changes in v2
* Add more details in the cover letter about the motivation
* Fix the threading between dependent patches

Shradha Gupta (2):
mm/page_reporting: Add checks for page_reporting_order param
hv_balloon: Add support for configurable order free page reporting

 drivers/hv/hv_balloon.c | 94 ++++++++++++++++++++++++++++++++---------
 mm/page_reporting.c     | 50 +++++++++++++++++++---
 2 files changed, 118 insertions(+), 26 deletions(-)
Signature · 1 line
2.37.2