login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
22
Re: PostgreSQL pgbench performance regression in 2.6.23+
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Mike Galbraith <efault@...>
To: Peter Zijlstra <peterz@...>
Cc: Dhaval Giani <dhaval@...>, Greg Smith <gsmith@...>, lkml <linux-kernel@...>, Ingo Molnar <mingo@...>, Srivatsa Vaddagiri <vatsa@...>
Subject:
Re: PostgreSQL pgbench performance regression in 2.6.23+
Date: Thursday, May 22, 2008 - 9:16 am
On Thu, 2008-05-22 at 14:24 +0200, Peter Zijlstra wrote:
quoted text
> On Thu, 2008-05-22 at 14:09 +0200, Mike Galbraith wrote: > > On Thu, 2008-05-22 at 13:44 +0200, Peter Zijlstra wrote: > > > > > Humm,.. how to fix this.. we'd need to somehow detect the 1:n nature of > > > its operation - I'm sure there are other scenarios that could benefit > > > from this. > > > > Maybe simple (minded): cache waker's last non-interrupt context wakee, > > if the wakee != cached, ignore SYNC_WAKEUP unless sync was requested at > > call time? > > Yeah, something like so - or perhaps like you say cache the wakee. > > I picked the wake_affine() condition, because I think that is the > biggest factor in this behaviour. You could of course also disable all > of sync.
Works fine (modulo booboo). -Mike
quoted text
> diff --git a/include/linux/sched.h b/include/linux/sched.h > index c86c5c5..856c2a8 100644 > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -950,6 +950,8 @@ struct sched_entity { > u64 last_wakeup; > u64 avg_overlap; > > + struct sched_entity *waker; > + > #ifdef CONFIG_SCHEDSTATS > u64 wait_start; > u64 wait_max; > diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c > index 894a702..8971044 100644 > --- a/kernel/sched_fair.c > +++ b/kernel/sched_fair.c > @@ -1036,7 +1036,8 @@ wake_affine(struct rq *rq, struct sched_domain *this_sd, struct rq *this_rq, > * a reasonable amount of time then attract this newly > * woken task: > */ > - if (sync && curr->sched_class == &fair_sched_class) { > + if (sync && curr->sched_class == &fair_sched_class && > + p->se.waker == curr->se->waker) { > if (curr->se.avg_overlap < sysctl_sched_migration_cost && > p->se.avg_overlap < sysctl_sched_migration_cost) > return 1; > @@ -1210,6 +1211,7 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p) > if (unlikely(se == pse)) > return; > > + se->waker = pse; > cfs_rq_of(pse)->next = pse; > > /* > >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
PostgreSQL pgbench performance regression in 2.6.23+
, Greg Smith
, (Wed May 21, 1:34 pm)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Thu May 22, 3:10 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Dhaval Giani
, (Thu May 22, 4:28 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Thu May 22, 5:05 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Thu May 22, 6:34 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Thu May 22, 7:25 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Peter Zijlstra
, (Thu May 22, 7:44 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Thu May 22, 8:09 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Peter Zijlstra
, (Thu May 22, 8:24 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Greg Smith
, (Fri May 23, 3:13 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Fri May 23, 6:00 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Ingo Molnar
, (Fri May 23, 6:10 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Fri May 23, 9:05 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Fri May 23, 9:35 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Fri May 23, 6:15 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Greg Smith
, (Fri May 23, 7:18 pm)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Fri May 23, 7:46 pm)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Greg Smith
, (Mon May 26, 8:28 pm)
[patch] Re: PostgreSQL pgbench performance regression in 2.6...
, Mike Galbraith
, (Tue May 27, 1:59 am)
Re: [patch] Re: PostgreSQL pgbench performance regression in...
, Greg Smith
, (Fri Jun 6, 1:03 am)
Re: [patch] Re: PostgreSQL pgbench performance regression in...
, Mike Galbraith
, (Fri Jun 6, 2:13 am)
Re: [patch] Re: PostgreSQL pgbench performance regression in...
, Mike Galbraith
, (Sat Jun 7, 7:38 am)
Re: [patch] Re: PostgreSQL pgbench performance regression in...
, Peter Zijlstra
, (Sat Jun 7, 9:08 am)
[patch part 2] Re: [patch] Re: PostgreSQL pgbench performanc...
, Mike Galbraith
, (Sat Jun 7, 10:54 am)
Re: [patch part 2] Re: [patch] Re: PostgreSQL pgbench perfor...
, Peter Zijlstra
, (Sat Jun 7, 12:12 pm)
Re: [patch part 2] Re: [patch] Re: PostgreSQL pgbench perfor...
, Mike Galbraith
, (Sat Jun 7, 1:53 pm)
Re: [patch part 2] Re: [patch] Re: PostgreSQL pgbench perfor...
, Mike Galbraith
, (Sat Jun 7, 2:19 pm)
Re: [patch] Re: PostgreSQL pgbench performance regression in...
, Mike Galbraith
, (Sat Jun 7, 8:50 am)
Re: [patch] Re: PostgreSQL pgbench performance regression in...
, Peter Zijlstra
, (Sat Jun 7, 9:07 am)
Re: [patch] Re: PostgreSQL pgbench performance regression in...
, Mike Galbraith
, (Sat Jun 7, 10:16 am)
Re: [patch] Re: PostgreSQL pgbench performance regression in...
, Peter Zijlstra
, (Sat Jun 7, 12:16 pm)
Re: [patch] Re: PostgreSQL pgbench performance regression in...
, Mike Galbraith
, (Sat Jun 7, 1:56 pm)
Re: [patch] Re: PostgreSQL pgbench performance regression in...
, Mike Galbraith
, (Tue May 27, 4:20 am)
Re: [patch] Re: PostgreSQL pgbench performance regression in...
, Mike Galbraith
, (Tue May 27, 4:35 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Sat May 24, 4:08 am)
Re: PostgreSQL pgbench performance regression in 2.6.23+
, Mike Galbraith
, (Thu May 22, 9:16 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
-mm merge plans for 2.6.23
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
openbsd-misc
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Arjan van de Ven
Re: [GIT]: Networking
Auke Kok
[PATCH] e1000e: test MSI interrupts
git
:
Colocation donated by:
Who's online
There are currently
2 users
and
936 guests
online.
Online users
zeekec
cabledeals00
Syndicate