login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
11
Re: [git pull] scheduler fixes
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Sven Wegener <sven.wegener@...>
To: Matthew Wilcox <matthew@...>
Cc: Ingo Molnar <mingo@...>, Linus Torvalds <torvalds@...>, Zhang, Yanmin <yanmin_zhang@...>, Andi Kleen <andi@...>, LKML <linux-kernel@...>, Alexander Viro <viro@...>, Andrew Morton <akpm@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>
Subject:
Re: [git pull] scheduler fixes
Date: Sunday, May 11, 2008 - 10:10 am
On Sun, 11 May 2008, Matthew Wilcox wrote:
quoted text
> On Thu, May 08, 2008 at 05:10:28PM +0200, Ingo Molnar wrote: >> @@ -258,7 +256,5 @@ static noinline void __sched __up(struct semaphore *sem) >> { >> struct semaphore_waiter *waiter = list_first_entry(&sem->wait_list, >> struct semaphore_waiter, list); >> - list_del(&waiter->list); >> - waiter->up = 1; >> wake_up_process(waiter->task); >> } > > This might be the problem that causes the missing wakeups. If you have a > semaphore with n=2, and four processes calling down(), tasks A and B > acquire the semaphore and tasks C and D go to sleep. Task A calls up() > and wakes up C. Then task B calls up() and doesn't wake up anyone > because C hasn't run yet. I think we need another wakeup when task C > finishes in __down_common, like this (on top of your patch): > > diff --git a/kernel/semaphore.c b/kernel/semaphore.c > index 5e41217..e520ad4 100644 > --- a/kernel/semaphore.c > +++ b/kernel/semaphore.c > @@ -229,6 +229,11 @@ static inline int __sched __down_common(struct semaphore *sem, long state, > } > > list_del(&waiter.list); > + > + /* It's possible we need to wake up the next task on the list too */ > + if (unlikely(sem->count > 1) && !list_empty(&sem->wait_list)) > + __up(sem); > + > return ret; > } > > Sven, can you try this with your workload? I suspect this might be it > because XFS does use semaphores with n>1.
This one fixes the regression too, after applying it on top of bf726e. Sven --
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:
AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Tue May 6, 1:48 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Tue May 6, 7:44 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Tue May 6, 10:11 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Tue May 6, 11:41 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Andi Kleen
, (Wed May 7, 7:00 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Alan Cox
, (Wed May 7, 9:59 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Wed May 7, 7:46 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andi Kleen
, (Wed May 7, 8:21 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 10:36 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 12:20 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 12:35 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 1:05 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 1:24 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 1:36 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 1:55 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Wed May 7, 1:59 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 2:17 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 2:49 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 11:19 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Wed May 7, 10:44 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Thu May 8, 2:43 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Thu May 8, 3:14 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Thu May 8, 3:39 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Thu May 8, 4:44 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Thu May 8, 5:21 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Thu May 8, 5:30 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Thu May 8, 5:29 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Thu May 8, 2:48 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 11:29 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Thu May 8, 12:08 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Thu May 8, 12:17 am)
[patch] speed up / fix the new generic semaphore code (fix A...
, Ingo Molnar
, (Thu May 8, 8:01 am)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Arjan van de Ven
, (Thu May 8, 9:56 am)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Matthew Wilcox
, (Thu May 8, 9:20 am)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Ingo Molnar
, (Thu May 8, 11:01 am)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Ingo Molnar
, (Thu May 8, 8:28 am)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Linus Torvalds
, (Thu May 8, 12:02 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Linus Torvalds
, (Thu May 8, 2:30 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Ingo Molnar
, (Thu May 8, 4:19 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Linus Torvalds
, (Thu May 8, 4:27 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Ingo Molnar
, (Thu May 8, 5:45 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Linus Torvalds
, (Thu May 8, 6:55 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Alan Cox
, (Thu May 8, 7:16 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Linus Torvalds
, (Thu May 8, 7:33 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Andi Kleen
, (Fri May 9, 4:29 am)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Ingo Molnar
, (Fri May 9, 2:50 am)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Alan Cox
, (Thu May 8, 7:27 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Linus Torvalds
, (Thu May 8, 7:07 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Linus Torvalds
, (Thu May 8, 7:14 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Ingo Molnar
, (Thu May 8, 6:02 pm)
Re: [patch] speed up / fix the new generic semaphore code (f...
, Ingo Molnar
, (Thu May 8, 10:43 am)
[git pull] scheduler fixes
, Ingo Molnar
, (Thu May 8, 11:10 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 7:03 am)
Re: [git pull] scheduler fixes
, Sven Wegener
, (Sun May 11, 10:10 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 9:01 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 9:06 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 9:45 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 7:48 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 8:50 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 8:52 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 9:02 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 9:54 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 10:22 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 10:32 am)
Re: [git pull] scheduler fixes
, Linus Torvalds
, (Sun May 11, 12:47 pm)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 10:46 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 9:26 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 10:00 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 10:18 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 10:42 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 10:48 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 11:19 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 11:29 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Tue May 13, 10:11 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Tue May 13, 10:21 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Tue May 13, 10:42 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Tue May 13, 11:28 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Tue May 13, 1:13 pm)
Re: [git pull] scheduler fixes
, Linus Torvalds
, (Tue May 13, 1:22 pm)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Tue May 13, 5:05 pm)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 7:14 am)
Re: [git pull] scheduler fixes
, Adrian Bunk
, (Thu May 8, 11:33 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Thu May 8, 11:41 am)
Re: [git pull] scheduler fixes
, Adrian Bunk
, (Thu May 8, 3:42 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 1:14 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Andi Kleen
, (Wed May 7, 10:57 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Wed May 7, 11:31 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Wed May 7, 12:22 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Alan Cox
, (Wed May 7, 10:35 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 11:00 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 11:02 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 2:26 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 2:28 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Wed May 7, 3:05 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Tue May 6, 11:59 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Wed May 7, 12:46 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 8:09 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 12:23 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Wed May 7, 11:24 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 11:34 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Thu May 8, 12:37 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Thu May 8, 10:58 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Tue May 6, 1:21 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Wed May 7, 12:38 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 12:55 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 1:08 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 1:22 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 1:31 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 1:49 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 2:02 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 2:17 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 2:27 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 2:43 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 3:01 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Wed May 7, 3:24 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 3:44 pm)
Oi. NFS people. Read this.
, Matthew Wilcox
, (Wed May 7, 4:00 pm)
Re: Oi. NFS people. Read this.
, Trond Myklebust
, (Wed May 7, 6:10 pm)
Re: Oi. NFS people. Read this.
, J. Bruce Fields
, (Thu May 8, 9:43 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 3:09 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 1:47 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 1:25 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Wed May 7, 1:16 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 1:27 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Tue May 6, 1:45 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Tue May 6, 1:39 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Wed May 7, 2:49 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 1:31 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Tue May 6, 1:49 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Tue May 6, 2:07 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Sun May 11, 7:11 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Tue May 6, 12:36 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, J. Bruce Fields
, (Tue May 6, 12:44 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 12:42 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Tue May 6, 4:28 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Alan Cox
, (Tue May 6, 12:39 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 12:51 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Tue May 6, 1:42 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Alan Cox
, (Tue May 6, 12:45 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 7:18 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Peter Zijlstra
[RFC][PATCH 7/7] lockdep: spin_lock_nest_lock()
Gabriel C
Re: 2.6.24-rc2-mm1
Andrew Morton
Re: [PATCH 2.6.21] cramfs: add cramfs Linear XIP
Jiri Kosina
Re: 2.6.21-rc5-mm4
git
:
linux-netdev
:
Gregory Haskins
[RFC PATCH 00/17] virtual-bus
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
963 guests
online.
Online users
nusteelweb
zeekec
Syndicate