









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










than address spaces and threads)
components (to compensate for distribution)
What should the kernel implement?– implies limited functionality guaranteed, also need for
protection domain crossings
The answer should depend on functionality— notperformance– many of the traditional performance bottlenecks can be
eliminated (e.g., Liedtke shows that user-to-user IPC canbe done 22 times faster than in Mach—which is also amicro-kernel)
Also – can cross-protection domain interactions beefficiently supported
Objective: System must support interactive andnot completely trustworthy applications– protection– principle of independence – S can make guarantees
independent of S’
establish a channel that can be neither corrupted noteavesdropped by S’
The kernel should implement only three things:– address spaces– threads and IPC– unique identifiers
A regular memory manager is just a “process” (
server
managing the initial address space– entirely outside the kernel!
-^
Memory managers can be stacked: one can grant partsof the physical memory to the next
-^
A pager can be a totally separate server, communicatingthrough IPC– of course it could also be integrated in a memory manager– advantage: easy to implement specific policies (e.g., real time,
flow-based, etc.)
The kernel needs to have a concept of activities andtheir state of execution (i.e., registers, instructionpointer, stack pointer)
-^
Threads need to communicate but modifying a sharedaddress space can lead to corruption
-^
The kernel can add more structure with kernelcontrolled IPC– at least some rudimentary IPC mechanism must exist and
more complex ones can be built on top
receives information and interprets it voluntarily)
Interrupts are just IPC– the HW is a thread sending IPC messages– the micro-kernel does the transformation
Device drivers won’t be in the kernel. They arejust servers that access I/O ports mapped to theiraddress space
-^
RPC on top of a basic IPC mechanism can beimplemented as an external server
-^
Unix system calls can be implemented as anexternal server
-^
everything but processor architecture, first-levelTLB and cache
if no flush is needed (tagged architectures orarchitectures with segment registers) the cost is smaller
-^
crucial idea: let’s keep small, commonly used serveraddress spaces shared with regular “large” addressspaces
-^
for this to happen, address space assignment to a linearspace must be dynamic and dependent on size
space switch…
-^
Many micro-kernels have relied on a hardware abstractionlayer but were themselves hardware-independent
-^
Liedtke’s argument is that the micro-kernel should beprocessor-dependent–
not just the coding, but even the algorithms inside a micro-kernelshould be tuned to the architecture– a good example of the changes needed to port a micro-kernel fromthe 486 to a Pentium (“compatible” processors) is shown
-^
Understanding raw number differences–
RPC comparison exokernel and L