linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged
@ 2025-07-03  5:48 Dev Jain
  2025-07-03  9:25 ` David Hildenbrand
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Dev Jain @ 2025-07-03  5:48 UTC (permalink / raw)
  To: akpm, david
  Cc: ziy, baolin.wang, lorenzo.stoakes, Liam.Howlett, npache,
	ryan.roberts, baohua, linux-mm, linux-kernel, Dev Jain

Suppose a folio is under migration, and khugepaged is also trying to
collapse it. collapse_pte_mapped_thp() will retrieve the folio from the
page cache via filemap_lock_folio(), thus taking a reference on the folio
and sleeping on the folio lock, since the lock is held by the migration
path. Migration will then fail in
__folio_migrate_mapping -> folio_ref_freeze. Reduce the probability of
such a race happening (leading to migration failure) by bailing out
if we detect a PMD is marked with a migration entry.

This fixes the migration-shared-anon-thp testcase failure on Apple M3.

Note that, this is not a "fix" since it only reduces the chance of
interference of khugepaged with migration, wherein both the kernel
functionalities are deemed "best-effort".

Signed-off-by: Dev Jain <dev.jain@arm.com>
---

v1->v2:
 - Remove SCAN_PMD_MIGRATION, merge into SCAN_PMD_MAPPED (David, Anshuman)
 - Add a comment (Lorenzo)

v1:
 - https://lore.kernel.org/all/20250630044837.4675-1-dev.jain@arm.com/

 mm/khugepaged.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/mm/khugepaged.c b/mm/khugepaged.c
index 1aa7ca67c756..3fdefc4f4984 100644
--- a/mm/khugepaged.c
+++ b/mm/khugepaged.c
@@ -941,6 +941,15 @@ static inline int check_pmd_state(pmd_t *pmd)
 
 	if (pmd_none(pmde))
 		return SCAN_PMD_NONE;
+
+	/*
+	 * The folio may be under migration when khugepaged is trying to
+	 * collapse it. Migration success or failure will eventually end
+	 * up with the PMD still pointing to a PMD-order folio, so return
+	 * SCAN_PMD_MAPPED.
+	 */
+	if (is_pmd_migration_entry(pmde))
+		return SCAN_PMD_MAPPED;
 	if (!pmd_present(pmde))
 		return SCAN_PMD_NULL;
 	if (pmd_trans_huge(pmde))
-- 
2.30.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged
  2025-07-03  5:48 [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged Dev Jain
@ 2025-07-03  9:25 ` David Hildenbrand
  2025-07-03  9:40   ` Anshuman Khandual
  2025-07-03  9:52   ` Dev Jain
  2025-07-03  9:41 ` Oscar Salvador
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 9+ messages in thread
From: David Hildenbrand @ 2025-07-03  9:25 UTC (permalink / raw)
  To: Dev Jain, akpm
  Cc: ziy, baolin.wang, lorenzo.stoakes, Liam.Howlett, npache,
	ryan.roberts, baohua, linux-mm, linux-kernel

On 03.07.25 07:48, Dev Jain wrote:
> Suppose a folio is under migration, and khugepaged is also trying to
> collapse it. collapse_pte_mapped_thp() will retrieve the folio from the
> page cache via filemap_lock_folio(), thus taking a reference on the folio
> and sleeping on the folio lock, since the lock is held by the migration
> path. Migration will then fail in
> __folio_migrate_mapping -> folio_ref_freeze. Reduce the probability of
> such a race happening (leading to migration failure) by bailing out
> if we detect a PMD is marked with a migration entry.
> 
> This fixes the migration-shared-anon-thp testcase failure on Apple M3.
> 
> Note that, this is not a "fix" since it only reduces the chance of
> interference of khugepaged with migration, wherein both the kernel
> functionalities are deemed "best-effort".
> 
> Signed-off-by: Dev Jain <dev.jain@arm.com>
> ---
> 
> v1->v2:
>   - Remove SCAN_PMD_MIGRATION, merge into SCAN_PMD_MAPPED (David, Anshuman)
>   - Add a comment (Lorenzo)
> 
> v1:
>   - https://lore.kernel.org/all/20250630044837.4675-1-dev.jain@arm.com/
> 
>   mm/khugepaged.c | 9 +++++++++
>   1 file changed, 9 insertions(+)
> 
> diff --git a/mm/khugepaged.c b/mm/khugepaged.c
> index 1aa7ca67c756..3fdefc4f4984 100644
> --- a/mm/khugepaged.c
> +++ b/mm/khugepaged.c
> @@ -941,6 +941,15 @@ static inline int check_pmd_state(pmd_t *pmd)
>   
>   	if (pmd_none(pmde))
>   		return SCAN_PMD_NONE;
> +
> +	/*
> +	 * The folio may be under migration when khugepaged is trying to
> +	 * collapse it. Migration success or failure will eventually end
> +	 * up with the PMD still pointing to a PMD-order folio, so return
> +	 * SCAN_PMD_MAPPED.

Nit: the last part (, so return ..) is obvious from the code.

I would have written

/*
  * The folio may be under migration when khugepaged is trying to
  * collapse it. Migration success or failure will eventually end
  * up with a present PMD entry again.
  */


Acked-by: David Hildenbrand <david@redhat.com>

-- 
Cheers,

David / dhildenb



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged
  2025-07-03  9:25 ` David Hildenbrand
@ 2025-07-03  9:40   ` Anshuman Khandual
  2025-07-03  9:52   ` Dev Jain
  1 sibling, 0 replies; 9+ messages in thread
From: Anshuman Khandual @ 2025-07-03  9:40 UTC (permalink / raw)
  To: David Hildenbrand, Dev Jain, akpm
  Cc: ziy, baolin.wang, lorenzo.stoakes, Liam.Howlett, npache,
	ryan.roberts, baohua, linux-mm, linux-kernel



On 03/07/25 2:55 PM, David Hildenbrand wrote:
> On 03.07.25 07:48, Dev Jain wrote:
>> Suppose a folio is under migration, and khugepaged is also trying to
>> collapse it. collapse_pte_mapped_thp() will retrieve the folio from the
>> page cache via filemap_lock_folio(), thus taking a reference on the folio
>> and sleeping on the folio lock, since the lock is held by the migration
>> path. Migration will then fail in
>> __folio_migrate_mapping -> folio_ref_freeze. Reduce the probability of
>> such a race happening (leading to migration failure) by bailing out
>> if we detect a PMD is marked with a migration entry.
>>
>> This fixes the migration-shared-anon-thp testcase failure on Apple M3.
>>
>> Note that, this is not a "fix" since it only reduces the chance of
>> interference of khugepaged with migration, wherein both the kernel
>> functionalities are deemed "best-effort".
>>
>> Signed-off-by: Dev Jain <dev.jain@arm.com>
>> ---
>>
>> v1->v2:
>>   - Remove SCAN_PMD_MIGRATION, merge into SCAN_PMD_MAPPED (David, Anshuman)
>>   - Add a comment (Lorenzo)
>>
>> v1:
>>   - https://lore.kernel.org/all/20250630044837.4675-1-dev.jain@arm.com/
>>
>>   mm/khugepaged.c | 9 +++++++++
>>   1 file changed, 9 insertions(+)
>>
>> diff --git a/mm/khugepaged.c b/mm/khugepaged.c
>> index 1aa7ca67c756..3fdefc4f4984 100644
>> --- a/mm/khugepaged.c
>> +++ b/mm/khugepaged.c
>> @@ -941,6 +941,15 @@ static inline int check_pmd_state(pmd_t *pmd)
>>         if (pmd_none(pmde))
>>           return SCAN_PMD_NONE;
>> +
>> +    /*
>> +     * The folio may be under migration when khugepaged is trying to
>> +     * collapse it. Migration success or failure will eventually end
>> +     * up with the PMD still pointing to a PMD-order folio, so return
>> +     * SCAN_PMD_MAPPED.
> 
> Nit: the last part (, so return ..) is obvious from the code.
> 
> I would have written
> 
> /*
>  * The folio may be under migration when khugepaged is trying to
>  * collapse it. Migration success or failure will eventually end
>  * up with a present PMD entry again.
>  */

+1

> 
> 
> Acked-by: David Hildenbrand <david@redhat.com>
>

Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged
  2025-07-03  5:48 [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged Dev Jain
  2025-07-03  9:25 ` David Hildenbrand
@ 2025-07-03  9:41 ` Oscar Salvador
  2025-07-03 14:07 ` Zi Yan
  2025-07-04  3:27 ` Baolin Wang
  3 siblings, 0 replies; 9+ messages in thread
From: Oscar Salvador @ 2025-07-03  9:41 UTC (permalink / raw)
  To: Dev Jain
  Cc: akpm, david, ziy, baolin.wang, lorenzo.stoakes, Liam.Howlett,
	npache, ryan.roberts, baohua, linux-mm, linux-kernel

On Thu, Jul 03, 2025 at 11:18:23AM +0530, Dev Jain wrote:
> Suppose a folio is under migration, and khugepaged is also trying to
> collapse it. collapse_pte_mapped_thp() will retrieve the folio from the
> page cache via filemap_lock_folio(), thus taking a reference on the folio
> and sleeping on the folio lock, since the lock is held by the migration
> path. Migration will then fail in
> __folio_migrate_mapping -> folio_ref_freeze. Reduce the probability of
> such a race happening (leading to migration failure) by bailing out
> if we detect a PMD is marked with a migration entry.
> 
> This fixes the migration-shared-anon-thp testcase failure on Apple M3.
> 
> Note that, this is not a "fix" since it only reduces the chance of
> interference of khugepaged with migration, wherein both the kernel
> functionalities are deemed "best-effort".
> 
> Signed-off-by: Dev Jain <dev.jain@arm.com>

David's comment refering to a 'present PMD entry' seems more clear to
me, but

Acked-by: Oscar Salvador <osalvador@suse.de>

 

-- 
Oscar Salvador
SUSE Labs


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged
  2025-07-03  9:25 ` David Hildenbrand
  2025-07-03  9:40   ` Anshuman Khandual
@ 2025-07-03  9:52   ` Dev Jain
  2025-07-03 10:09     ` David Hildenbrand
  1 sibling, 1 reply; 9+ messages in thread
From: Dev Jain @ 2025-07-03  9:52 UTC (permalink / raw)
  To: David Hildenbrand, akpm
  Cc: ziy, baolin.wang, lorenzo.stoakes, Liam.Howlett, npache,
	ryan.roberts, baohua, linux-mm, linux-kernel


On 03/07/25 2:55 pm, David Hildenbrand wrote:
> On 03.07.25 07:48, Dev Jain wrote:
>> Suppose a folio is under migration, and khugepaged is also trying to
>> collapse it. collapse_pte_mapped_thp() will retrieve the folio from the
>> page cache via filemap_lock_folio(), thus taking a reference on the 
>> folio
>> and sleeping on the folio lock, since the lock is held by the migration
>> path. Migration will then fail in
>> __folio_migrate_mapping -> folio_ref_freeze. Reduce the probability of
>> such a race happening (leading to migration failure) by bailing out
>> if we detect a PMD is marked with a migration entry.
>>
>> This fixes the migration-shared-anon-thp testcase failure on Apple M3.
>>
>> Note that, this is not a "fix" since it only reduces the chance of
>> interference of khugepaged with migration, wherein both the kernel
>> functionalities are deemed "best-effort".
>>
>> Signed-off-by: Dev Jain <dev.jain@arm.com>
>> ---
>>
>> v1->v2:
>>   - Remove SCAN_PMD_MIGRATION, merge into SCAN_PMD_MAPPED (David, 
>> Anshuman)
>>   - Add a comment (Lorenzo)
>>
>> v1:
>>   - https://lore.kernel.org/all/20250630044837.4675-1-dev.jain@arm.com/
>>
>>   mm/khugepaged.c | 9 +++++++++
>>   1 file changed, 9 insertions(+)
>>
>> diff --git a/mm/khugepaged.c b/mm/khugepaged.c
>> index 1aa7ca67c756..3fdefc4f4984 100644
>> --- a/mm/khugepaged.c
>> +++ b/mm/khugepaged.c
>> @@ -941,6 +941,15 @@ static inline int check_pmd_state(pmd_t *pmd)
>>         if (pmd_none(pmde))
>>           return SCAN_PMD_NONE;
>> +
>> +    /*
>> +     * The folio may be under migration when khugepaged is trying to
>> +     * collapse it. Migration success or failure will eventually end
>> +     * up with the PMD still pointing to a PMD-order folio, so return
>> +     * SCAN_PMD_MAPPED.
>
> Nit: the last part (, so return ..) is obvious from the code.
>
> I would have written
>
> /*
>  * The folio may be under migration when khugepaged is trying to
>  * collapse it. Migration success or failure will eventually end
>  * up with a present PMD entry again.
>  */
>
Thanks for the suggestion, but

PMD pointing to PMD-order folio necessarily implies present PMD entry,

but the converse is not true? For example it may point to a PTE table.

So I wanted to make it explicitly clear that the transient entry will be

converted to a PMD-THP in the end.


>
> Acked-by: David Hildenbrand <david@redhat.com>
Thanks!


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged
  2025-07-03  9:52   ` Dev Jain
@ 2025-07-03 10:09     ` David Hildenbrand
  2025-07-03 10:27       ` Dev Jain
  0 siblings, 1 reply; 9+ messages in thread
From: David Hildenbrand @ 2025-07-03 10:09 UTC (permalink / raw)
  To: Dev Jain, akpm
  Cc: ziy, baolin.wang, lorenzo.stoakes, Liam.Howlett, npache,
	ryan.roberts, baohua, linux-mm, linux-kernel

On 03.07.25 11:52, Dev Jain wrote:
> 
> On 03/07/25 2:55 pm, David Hildenbrand wrote:
>> On 03.07.25 07:48, Dev Jain wrote:
>>> Suppose a folio is under migration, and khugepaged is also trying to
>>> collapse it. collapse_pte_mapped_thp() will retrieve the folio from the
>>> page cache via filemap_lock_folio(), thus taking a reference on the
>>> folio
>>> and sleeping on the folio lock, since the lock is held by the migration
>>> path. Migration will then fail in
>>> __folio_migrate_mapping -> folio_ref_freeze. Reduce the probability of
>>> such a race happening (leading to migration failure) by bailing out
>>> if we detect a PMD is marked with a migration entry.
>>>
>>> This fixes the migration-shared-anon-thp testcase failure on Apple M3.
>>>
>>> Note that, this is not a "fix" since it only reduces the chance of
>>> interference of khugepaged with migration, wherein both the kernel
>>> functionalities are deemed "best-effort".
>>>
>>> Signed-off-by: Dev Jain <dev.jain@arm.com>
>>> ---
>>>
>>> v1->v2:
>>>    - Remove SCAN_PMD_MIGRATION, merge into SCAN_PMD_MAPPED (David,
>>> Anshuman)
>>>    - Add a comment (Lorenzo)
>>>
>>> v1:
>>>    - https://lore.kernel.org/all/20250630044837.4675-1-dev.jain@arm.com/
>>>
>>>    mm/khugepaged.c | 9 +++++++++
>>>    1 file changed, 9 insertions(+)
>>>
>>> diff --git a/mm/khugepaged.c b/mm/khugepaged.c
>>> index 1aa7ca67c756..3fdefc4f4984 100644
>>> --- a/mm/khugepaged.c
>>> +++ b/mm/khugepaged.c
>>> @@ -941,6 +941,15 @@ static inline int check_pmd_state(pmd_t *pmd)
>>>          if (pmd_none(pmde))
>>>            return SCAN_PMD_NONE;
>>> +
>>> +    /*
>>> +     * The folio may be under migration when khugepaged is trying to
>>> +     * collapse it. Migration success or failure will eventually end
>>> +     * up with the PMD still pointing to a PMD-order folio, so return
>>> +     * SCAN_PMD_MAPPED.
>>
>> Nit: the last part (, so return ..) is obvious from the code.
>>
>> I would have written
>>
>> /*
>>   * The folio may be under migration when khugepaged is trying to
>>   * collapse it. Migration success or failure will eventually end
>>   * up with a present PMD entry again.
>>   */
>>
> Thanks for the suggestion, but
> 
> PMD pointing to PMD-order folio necessarily implies present PMD entry,
 > > but the converse is not true? For example it may point to a PTE table.

I see, talking about orders is confusing though.

"with a present PMD mapping a folio again."

-- 
Cheers,

David / dhildenb



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged
  2025-07-03 10:09     ` David Hildenbrand
@ 2025-07-03 10:27       ` Dev Jain
  0 siblings, 0 replies; 9+ messages in thread
From: Dev Jain @ 2025-07-03 10:27 UTC (permalink / raw)
  To: David Hildenbrand, akpm
  Cc: ziy, baolin.wang, lorenzo.stoakes, Liam.Howlett, npache,
	ryan.roberts, baohua, linux-mm, linux-kernel


On 03/07/25 3:39 pm, David Hildenbrand wrote:
> On 03.07.25 11:52, Dev Jain wrote:
>>
>> On 03/07/25 2:55 pm, David Hildenbrand wrote:
>>> On 03.07.25 07:48, Dev Jain wrote:
>>>> Suppose a folio is under migration, and khugepaged is also trying to
>>>> collapse it. collapse_pte_mapped_thp() will retrieve the folio from 
>>>> the
>>>> page cache via filemap_lock_folio(), thus taking a reference on the
>>>> folio
>>>> and sleeping on the folio lock, since the lock is held by the 
>>>> migration
>>>> path. Migration will then fail in
>>>> __folio_migrate_mapping -> folio_ref_freeze. Reduce the probability of
>>>> such a race happening (leading to migration failure) by bailing out
>>>> if we detect a PMD is marked with a migration entry.
>>>>
>>>> This fixes the migration-shared-anon-thp testcase failure on Apple M3.
>>>>
>>>> Note that, this is not a "fix" since it only reduces the chance of
>>>> interference of khugepaged with migration, wherein both the kernel
>>>> functionalities are deemed "best-effort".
>>>>
>>>> Signed-off-by: Dev Jain <dev.jain@arm.com>
>>>> ---
>>>>
>>>> v1->v2:
>>>>    - Remove SCAN_PMD_MIGRATION, merge into SCAN_PMD_MAPPED (David,
>>>> Anshuman)
>>>>    - Add a comment (Lorenzo)
>>>>
>>>> v1:
>>>>    - 
>>>> https://lore.kernel.org/all/20250630044837.4675-1-dev.jain@arm.com/
>>>>
>>>>    mm/khugepaged.c | 9 +++++++++
>>>>    1 file changed, 9 insertions(+)
>>>>
>>>> diff --git a/mm/khugepaged.c b/mm/khugepaged.c
>>>> index 1aa7ca67c756..3fdefc4f4984 100644
>>>> --- a/mm/khugepaged.c
>>>> +++ b/mm/khugepaged.c
>>>> @@ -941,6 +941,15 @@ static inline int check_pmd_state(pmd_t *pmd)
>>>>          if (pmd_none(pmde))
>>>>            return SCAN_PMD_NONE;
>>>> +
>>>> +    /*
>>>> +     * The folio may be under migration when khugepaged is trying to
>>>> +     * collapse it. Migration success or failure will eventually end
>>>> +     * up with the PMD still pointing to a PMD-order folio, so return
>>>> +     * SCAN_PMD_MAPPED.
>>>
>>> Nit: the last part (, so return ..) is obvious from the code.
>>>
>>> I would have written
>>>
>>> /*
>>>   * The folio may be under migration when khugepaged is trying to
>>>   * collapse it. Migration success or failure will eventually end
>>>   * up with a present PMD entry again.
>>>   */
>>>
>> Thanks for the suggestion, but
>>
>> PMD pointing to PMD-order folio necessarily implies present PMD entry,
> > > but the converse is not true? For example it may point to a PTE 
> table.
>
> I see, talking about orders is confusing though.
>
> "with a present PMD mapping a folio again."

Sure. Shall respin.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged
  2025-07-03  5:48 [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged Dev Jain
  2025-07-03  9:25 ` David Hildenbrand
  2025-07-03  9:41 ` Oscar Salvador
@ 2025-07-03 14:07 ` Zi Yan
  2025-07-04  3:27 ` Baolin Wang
  3 siblings, 0 replies; 9+ messages in thread
From: Zi Yan @ 2025-07-03 14:07 UTC (permalink / raw)
  To: Dev Jain
  Cc: akpm, david, baolin.wang, lorenzo.stoakes, Liam.Howlett, npache,
	ryan.roberts, baohua, linux-mm, linux-kernel

On 3 Jul 2025, at 1:48, Dev Jain wrote:

> Suppose a folio is under migration, and khugepaged is also trying to
> collapse it. collapse_pte_mapped_thp() will retrieve the folio from the
> page cache via filemap_lock_folio(), thus taking a reference on the folio
> and sleeping on the folio lock, since the lock is held by the migration
> path. Migration will then fail in
> __folio_migrate_mapping -> folio_ref_freeze. Reduce the probability of
> such a race happening (leading to migration failure) by bailing out
> if we detect a PMD is marked with a migration entry.
>
> This fixes the migration-shared-anon-thp testcase failure on Apple M3.
>
> Note that, this is not a "fix" since it only reduces the chance of
> interference of khugepaged with migration, wherein both the kernel
> functionalities are deemed "best-effort".
>
> Signed-off-by: Dev Jain <dev.jain@arm.com>
> ---
>
> v1->v2:
>  - Remove SCAN_PMD_MIGRATION, merge into SCAN_PMD_MAPPED (David, Anshuman)
>  - Add a comment (Lorenzo)
>
> v1:
>  - https://lore.kernel.org/all/20250630044837.4675-1-dev.jain@arm.com/
>
>  mm/khugepaged.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>

Reviewed-by: Zi Yan <ziy@nvidia.com>

Best Regards,
Yan, Zi


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged
  2025-07-03  5:48 [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged Dev Jain
                   ` (2 preceding siblings ...)
  2025-07-03 14:07 ` Zi Yan
@ 2025-07-04  3:27 ` Baolin Wang
  3 siblings, 0 replies; 9+ messages in thread
From: Baolin Wang @ 2025-07-04  3:27 UTC (permalink / raw)
  To: Dev Jain, akpm, david
  Cc: ziy, lorenzo.stoakes, Liam.Howlett, npache, ryan.roberts, baohua,
	linux-mm, linux-kernel



On 2025/7/3 13:48, Dev Jain wrote:
> Suppose a folio is under migration, and khugepaged is also trying to
> collapse it. collapse_pte_mapped_thp() will retrieve the folio from the
> page cache via filemap_lock_folio(), thus taking a reference on the folio
> and sleeping on the folio lock, since the lock is held by the migration
> path. Migration will then fail in
> __folio_migrate_mapping -> folio_ref_freeze. Reduce the probability of
> such a race happening (leading to migration failure) by bailing out
> if we detect a PMD is marked with a migration entry.
> 
> This fixes the migration-shared-anon-thp testcase failure on Apple M3.
> 
> Note that, this is not a "fix" since it only reduces the chance of
> interference of khugepaged with migration, wherein both the kernel
> functionalities are deemed "best-effort".
> 
> Signed-off-by: Dev Jain <dev.jain@arm.com>

With David's comments addressed, LGTM.

Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-07-04  3:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-03  5:48 [PATCH v2] khugepaged: Reduce race probability between migration and khugepaged Dev Jain
2025-07-03  9:25 ` David Hildenbrand
2025-07-03  9:40   ` Anshuman Khandual
2025-07-03  9:52   ` Dev Jain
2025-07-03 10:09     ` David Hildenbrand
2025-07-03 10:27       ` Dev Jain
2025-07-03  9:41 ` Oscar Salvador
2025-07-03 14:07 ` Zi Yan
2025-07-04  3:27 ` Baolin Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).