* Roman Zippel <zippel@linux-m68k.org> wrote:why do you say that? 2.6.22 behaves similarly with a low-res sched_clock(). This has nothing to do with 'rounding problems'! i tried your fl.c and if sched_clock() is high-resolution it's scheduled _perfectly_ by CFS: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5906 mingo 20 0 1576 244 196 R 71.2 0.0 0:30.11 l 5909 mingo 20 0 1844 344 260 S 9.6 0.0 0:04.02 lt 5907 mingo 20 0 1844 508 424 S 9.5 0.0 0:04.01 lt 5908 mingo 20 0 1844 344 260 S 9.5 0.0 0:04.02 lt if sched_clock() is low-resolution then indeed the 'lt' tasks will "hide": PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2366 mingo 20 0 1576 248 196 R 99.9 0.0 0:07.95 loop_silent 1 root 20 0 2132 636 548 S 0.0 0.0 0:04.64 init but that's nothing new. CFS cannot conjure up time measurement methods that do not exist. If you have a low-res clock and if you create an app that syncs precisely to the tick of that clock via timers that run off that exact tick then there's nothing the scheduler can do about it. It is false to charachterise this as 'sleeper starvation' or 'rounding error' like you did. No amount of rounding logic can create a high-resolution clock out of thin air. Ingo -
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Jesper Krogh | Re: Linux 2.6.26-rc4 |
| Thomas Gleixner | Re: Linux 2.6.21-rc1 |
| Hugh Dickins | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
git: | |
| Antonio Almeida | HTB accuracy for high speed |
| 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 |
