Re: [PATCH v4] mm/page_reporting: Add page_reporting_delay_ms module parameter

From: SJ Park

Date: Fri Jul 31 2026 - 20:04:27 EST


Brendan changed his mail address [1]. I added him to the recipient list.

On Fri, 31 Jul 2026 19:37:05 +0000 pratmal@xxxxxxxxxx wrote:

> From: Pratyush Mallick <pratmal@xxxxxxxxxx>
>
> Free page reporting currently hardcodes a 2-second interval between
> reports. This rigid delay cannot accommodate diverse guest workloads.
>
> This patch introduces a module parameter, page_reporting_delay_ms
> (default: 2000), allowing users to tune the reporting rate:
> - Lower values enable aggressive memory reclamation by returning unused
> pages to the host immediately.
> - Higher values help batch pages during spiky allocation/free churn,
> reducing hypercalls and nested page fault overheads.
>
> Setting the delay to 0 is safe and execution is strictly gated by:
> - reporting is only triggered by high-order page frees.
> - expensive hypercalls are bounded by a slot capacity watermark check
> before proceeding.

Looks good and making sense to me.

>
> Signed-off-by: Pratyush Mallick <pratmal@xxxxxxxxxx>

Reviewed-by: SJ Park <sj@xxxxxxxxxx>

[1] https://lore.kernel.org/20260729-email-change-v1-1-666ae7c2b7fc@xxxxxxxxxx


Thanks,
SJ

[...]