Re: [PATCH] mm/hugetlb: optimize the surplus state transfer code in move_hugetlb_state()

2021-02-12 Thread Mike Kravetz
On 2/9/21 11:12 PM, Miaohe Lin wrote: > We should not transfer the per-node surplus state when we do not cross the > node in order to save some cpu cycles > > Signed-off-by: Miaohe Lin > --- > mm/hugetlb.c | 6 ++ > 1 file changed, 6 insertions(+) Thanks, I was going to comment that the us

[PATCH] mm/hugetlb: optimize the surplus state transfer code in move_hugetlb_state()

2021-02-09 Thread Miaohe Lin
We should not transfer the per-node surplus state when we do not cross the node in order to save some cpu cycles Signed-off-by: Miaohe Lin --- mm/hugetlb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index da347047ea10..4f2c92ddbca4 100644 --- a/mm/huget