1. 04 Jul, 2008 3 commits
    • Ankita Garg's avatar
      sched: fix accounting in task delay accounting & migration · 46ac22ba
      Ankita Garg authored
      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: default avatarAnkita Garg <ankita@in.ibm.com>
      Acked-by: default avatarPeter 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: default avatarIngo Molnar <mingo@elte.hu>
      46ac22ba
    • Gregory Haskins's avatar
      sched: add avg-overlap support to RT tasks · 2087a1ad
      Gregory Haskins authored
      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: default avatarGregory Haskins <ghaskins@novell.com>
      Cc: npiggin@suse.de
      Cc: rostedt@goodmis.org
      Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      2087a1ad
    • Gregory Haskins's avatar
      sched: terminate newidle balancing once at least one task has moved over · c4acb2c0
      Gregory Haskins authored
      Inspired by Peter Zijlstra.
      Signed-off-by: default avatarGregory Haskins <ghaskins@novell.com>
      Cc: npiggin@suse.de
      Cc: rostedt@goodmis.org
      Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      c4acb2c0
  2. 30 Jun, 2008 2 commits
    • Vegard Nossum's avatar
      sched: fix warning · 30432094
      Vegard Nossum authored
      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: default avatarVegard Nossum <vegard.nossum@gmail.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      30432094
    • Ingo Molnar's avatar
      sched: build fix · 34e83e85
      Ingo Molnar authored
      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: default avatarIngo Molnar <mingo@elte.hu>
      34e83e85
  3. 29 Jun, 2008 1 commit
  4. 27 Jun, 2008 32 commits
  5. 25 Jun, 2008 2 commits