NUMA: order nodes based on distances

This commit is contained in:
Balazs Gerofi
2016-12-13 10:46:17 +09:00
parent 052b3f44ca
commit 551999ff6b
2 changed files with 76 additions and 0 deletions

View File

@@ -17,11 +17,17 @@
#include <list.h>
/* XXX: Physical memory management shouldn't be part of IHK */
struct node_distance {
int node;
int distance;
};
struct ihk_mc_numa_node {
int id;
int linux_numa_id;
int type;
struct list_head allocators;
struct node_distance *nodes_by_distance;
};
struct ihk_page_allocator_desc {