Re: [PATCH v2 2/2] mm/hugetlb: refactor subpage recording

2021-02-13 Thread Mike Kravetz
On 2/13/21 7:44 AM, Zi Yan wrote: > On 11 Feb 2021, at 18:44, Mike Kravetz wrote: > >> On 2/11/21 12:47 PM, Zi Yan wrote: >>> On 28 Jan 2021, at 16:53, Mike Kravetz wrote: On 1/28/21 10:26 AM, Joao Martins wrote: > For a given hugepage backing a VA, there's a rather ineficient > loop

Re: [PATCH v2 2/2] mm/hugetlb: refactor subpage recording

2021-02-13 Thread Zi Yan
On 11 Feb 2021, at 18:44, Mike Kravetz wrote: > On 2/11/21 12:47 PM, Zi Yan wrote: >> On 28 Jan 2021, at 16:53, Mike Kravetz wrote: >> >>> On 1/28/21 10:26 AM, Joao Martins wrote: For a given hugepage backing a VA, there's a rather ineficient loop which is solely responsible for storing

Re: [PATCH v2 2/2] mm/hugetlb: refactor subpage recording

2021-02-11 Thread Mike Kravetz
On 2/11/21 12:47 PM, Zi Yan wrote: > On 28 Jan 2021, at 16:53, Mike Kravetz wrote: > >> On 1/28/21 10:26 AM, Joao Martins wrote: >>> For a given hugepage backing a VA, there's a rather ineficient >>> loop which is solely responsible for storing subpages in GUP >>> @pages/@vmas array. For each

Re: [PATCH v2 2/2] mm/hugetlb: refactor subpage recording

2021-02-11 Thread Zi Yan
On 28 Jan 2021, at 16:53, Mike Kravetz wrote: > On 1/28/21 10:26 AM, Joao Martins wrote: >> For a given hugepage backing a VA, there's a rather ineficient >> loop which is solely responsible for storing subpages in GUP >> @pages/@vmas array. For each subpage we check whether it's within >> range

Re: [PATCH v2 2/2] mm/hugetlb: refactor subpage recording

2021-01-28 Thread Mike Kravetz
On 1/28/21 10:26 AM, Joao Martins wrote: > For a given hugepage backing a VA, there's a rather ineficient > loop which is solely responsible for storing subpages in GUP > @pages/@vmas array. For each subpage we check whether it's within > range or size of @pages and keep increment @pfn_offset and

[PATCH v2 2/2] mm/hugetlb: refactor subpage recording

2021-01-28 Thread Joao Martins
For a given hugepage backing a VA, there's a rather ineficient loop which is solely responsible for storing subpages in GUP @pages/@vmas array. For each subpage we check whether it's within range or size of @pages and keep increment @pfn_offset and a couple other variables per subpage iteration.