forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/l…
…inux/kernel/git/tip/linux-2.6-tip * 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (31 commits) sched: fix warning in fs/proc/base.c schedstat: consolidate per-task cpu runtime stats sched: use RCU variant of list traversal in for_each_leaf_rt_rq() sched, cpuacct: export percpu cpuacct cgroup stats sched, cpuacct: refactoring cpuusage_read / cpuusage_write sched: optimize update_curr() sched: fix wakeup preemption clock sched: add missing arch_update_cpu_topology() call sched: let arch_update_cpu_topology indicate if topology changed sched: idle_balance() does not call load_balance_newidle() sched: fix sd_parent_degenerate on non-numa smp machine sched: add uid information to sched_debug for CONFIG_USER_SCHED sched: move double_unlock_balance() higher sched: update comment for move_task_off_dead_cpu sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares sched/rt: removed unneeded defintion sched: add hierarchical accounting to cpu accounting controller sched: include group statistics in /proc/sched_debug sched: rename SCHED_NO_NO_OMIT_FRAME_POINTER => SCHED_OMIT_FRAME_POINTER sched: clean up SCHED_CPUMASK_ALLOC ...
- Loading branch information
Showing
20 changed files
with
299 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
CPU Accounting Controller | ||
------------------------- | ||
|
||
The CPU accounting controller is used to group tasks using cgroups and | ||
account the CPU usage of these groups of tasks. | ||
|
||
The CPU accounting controller supports multi-hierarchy groups. An accounting | ||
group accumulates the CPU usage of all of its child groups and the tasks | ||
directly present in its group. | ||
|
||
Accounting groups can be created by first mounting the cgroup filesystem. | ||
|
||
# mkdir /cgroups | ||
# mount -t cgroup -ocpuacct none /cgroups | ||
|
||
With the above step, the initial or the parent accounting group | ||
becomes visible at /cgroups. At bootup, this group includes all the | ||
tasks in the system. /cgroups/tasks lists the tasks in this cgroup. | ||
/cgroups/cpuacct.usage gives the CPU time (in nanoseconds) obtained by | ||
this group which is essentially the CPU time obtained by all the tasks | ||
in the system. | ||
|
||
New accounting groups can be created under the parent group /cgroups. | ||
|
||
# cd /cgroups | ||
# mkdir g1 | ||
# echo $$ > g1 | ||
|
||
The above steps create a new group g1 and move the current shell | ||
process (bash) into it. CPU time consumed by this bash and its children | ||
can be obtained from g1/cpuacct.usage and the same is accumulated in | ||
/cgroups/cpuacct.usage also. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ CFLAGS_REMOVE_mutex-debug.o = -pg | |
CFLAGS_REMOVE_rtmutex-debug.o = -pg | ||
CFLAGS_REMOVE_cgroup-debug.o = -pg | ||
CFLAGS_REMOVE_sched_clock.o = -pg | ||
CFLAGS_REMOVE_sched.o = -pg | ||
endif | ||
|
||
obj-$(CONFIG_FREEZER) += freezer.o | ||
|
@@ -90,7 +89,7 @@ obj-$(CONFIG_FUNCTION_TRACER) += trace/ | |
obj-$(CONFIG_TRACING) += trace/ | ||
obj-$(CONFIG_SMP) += sched_cpupri.o | ||
|
||
ifneq ($(CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER),y) | ||
ifneq ($(CONFIG_SCHED_OMIT_FRAME_POINTER),y) | ||
# According to Alan Modra <[email protected]>, the -fno-omit-frame-pointer is | ||
# needed for x86 only. Why this used to be enabled for all architectures is beyond | ||
# me. I suspect most platforms don't need this, but until we know that for sure | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.