aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
authorAndrea Arcangeli <aarcange@redhat.com>2012-03-23 15:56:34 -0400
committerMel Gorman <mgorman@suse.de>2012-12-11 09:42:50 -0500
commit8177a420ed7c16c171ed3c3aec5b0676db38c247 (patch)
tree9d188c65d68af5a8f77913043ab8689c5530508b /include/linux/mmzone.h
parent9532fec118d485ea37ab6e3ea372d68cd8b4cd0d (diff)
mm: numa: Structures for Migrate On Fault per NUMA migration rate limiting
This defines the per-node data used by Migrate On Fault in order to rate limit the migration. The rate limiting is applied independently to each destination node. Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Mel Gorman <mgorman@suse.de>
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index a23923ba8263..28601fdfcdb2 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -717,6 +717,19 @@ typedef struct pglist_data {
717 struct task_struct *kswapd; /* Protected by lock_memory_hotplug() */ 717 struct task_struct *kswapd; /* Protected by lock_memory_hotplug() */
718 int kswapd_max_order; 718 int kswapd_max_order;
719 enum zone_type classzone_idx; 719 enum zone_type classzone_idx;
720#ifdef CONFIG_NUMA_BALANCING
721 /*
722 * Lock serializing the per destination node AutoNUMA memory
723 * migration rate limiting data.
724 */
725 spinlock_t numabalancing_migrate_lock;
726
727 /* Rate limiting time interval */
728 unsigned long numabalancing_migrate_next_window;
729
730 /* Number of pages migrated during the rate limiting time interval */
731 unsigned long numabalancing_migrate_nr_pages;
732#endif
720} pg_data_t; 733} pg_data_t;
721 734
722#define node_present_pages(nid) (NODE_DATA(nid)->node_present_pages) 735#define node_present_pages(nid) (NODE_DATA(nid)->node_present_pages)