Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 3755  / 3 Years ago, sun, november 7, 2021, 11:07:53

I've done a couple of google searches, but I can't seem to come across an answer, at least not within the first two search pages. I wanted to know whether the Ubuntu kernel is modular or monolithic? I saw one article which said that most of todays distros are highly modular, but nothing specific enough to mention the specific ones.



Just something of interest and wanted to know!


More From » kernel

 Answers
0

Linux kernel is both a monolithic kernel and a modular kernel :) Those things are not mutually exclusive.



Monolithic kernel refers to a kernel all parts of which share a common address space:




This reduces the amount of context switches and messaging involved,
making the concept faster than a Microkernel. On the downside, the
amount of code running in kernel space makes the kernel more prone to
fatal bugs.




The opposite of "monolithic kernel" is "microkernel", where the kernel is only responsible for coordinating services running in user space which do all the actual job.



"Modular kernel" means that




some part of the system core will be located in independent files
called modules that can be added to the system at run time. Depending
on the content of those modules, the goal can vary such as:




  • only loading drivers if a device is actually found

  • only load a filesystem if it gets actually requested

  • only load the code for a specific (scheduling/security/whatever) policy when it should be evaluated




Those modules are still running in the kernel space and not in user space, so the kernel architecture is still monolithic.


[#36287] Monday, November 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oreera

Total Points: 472
Total Questions: 121
Total Answers: 116

Location: Mayotte
Member since Thu, Dec 17, 2020
3 Years ago
;