From: Mel Gorman <mgorman@suse.de>
To: Linux-MM <linux-mm@kvack.org>
Cc: Peter Zijlstra <peterz@infradead.org>,
Andrea Arcangeli <aarcange@redhat.com>,
Rik van Riel <riel@redhat.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 5/5] mm: autonuma: Specify the migration reason for the tracepoint
Date: Mon, 22 Oct 2012 09:06:55 +0100 [thread overview]
Message-ID: <20121022080655.GD2198@suse.de> (raw)
In-Reply-To: <1350892791-2682-1-git-send-email-mgorman@suse.de>
Record in the migrate_pages tracepoint that the migration is for
AutoNUMA.
Signed-off-by: Mel Gorman <mgorman@suse.de>
---
include/linux/migrate.h | 1 +
include/trace/events/migrate.h | 1 +
mm/autonuma.c | 3 ++-
3 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/include/linux/migrate.h b/include/linux/migrate.h
index 9d1c159..ba17e56 100644
--- a/include/linux/migrate.h
+++ b/include/linux/migrate.h
@@ -13,6 +13,7 @@ enum migrate_reason {
MR_MEMORY_HOTPLUG,
MR_SYSCALL, /* also applies to cpusets */
MR_MEMPOLICY_MBIND,
+ MR_AUTONUMA,
MR_CMA
};
diff --git a/include/trace/events/migrate.h b/include/trace/events/migrate.h
index ec2a6cc..2eaaf90 100644
--- a/include/trace/events/migrate.h
+++ b/include/trace/events/migrate.h
@@ -15,6 +15,7 @@
{MR_MEMORY_HOTPLUG, "memory_hotplug"}, \
{MR_SYSCALL, "syscall_or_cpuset"}, \
{MR_MEMPOLICY_MBIND, "mempolicy_mbind"}, \
+ {MR_AUTONUMA, "autonuma"}, \
{MR_CMA, "cma"}
TRACE_EVENT(mm_migrate_pages,
diff --git a/mm/autonuma.c b/mm/autonuma.c
index 4db53a1..cb02641 100644
--- a/mm/autonuma.c
+++ b/mm/autonuma.c
@@ -249,7 +249,8 @@ static bool autonuma_migrate_page(struct page *page, int dst_nid,
pages_migrated += isolated; /* FIXME: per node */
nr_remaining = migrate_pages(&migratepages,
alloc_migrate_dst_page,
- pgdat->node_id, false, MIGRATE_ASYNC);
+ pgdat->node_id, false, MIGRATE_ASYNC,
+ MR_AUTONUMA);
count_vm_events(NUMA_PAGE_MIGRATE, isolated - nr_remaining);
if (nr_remaining)
putback_lru_pages(&migratepages);
--
1.7.7
--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Mel Gorman <mgorman@suse.de>
To: Linux-MM <linux-mm@kvack.org>
Cc: Peter Zijlstra <peterz@infradead.org>,
Andrea Arcangeli <aarcange@redhat.com>,
Rik van Riel <riel@redhat.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 5/5] mm: autonuma: Specify the migration reason for the tracepoint
Date: Mon, 22 Oct 2012 09:06:55 +0100 [thread overview]
Message-ID: <20121022080655.GD2198@suse.de> (raw)
In-Reply-To: <1350892791-2682-1-git-send-email-mgorman@suse.de>
Record in the migrate_pages tracepoint that the migration is for
AutoNUMA.
Signed-off-by: Mel Gorman <mgorman@suse.de>
---
include/linux/migrate.h | 1 +
include/trace/events/migrate.h | 1 +
mm/autonuma.c | 3 ++-
3 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/include/linux/migrate.h b/include/linux/migrate.h
index 9d1c159..ba17e56 100644
--- a/include/linux/migrate.h
+++ b/include/linux/migrate.h
@@ -13,6 +13,7 @@ enum migrate_reason {
MR_MEMORY_HOTPLUG,
MR_SYSCALL, /* also applies to cpusets */
MR_MEMPOLICY_MBIND,
+ MR_AUTONUMA,
MR_CMA
};
diff --git a/include/trace/events/migrate.h b/include/trace/events/migrate.h
index ec2a6cc..2eaaf90 100644
--- a/include/trace/events/migrate.h
+++ b/include/trace/events/migrate.h
@@ -15,6 +15,7 @@
{MR_MEMORY_HOTPLUG, "memory_hotplug"}, \
{MR_SYSCALL, "syscall_or_cpuset"}, \
{MR_MEMPOLICY_MBIND, "mempolicy_mbind"}, \
+ {MR_AUTONUMA, "autonuma"}, \
{MR_CMA, "cma"}
TRACE_EVENT(mm_migrate_pages,
diff --git a/mm/autonuma.c b/mm/autonuma.c
index 4db53a1..cb02641 100644
--- a/mm/autonuma.c
+++ b/mm/autonuma.c
@@ -249,7 +249,8 @@ static bool autonuma_migrate_page(struct page *page, int dst_nid,
pages_migrated += isolated; /* FIXME: per node */
nr_remaining = migrate_pages(&migratepages,
alloc_migrate_dst_page,
- pgdat->node_id, false, MIGRATE_ASYNC);
+ pgdat->node_id, false, MIGRATE_ASYNC,
+ MR_AUTONUMA);
count_vm_events(NUMA_PAGE_MIGRATE, isolated - nr_remaining);
if (nr_remaining)
putback_lru_pages(&migratepages);
--
1.7.7
next prev parent reply other threads:[~2012-10-22 8:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-22 7:59 [RFC PATCH 0/5] vmstats for compaction, migration and autonuma Mel Gorman
2012-10-22 7:59 ` Mel Gorman
2012-10-22 7:59 ` [PATCH 1/5] mm: compaction: Move migration fail/success stats to migrate.c Mel Gorman
2012-10-22 7:59 ` Mel Gorman
2012-10-25 2:57 ` David Rientjes
2012-10-25 2:57 ` David Rientjes
2012-10-22 7:59 ` [PATCH 2/5] mm: migrate: Add a tracepoint for migrate_pages Mel Gorman
2012-10-22 7:59 ` Mel Gorman
2012-10-22 8:05 ` [PATCH 3/5] mm: compaction: Add scanned and isolated counters for compaction Mel Gorman
2012-10-22 8:05 ` Mel Gorman
2012-10-22 8:06 ` [PATCH 4/5] mm: autonuma: Add pte updates, hinting and migration stats for AutoNUMA Mel Gorman
2012-10-22 8:06 ` Mel Gorman
2012-10-22 8:06 ` Mel Gorman [this message]
2012-10-22 8:06 ` [PATCH 5/5] mm: autonuma: Specify the migration reason for the tracepoint Mel Gorman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121022080655.GD2198@suse.de \
--to=mgorman@suse.de \
--cc=aarcange@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=peterz@infradead.org \
--cc=riel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.