Juergen Gross
2012-Jan-24 10:06 UTC
[PATCH 0 of 3] Reflect cpupool in numa node affinity (v5)
In order to prefer node local memory for a domain the numa node locality info must be built according to the cpus belonging to the cpupool of the domain. Changes in v5: - pre-initialze node_affinity to NODE_MASK_ALL Changes in v4: - split in three patches Changes in v3: - formatting - avoid memory leak Changes in v2: - switch to dynamically allocated cpumasks in domain_update_node_affinity() - introduce and use common macros for selecting cpupool based cpumasks 8 files changed, 49 insertions(+), 28 deletions(-) xen/common/cpupool.c | 9 +++++++++ xen/common/domain.c | 29 ++++++++++++++++++++++++----- xen/common/domctl.c | 2 +- xen/common/sched_credit.c | 6 ++---- xen/common/sched_credit2.c | 2 -- xen/common/sched_sedf.c | 8 +++----- xen/common/schedule.c | 16 +++++----------- xen/include/xen/sched-if.h | 5 +++++
Juergen Gross
2012-Jan-24 10:06 UTC
[PATCH 1 of 3] introduce and use common macros for selecting cpupool based cpumasks
There are several instances of the same construct finding the cpumask for a cpupool. Use macros instead. Signed-off-by: juergen.gross@ts.fujitsu.com 6 files changed, 13 insertions(+), 16 deletions(-) xen/common/domctl.c | 2 +- xen/common/sched_credit.c | 6 ++---- xen/common/sched_credit2.c | 2 -- xen/common/sched_sedf.c | 8 +++----- xen/common/schedule.c | 6 ++---- xen/include/xen/sched-if.h | 5 +++++ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Juergen Gross
2012-Jan-24 10:06 UTC
[PATCH 2 of 3] switch to dynamically allocated cpumask in domain_update_node_affinity()
cpumasks should rather be allocated dynamically. Signed-off-by: juergen.gross@ts.fujitsu.com 1 file changed, 9 insertions(+), 4 deletions(-) xen/common/domain.c | 13 +++++++++---- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
In order to prefer node local memory for a domain the numa node locality info must be built according to the cpus belonging to the cpupool of the domain. Signed-off-by: juergen.gross@ts.fujitsu.com 3 files changed, 27 insertions(+), 8 deletions(-) xen/common/cpupool.c | 9 +++++++++ xen/common/domain.c | 16 +++++++++++++++- xen/common/schedule.c | 10 +++------- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel