[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <72ce06ab-4ae6-4e11-a7da-35c14e7d8c4d@vivo.com>
Date: Wed, 28 Aug 2024 14:26:20 +0800
From: Huan Yang <link@...o.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
opensource.kernel@...o.com
Subject: Re: [PATCH] mm: page_alloc: simpify page del and expand
在 2024/8/28 8:59, Andrew Morton 写道:
> On Mon, 26 Aug 2024 14:40:48 +0800 Huan Yang <link@...o.com> wrote:
>
>> When page del from buddy and need expand, it will account free_pages
>> in zone's migratetype.
>>
>> The current way is to subtract the page number of the current order
>> when deleting, and then add it back when expanding.
>>
>> This is unnecessary, as when migrating the same type, we can directly
>> record the difference between the high-order pages and the expand
>> added, and then subtract it directly.
>>
>> This patch merge that, only when del and expand done, then account
>> free_pages.
> It isn't obvious to me that this is a significant improvement. Am I
> missing something?
No, this is all. Just want to avoid account twice.(add then sub)
Thanks.
>
Powered by blists - more mailing lists