Messages in this thread | | | Date | Wed, 30 May 2012 09:20:19 +0200 | From | Ingo Molnar <> | Subject | Re: Plumbers: Tweaking scheduler policy micro-conf RFP |
| |
(restored the Cc:s)
* Chen <hi3766691@gmail.com> wrote:
> Oh, Just count the size of the scheduler code yourself, > actually 400 - 500k. core.c + fair.c + rt.c + idle_task.c + > everything
Only binary code is counted in bytes, source code is counted in lines.
20 KLOC for a full-featured CPU scheduler that does everything from simple UP scheduling to thousands of CPUs NUMA scheduling, cgroups, real-time and more, is entirely reasonable.
As a comparison the VM is 80+ KLOCS, arch/x86/ is 260+ KLOCs, networking is 720+ KLOCS and the FS subsystem is over 1 million lines of code.
The scheduler is in fact one of the smaller subsystems.
Thanks,
Ingo
| |