News for hackers. Stuff that matters.
Re:macOS extensions are moving away from the kernel by cpach on Wednesday July 07, 2021 @03:58AM (#27758548)
Cool! Very interesting development given how bad reputation microkernels had for a while. (I’m thinking of Linux vs Minix/Hurd.)
Re:macOS extensions are moving away from the kernel by zibzab on Wednesday July 07, 2021 @04:14AM (#27758663)
FYI, Linux userspace drivers were introduced in 2006-2007 and improved multiple times over the years. Some of my filesystem & networking drivers run in usersapce.

The monolithic vs microkernel debate was pretty clueless at times. Core Linux is smaller than dito hurd when configured with similar functionality.

OSX mach has always been a hybrid kernel. In a sense Linux is too but you can also configure it as a mostly-monolithic thing, and most seem to prefer that.

Re:macOS extensions are moving away from the kernel by creshal on Wednesday July 07, 2021 @04:26AM (#27758727)
Some of the userspace drivers are even shared between OSX and Linux, via FUSE.
Re:macOS extensions are moving away from the kernel by roblabla on Wednesday July 07, 2021 @06:03AM (#27759335)
Another example would be userspace network drivers that directly talk to the network card. Those tend to be much more performant than using the kernel driver due to avoiding the need to context switch from userspace to kernelspace.
Re:macOS extensions are moving away from the kernel by MayeulC on Wednesday July 07, 2021 @12:47PM (#27763151)
Aren't we making userspace/kernel space communication a lot more efficient with io-uring, though?

Likewise, eBPF allows userspace programs to perform some work inside kernel space to reduce syscalls.

I wonder if io-uring won't be a starting point for a "microkernelization" of Linux. It seems really effective as a message-passing interface.

Re:macOS extensions are moving away from the kernel by pjmlp on Thursday July 08, 2021 @03:22AM (#27769169)
Look at Android' Project Treble, that is what Google has done, just with Android IPC instead of io-uring.
Re:macOS extensions are moving away from the kernel by zibzab on Wednesday July 07, 2021 @10:45AM (#27761689)
Is that really true in pratice (excluding unikernels, of course)?
Re:macOS extensions are moving away from the kernel by pjmlp on Wednesday July 07, 2021 @04:55AM (#27758898)
Since Android 8, Linux is a kind of pseudo-microkernel, as all drivers are required to be Treble based, and traditional Linux drivers are considered legacy on the platform.

https://source.android.com/devices/architecture/hal-types

The Switch (yes the games console) uses a microkernel.

QNX an OS for human critical scenarios is a microkernel.

Finally, when arguing Linux vs Minix/Hurd, think of the irony of running Linux on top of a cloud hypervisor, with an endless load of Kubernetes or Docker loads.

Re:macOS extensions are moving away from the kernel by SlowRobotAhead on Wednesday July 07, 2021 @11:49PM (#27768286)
> QNX an OS for human critical scenarios is a microkernel.

Hmm, Never thought about a stated OS focus like that. Off to look it up. Good mention

Re:macOS extensions are moving away from the kernel by pjmlp on Thursday July 08, 2021 @03:23AM (#27769175)
Search for high integrity computing, that is the industry term.
Re:macOS extensions are moving away from the kernel by kzrdude on Wednesday July 07, 2021 @04:05AM (#27758603)
macOS (Mac OS X lineage) was always based on mach (a microkernel) which made it a hybrid kernel: https://en.wikipedia.org/wiki/XNU
Re:macOS extensions are moving away from the kernel by tzs on Wednesday July 07, 2021 @09:56AM (#27761160)
At the time of the Linux vs. Minix debate, on pretty much every performance measure that Linus said monolithic kernels were better at the microkernel QNX was totally wiping the floor with Linux.