Originally posted by andreano
View Post
Announcement
Collapse
No announcement yet.
Redox: A Rust-Written, Microkernel Open-Source OS
Collapse
X
-
-
Originally posted by computerquip View Post
Hurd isn't successful because it has no goals, is over 15 years old. and still ended up with shoddy design.
There's nothing wrong with the concept of a microkernel... it actually has quite a few advantages over monolithic kernels. The main downside of the micro kernel from my understanding is the latency introduced due to the IPC between user space and kernel space (which exists in monolithic kernels as well if you ever write a user space USB driver for instance in Linux).
Or you could simply say you're willing to pay the (generally minor in the grand scheme of things) cost of the IPC for the value provided in terms of security, robustness, debuggability. This is to some extent what Apple is doing today with their aggressive use of XPC on iOS and OSX to strongly enforce separation between apps and their "plugins" -- the same model can (and likely will) be extended to the OS, and if you know anything about how third party devices work on iOS, you'd realize that that's pretty much already the model for third party drivers.
An obsession with speed as the SINGLE priority for an OS made sense in the 80s and 90s; it makes less sense today in almost all use cases.
Comment
-
Originally posted by CrystalGamma View Post
IIRC not kernel ⇔ userspace but userspace A ⇔ userspace B is the problem. In a mode switch (kernel ⇔ user) there are no TLB flushes, which are expensive, but when you remap the address space (context switch), there are. And with the ring-based security model of the x86 MMU, there is basically no way around giving every process its own address space to ensure isolation.
Comment
-
Originally posted by name99 View PostEvery modern CPU uses address-space tagged TLBs. Transitioning between address spaces is not free, but it doesn't require TLB flushes the way you suggest.
Comment
-
Originally posted by CrystalGamma View Post
Interesting. But doesn't that mean that the TLB has to be bigger to be useful? That's gotta cost, especially since it's on the critical path …
Comment
Comment