> > I think the real fix would be for iperf to use blocking network IOMartin: Actually, in this case I think iperf is doing the right thing (though not the best thing) and the kernel is doing the wrong thing. It's calling 'sched_yield' to ensure that every other thread gets a chance to run before the current thread runs again. CFS is not doing that, allowing the yielding thread to hog the CPU to the exclusion of the other threads. (It can allow the yielding thread to hog the CPU, of course, just not to the exclusion of other threads.) It's still better to use some kind of rational synchronization primitive (like mutex/sempahore) so that the other threads can tell you when there's something for you to do. It's still better to use blocking network IO, so the kernel will let you know exactly when to try I/O and your dynamic priority can rise. Ingo: Can you clarify what CFS' current default sched_yield implementation is and what setting sched_compat_yield to 1 does? Which way do we get the right semantics (all threads of equal static priority are scheduled, with some possible SMP fuzziness, before this thread is scheduled again)? DS -
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Mark Lord | 2.6.25-rc8: FTP transfer errors |
| Marcin Slusarz | Re: 2.6.25-rc2-mm1: build failure (x86) |
| Balbir Singh | Re: [RFC][PATCH 2/7] RSS controller core |
git: | |
| bcpa | Binkley/Rfmaill/Cnews scripts?.. |
| Rogier Wolff | Re: MIPS R3000 board to run Linux, anyone? |
| Gary Kahn | compiled ghostscript, got 2 megabyte executable |
| Joshua Lobel | Does anyone know anything about LOCUS' DOS MERGE running on Linux |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
