* Linus Torvalds <torvalds@linux-foundation.org> wrote:[...] ok, we can do that. the O(1) implementation of yield() was pretty arbitrary: it did not move it last on the same priority level - it only did it within the active array. So expired tasks (such as CPU hogs) would come _after_ a yield()-ing task. so the yield() implementation was so much tied to the data structures of the O(1) scheduler that it was impossible to fully emulate it in CFS. in CFS we dont have a per-nice-level rbtree, so we cannot move it dead last within the same priority group - but we can move it dead last in the whole tree. (then they'd be put even after nice +19 tasks.) People might complain about _that_. another practical problem is that this will break certain desktop apps that do calls to yield() [some firefox plugins do that, some 3D apps do that, etc.] but they dont expect to be moved 'very late' into the queue - they expect the O(1) scheduler's behavior of being delayed "a bit". (That's why i added the yield-granularity tunable.) we can make yield super-agressive, that is pretty much the only sane (because well-defined) thing to do (besides turning yield into a NOP), but there will be lots of regression reports about lost interactivity during load. sched_yield() is a mortally broken API. "fix the app" would be the answer, but still there will be lots of complaints. Ingo -
| Linus Torvalds | Linux 2.6.27-rc8 |
| Rafael J. Wysocki | 2.6.27-rc4-git1: Reported regressions from 2.6.26 |
| Clemens Ladisch | Re: [PATCH] USB: mark USB drivers as being GPL only |
| Alan Cox | [PATCH 00/76] Queued TTY Patches |
git: | |
| Karl | Re: stgit truncates binary files to zero length when applying patches |
| Wincent Colaiuta | Possible to make a totally empty repository for remote access? |
| bain | [Announce] teamGit v0.0.3 |
| Lars Hjemli | [ANNOUNCE] cgit 0.8 |
| Leon Dippenaar | New tcp stack attack |
| rezidue | Speed Problems |
| Richard Stallman | Real men don't attack straw men |
| Der Engel | vlan trunking OpenBSD/Cisco switch |
| Arjan van de Ven | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Linus Torvalds | Re: [GIT]: Networking |
| Bartlomiej Zolnierkiewicz | Re: [BUG] New Kernel Bugs |
