linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] mm: Optimizing hugepage zeroing in arm64
@ 2021-01-21 16:51 Prathu Baronia
  2021-01-21 16:51 ` [PATCH 1/1] " Prathu Baronia
  2021-01-21 17:46 ` [PATCH 0/1] " Will Deacon
  0 siblings, 2 replies; 6+ messages in thread
From: Prathu Baronia @ 2021-01-21 16:51 UTC (permalink / raw)
  To: linux-kernel
  Cc: chintan.pandya, Prathu Baronia, Catalin Marinas, Will Deacon,
	Vincenzo Frascino, glider, Geert Uytterhoeven, Andrew Morton,
	Anshuman Khandual, Andrey Konovalov, linux-arm-kernel

Hello!

This patch removes the unnecessary kmap calls in the hugepage zeroing path and
improves the timing by 62%.

I had proposed a similar change in Apr-May'20 timeframe in memory.c where I
proposed to clear out a hugepage by directly calling a memset over the whole
hugepage but got the opposition that the change was not architecturally neutral.

Upon revisiting this now I see significant improvement by removing around 2k
barrier calls from the zeroing path. So hereby I propose an arm64 specific
definition of clear_user_highpage().

Prathu Baronia (1):
  mm: Optimizing hugepage zeroing in arm64

 arch/arm64/include/asm/page.h | 3 +++
 arch/arm64/mm/copypage.c      | 8 ++++++++
 2 files changed, 11 insertions(+)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-22 12:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-21 16:51 [PATCH 0/1] mm: Optimizing hugepage zeroing in arm64 Prathu Baronia
2021-01-21 16:51 ` [PATCH 1/1] " Prathu Baronia
2021-01-21 17:46 ` [PATCH 0/1] " Will Deacon
2021-01-21 18:59   ` Robin Murphy
2021-01-22 12:13     ` Catalin Marinas
2021-01-22 12:45       ` Robin Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).