login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
11
Re: [git pull] scheduler fixes
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Sven Wegener
Subject:
Re: [git pull] scheduler fixes
Date: Sunday, May 11, 2008 - 7: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
, (Mon May 5, 10:48 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 4:18 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Tue May 6, 4:44 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 5:09 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 9:23 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Tue May 6, 9:36 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Alan Cox
, (Tue May 6, 9:39 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 9:42 am)
Re: AIM7 40% regression with 2.6.26-rc1
, J. Bruce Fields
, (Tue May 6, 9:44 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Alan Cox
, (Tue May 6, 9:45 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 9:51 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Tue May 6, 10:21 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Tue May 6, 10:31 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Tue May 6, 10:39 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Tue May 6, 10:42 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Tue May 6, 10:45 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Tue May 6, 10:49 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Tue May 6, 11:07 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Tue May 6, 1:28 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Tue May 6, 7:11 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Tue May 6, 8:41 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Tue May 6, 8:59 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Tue May 6, 9:46 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Tue May 6, 11:26 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Tue May 6, 11:28 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Tue May 6, 11:49 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Wed May 7, 12:05 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andi Kleen
, (Wed May 7, 4:00 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Wed May 7, 4:46 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andi Kleen
, (Wed May 7, 5:21 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Alan Cox
, (Wed May 7, 6:59 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Alan Cox
, (Wed May 7, 7:35 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 7:36 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andi Kleen
, (Wed May 7, 7:57 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 8:00 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 8:02 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 8:19 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Wed May 7, 8:31 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 9:20 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Wed May 7, 9:22 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 9:35 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Wed May 7, 9:38 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 9:55 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 10:05 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 10:08 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 10:14 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Wed May 7, 10:16 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 10:22 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 10:24 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 10:25 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 10:27 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 10:31 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 10:36 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 10:47 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 10:49 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 10:55 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Wed May 7, 10:59 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, 11:17 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 11:17 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 11:27 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 11:43 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 11:49 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 12:01 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 12:09 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Wed May 7, 12:24 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 12:44 pm)
Oi. NFS people. Read this.
, Matthew Wilcox
, (Wed May 7, 1:00 pm)
Re: Oi. NFS people. Read this.
, Trond Myklebust
, (Wed May 7, 3:10 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Wed May 7, 7:44 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Wed May 7, 8:24 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 8:29 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 8:34 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Wed May 7, 9:08 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Wed May 7, 9:17 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Wed May 7, 9:37 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Wed May 7, 11:43 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Andrew Morton
, (Wed May 7, 11:48 pm)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Thu May 8, 12:14 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Thu May 8, 12:39 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Thu May 8, 1:44 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Thu May 8, 2:21 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Ingo Molnar
, (Thu May 8, 2:29 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Zhang, Yanmin
, (Thu May 8, 2:30 am)
[patch] speed up / fix the new generic semaphore code (fix ...
, Ingo Molnar
, (Thu May 8, 5:01 am)
Re: [patch] speed up / fix the new generic semaphore code ...
, Ingo Molnar
, (Thu May 8, 5:28 am)
Re: [patch] speed up / fix the new generic semaphore code ...
, Matthew Wilcox
, (Thu May 8, 6:20 am)
Re: [patch] speed up / fix the new generic semaphore code ...
, Arjan van de Ven
, (Thu May 8, 6:56 am)
Re: [patch] speed up / fix the new generic semaphore code ...
, Ingo Molnar
, (Thu May 8, 7:43 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Linus Torvalds
, (Thu May 8, 7:58 am)
Re: [patch] speed up / fix the new generic semaphore code ...
, Ingo Molnar
, (Thu May 8, 8:01 am)
[git pull] scheduler fixes
, Ingo Molnar
, (Thu May 8, 8:10 am)
Re: [git pull] scheduler fixes
, Adrian Bunk
, (Thu May 8, 8:33 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Thu May 8, 8:41 am)
Re: [patch] speed up / fix the new generic semaphore code ...
, Linus Torvalds
, (Thu May 8, 9:02 am)
Re: [patch] speed up / fix the new generic semaphore code ...
, Linus Torvalds
, (Thu May 8, 11:30 am)
Re: [git pull] scheduler fixes
, Adrian Bunk
, (Thu May 8, 12:42 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Ingo Molnar
, (Thu May 8, 1:19 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Linus Torvalds
, (Thu May 8, 1:27 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Ingo Molnar
, (Thu May 8, 2:45 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Ingo Molnar
, (Thu May 8, 3:02 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Linus Torvalds
, (Thu May 8, 3:55 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Linus Torvalds
, (Thu May 8, 4:07 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Linus Torvalds
, (Thu May 8, 4:14 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Alan Cox
, (Thu May 8, 4:16 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Alan Cox
, (Thu May 8, 4:27 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Linus Torvalds
, (Thu May 8, 4:33 pm)
Re: Oi. NFS people. Read this.
, J. Bruce Fields
, (Thu May 8, 6:43 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Ingo Molnar
, (Thu May 8, 11:50 pm)
Re: [patch] speed up / fix the new generic semaphore code ...
, Andi Kleen
, (Fri May 9, 1:29 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 4:03 am)
Re: AIM7 40% regression with 2.6.26-rc1
, Matthew Wilcox
, (Sun May 11, 4:11 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 4:14 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 4:48 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 5:50 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 5:52 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 6:01 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 6:02 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 6:06 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 6:26 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 6:45 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 6:54 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 7:00 am)
Re: [git pull] scheduler fixes
, Sven Wegener
, (Sun May 11, 7:10 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 7:18 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 7:22 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 7:32 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Sun May 11, 7:42 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 7:46 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:19 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Sun May 11, 8:29 am)
Re: [git pull] scheduler fixes
, Linus Torvalds
, (Sun May 11, 9:47 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Tue May 13, 7:11 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Tue May 13, 7:21 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Tue May 13, 7:42 am)
Re: [git pull] scheduler fixes
, Matthew Wilcox
, (Tue May 13, 8:28 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Tue May 13, 10:13 am)
Re: [git pull] scheduler fixes
, Linus Torvalds
, (Tue May 13, 10:22 am)
Re: [git pull] scheduler fixes
, Ingo Molnar
, (Tue May 13, 2:05 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Pekka Enberg
Re: BUG in free_block (tainted)
Rafael J. Wysocki
[Bug #16136] Linux 2.6.34 causes system lockup on Compaq Presario 2200 Laptop
Joerg Roedel
Re: [patch] dma-debug: off by one issue
Tetsuo Handa
Re: [AppArmor #7 0/13] AppArmor security module
Jakub Narebski
Re: [PATCH] gitweb: Fix shortlog only showing HEAD revision.
git
:
Christian Stimming
git-gui: Fix broken revert confirmation.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Mark Burton
Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk
Junio C Hamano
Re: git-svnimport
Henk
Announcement: Git Extensions stable (windows shell extensions)
linux-netdev
:
Nick Piggin
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Amit Kumar Salecha
[PATCH NEXT 10/10] qlcnic: add cksum flag
Julius Volz
[PATCH] IRDA: Fix genlmsg_put() return value check.
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
V4L/DVB (9041): Add support YUAN High-Tech STK7700D (1164:1f08)
Linux Kernel Mailing List
virtio_blk: implement naming for vda-vdz,vdaa-vdzz,vdaaa-vdzzz
Linux Kernel Mailing List
[POWERPC] Use of_register_driver to implement of_register_platform_driver
openbsd-misc
:
Ryan McBride
Re: Packets Per Second Limit?
Stuart Henderson
Re: SquidGuard problem
Henning Brauer
Re: 3ware hardware raid support?
nixlists
Re: Openssl patch breaks Tor
Nick Guenther
Re: Encrypting home partition
Colocation donated by:
Syndicate