Re: [PATCH] x86: Accelerate copy_page with non-temporal in X86
Borislav Petkov <[email protected]> Tue, 13 Apr 2021 13:01:37 +0200
| Newsgroups | org.01.lists.linux-nvdimm,dev.linux.lists.nvdimm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
+ linux-nvdimm Original mail at https://lkml.kernel.org/r/[email protected] On Tue, Apr 13, 2021 at 02:25:58PM +0800, Kemeng Shi wrote: > I'm using AEP with dax_kmem drvier, and AEP is export as a NUMA node in What is AEP? > my system. I will move cold pages from DRAM node to AEP node with > move_pages system call. With old "rep movsq', it costs 2030ms to move > 1 GB pages. With "movnti", it only cost about 890ms to move 1GB pages. So there's __copy_user_nocache() which does NT stores. > - ALTERNATIVE "jmp copy_page_regs", "", X86_FEATURE_REP_GOOD > + ALTERNATIVE_2 "jmp copy_page_regs", "", X86_FEATURE_REP_GOOD, \ > + "jmp copy_page_nt", X86_FEATURE_XMM2 This makes every machine which has sse2 do NT stores now. Which means *every* machine practically. The folks on linux-nvdimm@ should be able to give you a better idea what to do. HTH. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette _______________________________________________ Linux-nvdimm mailing list -- [email protected] To unsubscribe send an email to [email protected]