[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v6 7/7] mm: allow page scrubbing routine(s) to be arch controlled


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Tue, 24 Jun 2025 17:02:25 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iziTIulgBRL0iZ4VHL8f+gFBagH0ReS49NxaMmUA4fE=; b=KT8JfPotumlJOqq95uopYspqvzqmCUSxYVBKMo8rLUME1ZiYQ+nsq/YsbD7Pd7XO7TVAUydn3Rq0wIOK8friQsxz51bhOMGdF12MqLWEnzNffxttWRuWHPqaSWYE9Lep+QUD7RygCcNuWCCiuLX7D7lZ9u+tKWVGGaZnhccJy+N7kptGyBvIc+6ZgBRTRctUeqjX5WvAv6/xnRN2VuqcZb38zovvb+UTmSgUPnVDD1OoSKro1j777oJkgvD25iouH+ImgHSEVH+vt/3HPFtfqGVKIPW8m9bpA2mrdtTlYqFOkQdxlicG4b8q1MQVXEnxaMjpSwZOLP5s6YgU33mSNQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PtTR8jT9olP7XZKcro1VybMRLLMpq171X871OpRlFsVgADrgdOktkhp2tnVJpSpE2g/FLZlGhtelkwQ1NA/hZgxMBoGnR1tfw3gu3hzkqOZdegLF7jvVUb/scPJ0S9rAbt7y351HuvbQWYoO59hx8DOK6nzS1BobFXuOJPEJcok+VEtoyL1f2r5XF71r1g03Gb+ul8C0ZY8hSXKLxKbKs5dkG0QW9BkYHIUpbGmyNhB9y97RA6tunrB1wdcgGjZky/Haa5ZDxX+eDUZIruhKhKC5jpMaLhNPiK5wNFZEPjCZtj3wT/3VihOdd1Lb7WuHHpqsWUQUpXx1Db0IBMea2A==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 24 Jun 2025 21:02:34 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2025-06-16 09:02, Jan Beulich wrote:
Especially when dealing with large amounts of memory, memset() may not
be very efficient; this can be bad enough that even for debug builds a
custom function is warranted. We additionally want to distinguish "hot"
and "cold" cases (with, as initial heuristic, "hot" being for any
allocations a domain does for itself, assuming that in all other cases
the page wouldn't be accessed [again] soon). The goal is for accesses
of "cold" pages to not disturb caches (albeit finding a good balance
between this and the higher latency looks to be difficult).

Keep the default fallback to clear_page_*() in common code; this may
want to be revisited down the road.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: Julien Grall <jgrall@xxxxxxxxxx>
Reviewed-by: Oleksii Kurochko<oleksii.kurochko@xxxxxxxxx>

Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.