Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1348110

Re: [PATCH v2 4/5] mm, kswapd: replace kswapd compaction with waking up kcompactd

From Joonsoo Kim <js1304@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 4/5] mm, kswapd: replace kswapd compaction with waking up kcompactd
Date 2016-03-02 16:00 +0100
Message-ID <r8gpR-Cq-19@gated-at.bofh.it> (permalink)
References (3 earlier) <r8bTe-6bA-29@gated-at.bofh.it> <r8ftO-8on-37@gated-at.bofh.it> <r8fDt-gr-41@gated-at.bofh.it> <r8fWO-pB-31@gated-at.bofh.it> <r8gg9-yT-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


2016-03-02 23:40 GMT+09:00 Vlastimil Babka <vbabka@suse.cz>:
> On 03/02/2016 03:22 PM, Joonsoo Kim wrote:
>> 2016-03-02 23:09 GMT+09:00 Vlastimil Babka <vbabka@suse.cz>:
>>> On 03/02/2016 02:57 PM, Joonsoo Kim wrote:
>>>>
>>>>
>>>> Yes, I know.
>>>> What I'd like to say here is that you need to care current_is_kswapd() in
>>>> this patch. This patch unintentionally change the back ground compaction
>>>> thread
>>>> behaviour to restart compaction by every 64 trials because calling
>>>> curret_is_kswapd()
>>>
>>>> by kcompactd would return false and is treated as direct reclaim.
>>>
>>> Oh, you mean this path to reset the skip bits. I see. But if skip bits are
>>> already reset by kswapd when waking kcompactd, then effect of another (rare)
>>> reset in kcompactd itself will be minimal?
>>
>> If you care current_is_kswapd() in this patch properly (properly means change
>> like "current_is_kcompactd()), reset in kswapd would not
>> happen because, compact_blockskip_flush would not be set by kcompactd.
>>
>> In this case, patch 5 would have it's own meaning so cannot be folded.
>
> So I understand that patch 5 would be just about this?
>
> -       if (compaction_restarting(zone, cc->order) && !current_is_kcompactd())
> +       if (compaction_restarting(zone, cc->order))
>                 __reset_isolation_suitable(zone);

Yeah, you understand correctly. :)

> I'm more inclined to fold it in that case.

Patch would be just simple, but, I guess it would cause some difference
in test result. But, I'm okay for folding.

Thanks.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 4/5] mm, kswapd: replace kswapd compaction with waking  up kcompactd Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-03-02 07:40 +0100
  Re: [PATCH v2 4/5] mm, kswapd: replace kswapd compaction with waking  up kcompactd Vlastimil Babka <vbabka@suse.cz> - 2016-03-02 11:10 +0100
    Re: [PATCH v2 4/5] mm, kswapd: replace kswapd compaction with waking  up kcompactd Joonsoo Kim <js1304@gmail.com> - 2016-03-02 15:00 +0100
      Re: [PATCH v2 4/5] mm, kswapd: replace kswapd compaction with waking  up kcompactd Vlastimil Babka <vbabka@suse.cz> - 2016-03-02 15:10 +0100
        Re: [PATCH v2 4/5] mm, kswapd: replace kswapd compaction with waking  up kcompactd Joonsoo Kim <js1304@gmail.com> - 2016-03-02 15:30 +0100
          Re: [PATCH v2 4/5] mm, kswapd: replace kswapd compaction with waking  up kcompactd Vlastimil Babka <vbabka@suse.cz> - 2016-03-02 15:50 +0100
            Re: [PATCH v2 4/5] mm, kswapd: replace kswapd compaction with waking  up kcompactd Joonsoo Kim <js1304@gmail.com> - 2016-03-02 16:00 +0100
              Re: [PATCH v2 4/5] mm, kswapd: replace kswapd compaction with waking  up kcompactd Vlastimil Babka <vbabka@suse.cz> - 2016-03-02 16:30 +0100

csiph-web