* mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n
@ 2011-05-26 22:22 Andrea Arcangeli
2011-05-26 23:30 ` Rik van Riel
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andrea Arcangeli @ 2011-05-26 22:22 UTC (permalink / raw)
To: Johannes Weiner; +Cc: linux-mm, Andrew Morton, Andi Kleen, Rik van Riel
Subject: mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n
From: Andrea Arcangeli <aarcange@redhat.com>
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).
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Reported-by: Johannes Weiner <jweiner@redhat.com>
---
mm/huge_memory.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -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 majordomo@kvack.org. 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:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n
2011-05-26 22:22 mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n Andrea Arcangeli
@ 2011-05-26 23:30 ` Rik van Riel
2011-05-27 0:03 ` Minchan Kim
2011-05-27 6:55 ` Johannes Weiner
2 siblings, 0 replies; 4+ messages in thread
From: Rik van Riel @ 2011-05-26 23:30 UTC (permalink / raw)
To: Andrea Arcangeli; +Cc: Johannes Weiner, linux-mm, Andrew Morton, Andi Kleen
On 05/26/2011 06:22 PM, Andrea Arcangeli wrote:
> Subject: mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n
>
> From: Andrea Arcangeli<aarcange@redhat.com>
>
> 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).
>
> Signed-off-by: Andrea Arcangeli<aarcange@redhat.com>
> Reported-by: Johannes Weiner<jweiner@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
--
All rights reversed
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. 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:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n
2011-05-26 22:22 mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n Andrea Arcangeli
2011-05-26 23:30 ` Rik van Riel
@ 2011-05-27 0:03 ` Minchan Kim
2011-05-27 6:55 ` Johannes Weiner
2 siblings, 0 replies; 4+ messages in thread
From: Minchan Kim @ 2011-05-27 0:03 UTC (permalink / raw)
To: Andrea Arcangeli
Cc: Johannes Weiner, linux-mm, Andrew Morton, Andi Kleen, Rik van Riel
On Fri, May 27, 2011 at 7:22 AM, Andrea Arcangeli <aarcange@redhat.com> wrote:
> Subject: mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n
>
> From: Andrea Arcangeli <aarcange@redhat.com>
>
> 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).
>
> Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
> Reported-by: Johannes Weiner <jweiner@redhat.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
--
Kind regards,
Minchan Kim
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. 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:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n
2011-05-26 22:22 mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n Andrea Arcangeli
2011-05-26 23:30 ` Rik van Riel
2011-05-27 0:03 ` Minchan Kim
@ 2011-05-27 6:55 ` Johannes Weiner
2 siblings, 0 replies; 4+ messages in thread
From: Johannes Weiner @ 2011-05-27 6:55 UTC (permalink / raw)
To: Andrea Arcangeli; +Cc: linux-mm, Andrew Morton, Andi Kleen, Rik van Riel
On Fri, May 27, 2011 at 12:22:18AM +0200, Andrea Arcangeli wrote:
> Subject: mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n
>
> From: Andrea Arcangeli <aarcange@redhat.com>
>
> 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).
>
> Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
> Reported-by: Johannes Weiner <jweiner@redhat.com>
Acked-by: Johannes Weiner <jweiner@redhat.com>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. 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:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-05-27 6:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26 22:22 mm: remove khugepaged double thp vmstat update with CONFIG_NUMA=n Andrea Arcangeli
2011-05-26 23:30 ` Rik van Riel
2011-05-27 0:03 ` Minchan Kim
2011-05-27 6:55 ` Johannes Weiner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.