diff options
author | Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com> | 2007-10-15 11:00:09 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:09 -0400 |
commit | 24e377a83220ef05c9b5bec7e01d65eed6609aa6 (patch) | |
tree | 9303b3d9f91ee39517d379aaac06c0432be8a9b8 /init | |
parent | 9b5b77512dce239fa168183fa71896712232e95a (diff) |
sched: add fair-user scheduler
Enable user-id based fair group scheduling. This is useful for anyone
who wants to test the group scheduler w/o having to enable
CONFIG_CGROUPS.
A separate scheduling group (i.e struct task_grp) is automatically created for
every new user added to the system. Upon uid change for a task, it is made to
move to the corresponding scheduling group.
A /proc tunable (/proc/root_user_share) is also provided to tune root
user's quota of cpu bandwidth.
Signed-off-by: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index ef90a154dd90..37711fe3c01c 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -289,6 +289,19 @@ config FAIR_GROUP_SCHED | |||
289 | This feature lets cpu scheduler recognize task groups and control cpu | 289 | This feature lets cpu scheduler recognize task groups and control cpu |
290 | bandwidth allocation to such task groups. | 290 | bandwidth allocation to such task groups. |
291 | 291 | ||
292 | choice | ||
293 | depends on FAIR_GROUP_SCHED | ||
294 | prompt "Basis for grouping tasks" | ||
295 | default FAIR_USER_SCHED | ||
296 | |||
297 | config FAIR_USER_SCHED | ||
298 | bool "user id" | ||
299 | help | ||
300 | This option will choose userid as the basis for grouping | ||
301 | tasks, thus providing equal cpu bandwidth to each user. | ||
302 | |||
303 | endchoice | ||
304 | |||
292 | config SYSFS_DEPRECATED | 305 | config SYSFS_DEPRECATED |
293 | bool "Create deprecated sysfs files" | 306 | bool "Create deprecated sysfs files" |
294 | default y | 307 | default y |