2 ms·
https://en.wikipedia.org/wiki/Unikernel https://en.wikipedia.org/wiki/Unikernel Whether it's good depends on what you're doing. UKL will[1] allow you to link
by rwmj 7y ago
https://en.wikipedia.org/wiki/Unikernel https://en.wikipedia.org/wiki/Unikernel
Whether it's good depends on what you're doing. UKL will[1] allow you to link a regular server application to Linux and then run that single binary on baremetal or in a hypervisor, and give you a decent performance boost over running the application on top of a normal kernel. How much of a performance boost depends a great deal on the program, almost everything will be a few percent faster, and some applications a lot more.
[1] I'm using the future tense here because although we do run real programs with it today there's still a bunch of development work to do before it works smoothly. The code is: https://github.com/unikernelLinux https://github.com/unikernelLinux
- radicalbyte 7y agoAs I've always understood it, it's not just performance but also security: there's a lot less code running with your code which cuts the surface area for bugs and thus security holes.
- cma 7y agoWouldn't a crash or other problem in your program potentially corrupt e.g. the kernel tcp stack?
- rwmj 7y agoAs the program and kernel run in a single address space, yes there is no separation from your application corrupting parts of the kernel. I'm not very convinced about the security story around unikernels, but for balance the other side of the argument is that there's much less code around in a unikernel - no shell, no command line tools at all, no compilers or interpreters, just the code required to run the program and talk to the hardware (real or virtual).
- heavenlyblue 7y agoWouldn’t directly linking system calls make every address space more unique and thus make it harder to write (generic) exploits for?
- rwmj 7y agoThe typical problem is that you end up distributing (eg) Apache 2.4.99 compiled for Unikernel on x86-64 via Red Hat Network to a million customers and they're all running the same binary. ASLR helps here ...
- cma 7y agoWith full privilege I think you could directly write to hardware dma locations and look them up in the mmu, etc.
- kbumsik 7y ago> there's a lot less code running with your code Tell me if I am wrong, but is it always true though? Unikernel libraries definitely are largely not as proven as Linux kernel. Then how is unikernel secure than Linux system call?