On Fri, 6 Jun 2008, Nick Piggin wrote:My worry is that I did something wrong in the slowpath, and that there is some thundering-herd-wakeup kind of thing that makes that much slower than it should be. The slow path doesn't much matter from the angle of counting individual cycles, but it still matters very much from a bigger picture. Does it have bad behavior where we wake up a thousand readers, but then a writer gets to come in first and all the readers have to go to sleep again? That's one thing I tried to avoid in the second version (the "Another approch" commit) where a read-wakeup actually moves the readers from the pending count to the final count - both to get more fairness (which can be _bad_ for performance), but also because I think it can avoid pathological cases (reader starvation and unnecessary futex wakeup). Linus --
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| James Bottomley | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Trent Piepho | Re: [PATCH] fakephp: Allocate PCI resources before adding the device |
| Antonio Almeida | HTB accuracy for high speed |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
git: | |
