* Re: [PATCH 0/2] Two minor cleanups for compaction
2023-07-20 11:53 [PATCH 0/2] Two minor cleanups for compaction Kemeng Shi
@ 2023-07-20 6:08 ` Baolin Wang
2023-07-20 8:45 ` Kemeng Shi
2023-07-20 11:53 ` [PATCH 2/2] mm/compaction: avoid unneeded pageblock_end_pfn when no_set_skip_hint is set Kemeng Shi
[not found] ` <20230720115351.2039431-2-shikemeng@huaweicloud.com>
2 siblings, 1 reply; 6+ messages in thread
From: Baolin Wang @ 2023-07-20 6:08 UTC (permalink / raw)
To: Kemeng Shi, akpm, linux-mm, linux-kernel
On 7/20/2023 7:53 PM, Kemeng Shi wrote:
> Hi all, this series contains two random cleanups for compaction.
> Patch 1 correct wrong comment in fast_isolate_freepages.
> Patch 2 avoid to call unneeded pageblock_end_pfn when no_set_skip_hint
> is set.
> Thanks!
I only received the patch 2 in this patch set, and I checked the lore
archives[1], still did not find patch 1. You missed patch 1?
[1]
https://lore.kernel.org/linux-mm/20230720115351.2039431-1-shikemeng@huaweicloud.com/
>
> Kemeng Shi (2):
> mm/compaction: correct comment of candidate pfn in
> fast_isolate_freepages
> mm/compaction: avoid unneeded pageblock_end_pfn when no_set_skip_hint
> is set
>
> mm/compaction.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] mm/compaction: avoid unneeded pageblock_end_pfn when no_set_skip_hint is set
2023-07-20 11:53 ` [PATCH 2/2] mm/compaction: avoid unneeded pageblock_end_pfn when no_set_skip_hint is set Kemeng Shi
@ 2023-07-20 6:09 ` Baolin Wang
0 siblings, 0 replies; 6+ messages in thread
From: Baolin Wang @ 2023-07-20 6:09 UTC (permalink / raw)
To: Kemeng Shi, akpm, linux-mm, linux-kernel
On 7/20/2023 7:53 PM, Kemeng Shi wrote:
> Move pageblock_end_pfn after no_set_skip_hint check to avoid unneeded
> pageblock_end_pfn if no_set_skip_hint is set.
>
> Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
> ---
> mm/compaction.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/mm/compaction.c b/mm/compaction.c
> index c0d8d08fc163..9b7a0a69e19f 100644
> --- a/mm/compaction.c
> +++ b/mm/compaction.c
> @@ -458,12 +458,12 @@ static void update_cached_migrate(struct compact_control *cc, unsigned long pfn)
> {
> struct zone *zone = cc->zone;
>
> - pfn = pageblock_end_pfn(pfn);
> -
> /* Set for isolation rather than compaction */
> if (cc->no_set_skip_hint)
> return;
>
> + pfn = pageblock_end_pfn(pfn);
> +
> if (pfn > zone->compact_cached_migrate_pfn[0])
> zone->compact_cached_migrate_pfn[0] = pfn;
> if (cc->mode != MIGRATE_ASYNC &&
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/2] Two minor cleanups for compaction
2023-07-20 6:08 ` Baolin Wang
@ 2023-07-20 8:45 ` Kemeng Shi
0 siblings, 0 replies; 6+ messages in thread
From: Kemeng Shi @ 2023-07-20 8:45 UTC (permalink / raw)
To: Baolin Wang, akpm, linux-mm, linux-kernel
on 7/20/2023 2:08 PM, Baolin Wang wrote:
>
>
> On 7/20/2023 7:53 PM, Kemeng Shi wrote:
>> Hi all, this series contains two random cleanups for compaction.
>> Patch 1 correct wrong comment in fast_isolate_freepages.
>> Patch 2 avoid to call unneeded pageblock_end_pfn when no_set_skip_hint
>> is set.
>> Thanks!
>
> I only received the patch 2 in this patch set, and I checked the lore
> archives[1], still did not find patch 1. You missed patch 1?
>
> [1] https://lore.kernel.org/linux-mm/20230720115351.2039431-1-shikemeng@huaweicloud.com/
>
>>
>> Kemeng Shi (2):
>> mm/compaction: correct comment of candidate pfn in
>> fast_isolate_freepages
>> mm/compaction: avoid unneeded pageblock_end_pfn when no_set_skip_hint
>> is set
>>
>> mm/compaction.c | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>
>
Hi Baolin, thanks for the review and for reminding me of this. I can recive the patch 1
in my mail client. There maybe some problem in my mail server. I also found there is
a whole patchset I have sent is missing in lcore archives. I will try to resend these
patches. Thanks a lot.
--
Best wishes
Kemeng Shi
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 0/2] Two minor cleanups for compaction
@ 2023-07-20 11:53 Kemeng Shi
2023-07-20 6:08 ` Baolin Wang
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Kemeng Shi @ 2023-07-20 11:53 UTC (permalink / raw)
To: akpm, linux-mm, linux-kernel; +Cc: shikemeng
Hi all, this series contains two random cleanups for compaction.
Patch 1 correct wrong comment in fast_isolate_freepages.
Patch 2 avoid to call unneeded pageblock_end_pfn when no_set_skip_hint
is set.
Thanks!
Kemeng Shi (2):
mm/compaction: correct comment of candidate pfn in
fast_isolate_freepages
mm/compaction: avoid unneeded pageblock_end_pfn when no_set_skip_hint
is set
mm/compaction.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--
2.30.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] mm/compaction: avoid unneeded pageblock_end_pfn when no_set_skip_hint is set
2023-07-20 11:53 [PATCH 0/2] Two minor cleanups for compaction Kemeng Shi
2023-07-20 6:08 ` Baolin Wang
@ 2023-07-20 11:53 ` Kemeng Shi
2023-07-20 6:09 ` Baolin Wang
[not found] ` <20230720115351.2039431-2-shikemeng@huaweicloud.com>
2 siblings, 1 reply; 6+ messages in thread
From: Kemeng Shi @ 2023-07-20 11:53 UTC (permalink / raw)
To: akpm, linux-mm, linux-kernel; +Cc: shikemeng
Move pageblock_end_pfn after no_set_skip_hint check to avoid unneeded
pageblock_end_pfn if no_set_skip_hint is set.
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
---
mm/compaction.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/compaction.c b/mm/compaction.c
index c0d8d08fc163..9b7a0a69e19f 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -458,12 +458,12 @@ static void update_cached_migrate(struct compact_control *cc, unsigned long pfn)
{
struct zone *zone = cc->zone;
- pfn = pageblock_end_pfn(pfn);
-
/* Set for isolation rather than compaction */
if (cc->no_set_skip_hint)
return;
+ pfn = pageblock_end_pfn(pfn);
+
if (pfn > zone->compact_cached_migrate_pfn[0])
zone->compact_cached_migrate_pfn[0] = pfn;
if (cc->mode != MIGRATE_ASYNC &&
--
2.30.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] mm/compaction: correct comment of candidate pfn in fast_isolate_freepages
[not found] ` <20230720115351.2039431-2-shikemeng@huaweicloud.com>
@ 2023-07-21 7:44 ` Kemeng Shi
0 siblings, 0 replies; 6+ messages in thread
From: Kemeng Shi @ 2023-07-21 7:44 UTC (permalink / raw)
To: akpm, linux-mm, linux-kernel, Baolin Wang
Hi Baolin, I try to resend a new v2 patchset, the patch 1 is still
missing. Here is the patch 1 in old version and I find it in lore
archive of lore.kernel.org with link [1].
It's likely that patch 1 is denied by linux-mm.kvack.org but accepted
by linux-kernel@vger.kernel.org. Is anyone know how to submit issue of
linux-mm.kvack.org, please let know. Thanks!
[1] https://lore.kernel.org/all/20230720115351.2039431-2-shikemeng@huaweicloud.com/
on 7/20/2023 7:53 PM, Kemeng Shi wrote:
> If no preferred one was not found, we will use candidate page with maximum
> pfn > min_pfn which is saved in high_pfn. Correct "minimum" to "maximum
> candidate" in comment.
>
> Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
> ---
> mm/compaction.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/compaction.c b/mm/compaction.c
> index eb1d3d9a422c..c0d8d08fc163 100644
> --- a/mm/compaction.c
> +++ b/mm/compaction.c
> @@ -1526,7 +1526,7 @@ static void fast_isolate_freepages(struct compact_control *cc)
> break;
> }
>
> - /* Use a minimum pfn if a preferred one was not found */
> + /* Use a maximum candidate pfn if a preferred one was not found */
> if (!page && high_pfn) {
> page = pfn_to_page(high_pfn);
>
>
--
Best wishes
Kemeng Shi
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-07-21 7:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-20 11:53 [PATCH 0/2] Two minor cleanups for compaction Kemeng Shi
2023-07-20 6:08 ` Baolin Wang
2023-07-20 8:45 ` Kemeng Shi
2023-07-20 11:53 ` [PATCH 2/2] mm/compaction: avoid unneeded pageblock_end_pfn when no_set_skip_hint is set Kemeng Shi
2023-07-20 6:09 ` Baolin Wang
[not found] ` <20230720115351.2039431-2-shikemeng@huaweicloud.com>
2023-07-21 7:44 ` [PATCH 1/2] mm/compaction: correct comment of candidate pfn in fast_isolate_freepages Kemeng Shi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox