]> git.baikalelectronics.ru Git - kernel.git/commit
sched: group scheduling, sysfs tunables
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Mon, 15 Oct 2007 15:00:14 +0000 (17:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:14 +0000 (17:00 +0200)
commit996793b14ed6a0f84e0f591926c2b9106776a60b
tree3830339798b1c6f19f1580700ea6ba240fb56ef2
parent030a298805191e33d734c02e5e9c90a7fc062aae
sched: group scheduling, sysfs tunables

Add tunables in sysfs to modify a user's cpu share.

A directory is created in sysfs for each new user in the system.

/sys/kernel/uids/<uid>/cpu_share

Reading this file returns the cpu shares granted for the user.
Writing into this file modifies the cpu share for the user. Only an
administrator is allowed to modify a user's cpu share.

Ex:
# cd /sys/kernel/uids/
# cat 512/cpu_share
1024
# echo 2048 > 512/cpu_share
# cat 512/cpu_share
2048
#

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>
Documentation/sched-design-CFS.txt
include/linux/sched.h
kernel/ksysfs.c
kernel/sched.c
kernel/sched_debug.c
kernel/user.c