1. 04 7月, 2008 3 次提交
    • A
      sched: fix accounting in task delay accounting & migration · 46ac22ba
      Ankita Garg 提交于
      On Thu, Jun 19, 2008 at 12:27:14PM +0200, Peter Zijlstra wrote:
      > On Thu, 2008-06-05 at 10:50 +0530, Ankita Garg wrote:
      >
      > > Thanks Peter for the explanation...
      > >
      > > I agree with the above and that is the reason why I did not see weird
      > > values with cpu_time. But, run_delay still would suffer skews as the end
      > > points for delta could be taken on different cpus due to migration (more
      > > so on RT kernel due to the push-pull operations). With the below patch,
      > > I could not reproduce the issue I had seen earlier. After every dequeue,
      > > we take the delta and start wait measurements from zero when moved to a
      > > different rq.
      >
      > OK, so task delay delay accounting is broken because it doesn't take
      > migration into account.
      >
      > What you've done is make it symmetric wrt enqueue, and account it like
      >
      >   cpu0      cpu1
      >
      > enqueue
      >  <wait-d1>
      > dequeue
      >             enqueue
      >              <wait-d2>
      >             run
      >
      > Where you add both d1 and d2 to the run_delay,.. right?
      >
      
      Thanks for reviewing the patch. The above is exactly what I have done.
      
      > This seems like a good fix, however it looks like the patch will break
      > compilation in !CONFIG_SCHEDSTATS && !CONFIG_TASK_DELAY_ACCT, of it
      > failing to provide a stub for sched_info_dequeue() in that case.
      
      Fixed. Pl. find the new patch below.
      Signed-off-by: NAnkita Garg <ankita@in.ibm.com>
      Acked-by: NPeter Zijlstra <peterz@infradead.org>
      Cc: Gregory Haskins <ghaskins@novell.com>
      Cc: rostedt@goodmis.org
      Cc: suresh.b.siddha@intel.com
      Cc: aneesh.kumar@linux.vnet.ibm.com
      Cc: dhaval@linux.vnet.ibm.com
      Cc: vatsa@linux.vnet.ibm.com
      Cc: David Bahi <DBahi@novell.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      46ac22ba
    • G
      sched: add avg-overlap support to RT tasks · 2087a1ad
      Gregory Haskins 提交于
      We have the notion of tracking process-coupling (a.k.a. buddy-wake) via
      the p->se.last_wake / p->se.avg_overlap facilities, but it is only used
      for cfs to cfs interactions.  There is no reason why an rt to cfs
      interaction cannot share in establishing a relationhip in a similar
      manner.
      
      Because PREEMPT_RT runs many kernel threads as FIFO priority, we often
      times have heavy interaction between RT threads waking CFS applications.
      This patch offers a substantial boost (50-60%+) in perfomance under those
      circumstances.
      Signed-off-by: NGregory Haskins <ghaskins@novell.com>
      Cc: npiggin@suse.de
      Cc: rostedt@goodmis.org
      Acked-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      2087a1ad
    • G
      sched: terminate newidle balancing once at least one task has moved over · c4acb2c0
      Gregory Haskins 提交于
      Inspired by Peter Zijlstra.
      Signed-off-by: NGregory Haskins <ghaskins@novell.com>
      Cc: npiggin@suse.de
      Cc: rostedt@goodmis.org
      Acked-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      c4acb2c0
  2. 30 6月, 2008 2 次提交
    • V
      sched: fix warning · 30432094
      Vegard Nossum 提交于
      This patch fixes the following warning:
      
      kernel/sched.c:1667: warning: 'cfs_rq_set_shares' defined but not used
      
      This seems the correct way to fix this; cfs_rq_set_shares() is only used
      in a single place, which is also inside #ifdef CONFIG_FAIR_GROUP_SCHED.
      Signed-off-by: NVegard Nossum <vegard.nossum@gmail.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      30432094
    • I
      sched: build fix · 34e83e85
      Ingo Molnar 提交于
      fix:
      
      kernel/sched.c: In function ‘sched_group_set_shares':
      kernel/sched.c:8635: error: implicit declaration of function ‘cfs_rq_set_shares'
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      34e83e85
  3. 29 6月, 2008 1 次提交
  4. 27 6月, 2008 32 次提交
  5. 25 6月, 2008 2 次提交