From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2320C433F5 for ; Thu, 29 Sep 2022 10:24:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 053DD8D0002; Thu, 29 Sep 2022 06:24:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F1E208D0001; Thu, 29 Sep 2022 06:24:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E0DE78D0002; Thu, 29 Sep 2022 06:24:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id D112A8D0001 for ; Thu, 29 Sep 2022 06:24:51 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id A2AB6C10CC for ; Thu, 29 Sep 2022 10:24:51 +0000 (UTC) X-FDA: 79964739582.19.F4BF8CB Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf27.hostedemail.com (Postfix) with ESMTP id 2CBC24000E for ; Thu, 29 Sep 2022 10:24:50 +0000 (UTC) Received: by linux.microsoft.com (Postfix, from userid 1134) id 22B7B20DEE6F; Thu, 29 Sep 2022 03:24:50 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 22B7B20DEE6F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1664447090; bh=33c+IysfP1nl2vviiqkB7+1UrsmV1vFHMMgfRpYodcc=; h=From:To:Cc:Subject:Date:From; b=mdfXJ5M4B75XJz3s4dQNhleREvvlToHImVy+O05Ec3I5zejCyXnDMiWv9qk3V6yiX 7mpum4UwPQICSwyrMrqhCzzAEd0W0thHeDybTz3FeHz8s0wmz/cKOFiCqk3ORy377Z fBsX8ueWxhLDK/F2r5i2+m4k+Gozr8uBTRUJIMeM= From: Shradha Gupta To: Andrew Morton , linux-mm@kvack.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Shradha Gupta , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Shradha Gupta , Michael Kelley Subject: [PATCH 0/2] Configurable order free page reporting in hyper-v Date: Thu, 29 Sep 2022 03:24:39 -0700 Message-Id: <1664447081-14744-1-git-send-email-shradhagupta@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=mdfXJ5M4; spf=pass (imf27.hostedemail.com: domain of shradhagupta@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=shradhagupta@linux.microsoft.com; dmarc=pass (policy=none) header.from=linux.microsoft.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1664447091; a=rsa-sha256; cv=none; b=XtFLhrsO8F+NHNGcRTB9fR4wR13dsoclyloCAfHz2BIP2qhldZ0kBTrjKGHqnC0uwJ+s1v f9pbp/09QzAc1GbkAK5JEkyTSX+G8DpwgjmwjifPeDhbnA25mI445Y7GOBhZ2hpPB+Mrg/ 3ZRYl75ZzdzvVNk7zN32+yh2drYCj2Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1664447091; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:dkim-signature; bh=33c+IysfP1nl2vviiqkB7+1UrsmV1vFHMMgfRpYodcc=; b=B8YsueecVAf2va45ZkuZ+QifNbkc2vCYGV5h4JaZylBWo0scJwe8NmJ4uEhjSiInSl0XWM G0ntkvUuhvc435qQLqRcMIGBxTOHBv7btf52jfnO+L8rXMX7wvR0cfokQljDuNYWbirXTO WsOFL9u1b+dK0PHasGlkrn9F4OL//LA= X-Stat-Signature: i1xxu8siimgy7a37y4yk9bmn4ctxm983 X-Rspamd-Queue-Id: 2CBC24000E Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=mdfXJ5M4; spf=pass (imf27.hostedemail.com: domain of shradhagupta@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=shradhagupta@linux.microsoft.com; dmarc=pass (policy=none) header.from=linux.microsoft.com X-Rspam-User: X-Rspamd-Server: rspam07 X-HE-Tag: 1664447090-601523 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 we export the page_reporting_order module parameter. Following precedence is added in setting the reporting order a. Value of page_reporting_order parameter b. Value of order passed while registering with the driver c. default value (pageblock_order) 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 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). Shradha Gupta (2): mm/page_reporting: Add checks for page_reporting_order param value hv_balloon: Add support for configurable order free page reporting drivers/hv/hv_balloon.c | 94 ++++++++++++++++++++++++++++++++--------- mm/page_reporting.c | 50 ++++++++++++++++++++++++++++++++++++++++----- 2 file changed, 118 insertions(+), 26 deletions(-) -- 2.37.2