mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n
Subsystems (2)
Subject: mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n
From: Andrea Arcangeli <[email protected]>
Johannes noticed the vmstat update is already taken care of by khugepaged_alloc_hugepage() internally. The only places that are required to update the vmstat are the callers of alloc_hugepage (callers of khugepaged_alloc_hugepage aren't).
--- mm/huge_memory.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
mm/huge_memory.c +1 -4
@@ -2233,11 +2233,8 @@ static void khugepaged_loop(void)while (likely (khugepaged_enabled ())) {#ifndef CONFIG_NUMA hpage =khugepaged_alloc_hugepage (); -if (unlikely (!hpage)) { -count_vm_event (THP_COLLAPSE_ALLOC_FAILED ); +if (unlikely (!hpage))break ; - } -count_vm_event (THP_COLLAPSE_ALLOC );#else if (IS_ERR (hpage)) {khugepaged_alloc_sleep ();
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Rik van Riel
Acked-byQuoted 11 lines · Andrea Arcangeli
Subject: mm: remove khugepaged double thp vmstat update with
CONFIG_NUMA=nFrom: Andrea Arcangeli<[email protected]>
Johannes noticed the vmstat update is already taken care of by
khugepaged_alloc_hugepage()internally. The only places that are required to update the vmstat are the callers ofalloc_hugepage(callers ofkhugepaged_alloc_hugepagearen't).Signed-off-by Andrea Arcangeli<[email protected]>Reported-by Johannes Weiner<[email protected]>
Signature · 8 lines
All rights reversed -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Minchan Kim
Reviewed-byQuoted 11 lines · Andrea Arcangeli
Subject: mm: remove khugepaged double thp vmstat update with
CONFIG_NUMA=nFrom: Andrea Arcangeli <[email protected]>
Johannes noticed the vmstat update is already taken care of by
khugepaged_alloc_hugepage()internally. The only places that are required to update the vmstat are the callers ofalloc_hugepage(callers ofkhugepaged_alloc_hugepagearen't).Signed-off-by Andrea Arcangeli <[email protected]>Reported-by Johannes Weiner <[email protected]>
Signature · 9 lines
Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Johannes Weiner
Acked-byQuoted 11 lines · Andrea Arcangeli
Subject: mm: remove khugepaged double thp vmstat update with
CONFIG_NUMA=nFrom: Andrea Arcangeli <[email protected]>
Johannes noticed the vmstat update is already taken care of by
khugepaged_alloc_hugepage()internally. The only places that are required to update the vmstat are the callers ofalloc_hugepage(callers ofkhugepaged_alloc_hugepagearen't).Signed-off-by Andrea Arcangeli <[email protected]>Reported-by Johannes Weiner <[email protected]>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>