~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to Documentation/scheduler/sched-design-CFS.txt

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
   It puts the scheduling entity (task) into the red-black tree and
165
165
   increments the nr_running variable.
166
166
 
167
 
 - dequeue_tree(...)
 
167
 - dequeue_task(...)
168
168
 
169
169
   When a task is no longer runnable, this function is called to keep the
170
170
   corresponding scheduling entity out of the red-black tree.  It decrements
195
195
   This function is mostly called from time tick functions; it might lead to
196
196
   process switch.  This drives the running preemption.
197
197
 
198
 
 - task_new(...)
199
 
 
200
 
   The core scheduler gives the scheduling module an opportunity to manage new
201
 
   task startup.  The CFS scheduling module uses it for group scheduling, while
202
 
   the scheduling module for a real-time task does not use it.
203
198
 
204
199
 
205
200
 
228
223
group created using the pseudo filesystem.  See example steps below to create
229
224
task groups and modify their CPU share using the "cgroups" pseudo filesystem.
230
225
 
231
 
        # mkdir /dev/cpuctl
232
 
        # mount -t cgroup -ocpu none /dev/cpuctl
233
 
        # cd /dev/cpuctl
 
226
        # mount -t tmpfs cgroup_root /sys/fs/cgroup
 
227
        # mkdir /sys/fs/cgroup/cpu
 
228
        # mount -t cgroup -ocpu none /sys/fs/cgroup/cpu
 
229
        # cd /sys/fs/cgroup/cpu
234
230
 
235
231
        # mkdir multimedia      # create "multimedia" group of tasks
236
232
        # mkdir browser         # create "browser" group of tasks