Re: [PATCH -mm] mm, huge page: Copy to access sub-page last when copy huge page

From: Michal Hocko
Date: Fri May 18 2018 - 01:28:09 EST


On Fri 18-05-18 11:03:16, Huang, Ying wrote:
[...]
> The patch is a generic optimization which should benefit quite some
> workloads, not for a specific use case. To demonstrate the performance
> benefit of the patch, we tested it with vm-scalability run on
> transparent huge page.

It is also adds quite some non-intuitive code. So is this worth? Does
any _real_ workload benefits from the change?

> include/linux/mm.h | 3 ++-
> mm/huge_memory.c | 3 ++-
> mm/memory.c | 43 +++++++++++++++++++++++++++++++++++++++----
> 3 files changed, 43 insertions(+), 6 deletions(-)
--
Michal Hocko
SUSE Labs