lkml.org 
[lkml]   [2011]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 12/23] sched: Reduce some allocation pressure
Since we now allocate SD_LV_MAX * nr_cpu_ids sched_domain/sched_group
structures when rebuilding the scheduler toplogy it might make sense
to shrink that depending on the CONFIG_ options.

This is only needed until we get rid of SD_LV_* alltogether and
provide a full dynamic topology interface.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
---
include/linux/sched.h | 8 ++++++++
1 file changed, 8 insertions(+)

Index: linux-2.6/include/linux/sched.h
===================================================================
--- linux-2.6.orig/include/linux/sched.h
+++ linux-2.6/include/linux/sched.h
@@ -895,12 +895,20 @@ static inline struct cpumask *sched_grou

enum sched_domain_level {
SD_LV_NONE = 0,
+#ifdef CONFIG_SCHED_SMT
SD_LV_SIBLING,
+#endif
+#ifdef CONFIG_SCHED_MC
SD_LV_MC,
+#endif
+#ifdef CONFIG_SCHED_BOOK
SD_LV_BOOK,
+#endif
SD_LV_CPU,
+#ifdef CONFIG_NUMA
SD_LV_NODE,
SD_LV_ALLNODES,
+#endif
SD_LV_MAX
};




\
 
 \ /
  Last update: 2011-04-07 22:35    [W:0.152 / U:7.784 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site