Re: [PATCH v2 1/1] mm: Optimizing hugepage zeroing in arm64

2021-02-03 Thread Ira Weiny
On Wed, Feb 03, 2021 at 04:08:08PM +0530, Prathu Baronia wrote: >Hey Ira, >I looked at your below-mentioned patch and I agree that the >above-mentioned functions also need modification similar to >clear_user_highpage(). >Would it be okay with you if I send your patch again with

Re: [PATCH v2 1/1] mm: Optimizing hugepage zeroing in arm64

2021-02-02 Thread Ira Weiny
On Tue, Feb 02, 2021 at 01:12:24PM +0530, Prathu Baronia wrote: > In !HIGHMEM cases, specially in 64-bit architectures, we don't need temp > mapping of pages. Hence, k(map|unmap)_atomic() acts as nothing more than > multiple barrier() calls, for example for a 2MB hugepage in > clear_huge_page()

[PATCH v2 1/1] mm: Optimizing hugepage zeroing in arm64

2021-02-01 Thread Prathu Baronia
In !HIGHMEM cases, specially in 64-bit architectures, we don't need temp mapping of pages. Hence, k(map|unmap)_atomic() acts as nothing more than multiple barrier() calls, for example for a 2MB hugepage in clear_huge_page() these are called 512 times i.e. to map and unmap each subpage that means