1. 20 4月, 2008 3 次提交
    • M
      sched: add new set_cpus_allowed_ptr function · cd8ba7cd
      Mike Travis 提交于
      Add a new function that accepts a pointer to the "newly allowed cpus"
      cpumask argument.
      
      int set_cpus_allowed_ptr(struct task_struct *p, const cpumask_t *new_mask)
      
      The current set_cpus_allowed() function is modified to use the above
      but this does not result in an ABI change.  And with some compiler
      optimization help, it may not introduce any additional overhead.
      
      Additionally, to enforce the read only nature of the new_mask arg, the
      "const" property is migrated to sub-functions called by set_cpus_allowed.
      This silences compiler warnings.
      Signed-off-by: NMike Travis <travis@sgi.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      cd8ba7cd
    • P
      sched: rt-group: smp balancing · ac086bc2
      Peter Zijlstra 提交于
      Currently the rt group scheduling does a per cpu runtime limit, however
      the rt load balancer makes no guarantees about an equal spread of real-
      time tasks, just that at any one time, the highest priority tasks run.
      
      Solve this by making the runtime limit a global property by borrowing
      excessive runtime from the other cpus once the local limit runs out.
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      ac086bc2
    • P
      sched: rt-group: synchonised bandwidth period · d0b27fa7
      Peter Zijlstra 提交于
      Various SMP balancing algorithms require that the bandwidth period
      run in sync.
      
      Possible improvements are moving the rt_bandwidth thing into root_domain
      and keeping a span per rt_bandwidth which marks throttled cpus.
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      d0b27fa7
  2. 07 3月, 2008 1 次提交
    • S
      sched: balance RT task resched only on runqueue · 6fa46fa5
      Steven Rostedt 提交于
      Sripathi Kodi reported a crash in the -rt kernel:
      
        https://bugzilla.redhat.com/show_bug.cgi?id=435674
      
      this is due to a place that can reschedule a task without holding
      the tasks runqueue lock.  This was caused by the RT balancing code
      that pulls RT tasks to the current run queue and will reschedule the
      current task.
      
      There's a slight chance that the pulling of the RT tasks will release
      the current runqueue's lock and retake it (in the double_lock_balance).
      During this time that the runqueue is released, the current task can
      migrate to another runqueue.
      
      In the prio_changed_rt code, after the pull, if the current task is of
      lesser priority than one of the RT tasks pulled, resched_task is called
      on the current task. If the current task had migrated in that small
      window, resched_task will be called without holding the runqueue lock
      for the runqueue that the task is on.
      
      This race condition also exists in the mainline kernel and this patch
      adds a check to make sure the task hasn't migrated before calling
      resched_task.
      Signed-off-by: NSteven Rostedt <srostedt@redhat.com>
      Tested-by: NSripathi Kodi <sripathik@in.ibm.com>
      Acked-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      6fa46fa5
  3. 05 3月, 2008 1 次提交
    • P
      sched: revert load_balance_monitor() changes · 62fb1851
      Peter Zijlstra 提交于
      The following commits cause a number of regressions:
      
        commit 58e2d4ca
        Author: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
        Date:   Fri Jan 25 21:08:00 2008 +0100
        sched: group scheduling, change how cpu load is calculated
      
        commit 6b2d7700
        Author: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
        Date:   Fri Jan 25 21:08:00 2008 +0100
        sched: group scheduler, fix fairness of cpu bandwidth allocation for task groups
      
      Namely:
       - very frequent wakeups on SMP, reported by PowerTop users.
       - cacheline trashing on (large) SMP
       - some latencies larger than 500ms
      
      While there is a mergeable patch to fix the latter, the former issues
      are not fixable in a manner suitable for .25 (we're at -rc3 now).
      
      Hence we revert them and try again in v2.6.26.
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      CC: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
      Tested-by: NAlexey Zaytsev <alexey.zaytsev@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      62fb1851
  4. 13 2月, 2008 3 次提交
  5. 26 1月, 2008 32 次提交