3 ms·
Warning: angels-dancing-on-the-head-of-a-pin argument ahead. It's true that the kernel is loaded all the time (though not usually running more than a small fra
by caf 15y ago
Warning: angels-dancing-on-the-head-of-a-pin argument ahead.
It's true that the kernel is loaded all the time (though not usually running more than a small fraction of the time), but so is glibc. It's far from obvious that more cycles are spent in the kernel than are spent in glibc (though of course in both cases the goal is to run as little as possible, allowing more application code to run).
It's also worth considering that only a fraction of the kernel's LOC are even compiled in the average distribution's kernel (are the LOC dedicated to Itanium, Alpha and PA-RISC support really useful to Ubuntu?).
- nitrogen 15y agoIt's also worth considering that only a fraction of the kernel's LOC are even compiled in the average distribution's kernel (are the LOC dedicated to Itanium, Alpha and PA-RISC support really useful to Ubuntu?). Does the kernel spend more lines of code on platform support or on drivers? I was under the impression that drivers made up the vast majority of the kernel, most of which are enabled in distribution kernels. Sloccount seems to confirm this on kernel 2.6.35: 4796735 drivers ansic=4791978,yacc=1688,asm=1428,perl=792,lex=779, sh=57,awk=13 1677610 arch ansic=1449312,asm=226905,sh=674,awk=470,pascal=116, perl=58,python=45,sed=30
- cookiecaper 15y agoglibc isn't the only C runtime out there.