14 ms·
Unikernels: The Next Stage of Linux’s Dominance (2019)
- rwmj 7y agoI'm one of the authors on this paper, so ask away if you have questions.
- tasubotadas 7y agoWhat is a unikernel and why it's good?
- stingraycharles 7y agoYeah I’m kind of amazed they don’t start out with explaining this. Usually there is at least a one-line explanation. From Wikipedia: “A unikernel is a specialised, single address space machine image constructed by using library operating systems. A developer selects, from a modular stack, the minimal set of libraries which correspond to the OS constructs required for their application to run. These libraries are then compiled with the application and configuration code to build sealed, fixed-purpose images (unikernels) which run directly on a hypervisor or hardware without an intervening OS such as Linux or Windows.”
- awild 7y ago> There has been a resurgence of research sys-tems exploring the idea of the libraryOS, ora unikernel,a model where target application is linked with a special-ized kernel and deployed directly on hardware, virtual orphysical Third paragraph > The unikernel is a cloud-era handle for the classic systemstechnique of linking an application with a library of oper-ating system components (including memory management,scheduler, network stack and device drivers) into a singleflat address space, creating standalone binary image that isbootable directly on (virtual) hardware [22]. The advantageof this approach is that kernel functionality can be special-ized to fit the needs of the target application to increasethe performance of the application or to support it within ahighly restricted execution domain. And second chapter.
- rwmj 7y agohttps://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?
- perbu 7y agoBasically you replace the system calls into the kernel with library calls. So you end up with a single binary that contains both the application as well as the operating system functionality. This can lead to some rather spectacular performance benefits. One thing is that you remove the syscall overhead, but more importantly you can do a lot more optimizations at the compiler/linking steps. You can remove complex code that tries to dynamically model the world with rather plain code that does just what it is supposed to. With IncludeOS (C++17 unikernel) we did make a firewall implementation that instead of using complex data structures relied on preprocessing the rule set and translate it into C++ code. The code to do this was quite simple and resulted in pretty amazing figures wrt number of rules per packet per second. Metaprogramming can sometimes deliver amazing results. Similar things can be done in a traditional kernel as well and we've seen eBPF firewall implementations that are able to get similar numbers. On the flip side eBPF and it's firewall implementation is order of magnitude more complex. However, you can push eBPF code onto the networking card which can be a huge benefit. And ofc you could make a kernel module that implements a specific firewall ruleset and get similar performance without eBPF. I like unikernels because I feel I can understand them better. You can reason about them and they are easier to optimize for very specific workloads. So why aren't we using them? Likely because we know Linux so well and we've invested a lot in it. It runs everywhere and is extremely well supported. Bringing a new operating system to market is challenging, bringing a new operating system with a entirely different architecture is even harder. Even if it, on a purely technical level, could yield better results.
- rwmj 7y agoAnother performance benefit (unsurprising in highsight) comes from removing KPTI and similar Spectre mitigations. These have really made system calls in regular kernels expensive.
- bonzini 7y agoOn the other hand if you run only one application on your VM you can just disable them, because one you have access to the userspace application there is nothing else on the machine to steal via side channel attacks.
- k__ 7y agoThink of it as "Your app runs like an operating system". Instead of installing an OS and installing your app on that OS, the OS is a library you use to talk to the hardware. It's good for two reasons. First security, if you only use the HDD and network, you don't have to include code for display or mouse etc. which could be a security risk. Second, it's faster, because you don't have to do syscalls, since your app IS the OS, syscalls don't need to get out of userspace.
- texascloud 7y agoOnly reading the abstract, are you saying a different branch/fork of Linux could be maintained to be a unikernel?
- Rotten194 7y ago(Not the author) No, the paper describes a small patch to Linux (~20 lines) + modifications to glibc that enable using Linux as a unikernel. Their goal is to have the modifications upstreamed so that Unikernel linux could be a GCC target etc.
- boxed 7y agoI also don't get it. "Linux as a unikernel" does not make sense. The entire point of a unikernel is to not have the OS in every container/VM.
- dodobirdlord 7y agoIf you statically link your software with the kernel, presumably an optimizing compiler will be able to remove most of the kernel from the resulting binary.
- rwmj 7y agoYes. Also LTO becomes possible.
- helldritch 7y agoFor those, like me, who don't know what the acronym LTO is: it's Link-time optimisation, the stage during compilation where the "linker" has all of the object files which make up your program available to it, and is therefor able to optimise across the entire program at once (instead of the individual constituent source files which make up the program). There's a long, detailed PDF about LTO produced by GCC which was useful in helping me to understand exactly how this works here: https://gcc.gnu.org/projects/lto/lto.pdf https://gcc.gnu.org/projects/lto/lto.pdf
- pinopinopino 7y agoReally cool work! Is there really a support layer for Emacs in the kernel? Now the real question. You are statically linking against a modified glibc, so they make calls to your kernel library instead to the system call and you can do some nice optimizations along the way. Which I think make sense. I can see this is cool for things that directly interface to glibc, but do you think this is viable for applications using multiple layers between the kernel and the application?
- rwmj 7y agoAt the moment you must go through glibc. For example issuing SYSENTER or INT 80h will not work. We have only run C applications so far, so I'm unsure how it will all work for servers written in other programming languages. I think applications which rely on complex multi-process middleware (like Java JBoss, etc) will be hard or even impossible to port.
- pinopinopino 7y agoUnderstandable, thanks for your answer!
- bonzini 7y agoYou can always "unikernelize" the JVM. OSv had a kernel-optimized JVM for example.
- elcritch 7y agoThat’d be great for many VMs. I think it’d be interesting to see how the Erlang BEAM would perform in such a scenario. Especially for embedded devices! Yes, sometimes a few dozen micros faster is all that’s needed for many applications to become practical.
- zeckalpha 7y agohttps://github.com/cloudozer/ling/blob/master/README.md https://github.com/cloudozer/ling/blob/master/README.md
- xfs 7y agoIs it correct to think of it as application code running as PID 1 in kernel space? Can I fork or create threads? Can I directly access kernel's internal APIs like a kernel module?
- perbu 7y agoNot quite. Everything runs as PID 0. :-) There are no processes here. Everything runs inside the kernel. You don't have exec(), fork() or similar.
- rwmj 7y ago> Is it correct to think of it as application code running as PID 1 in kernel space? getpid exists and returns a number - in fact it can return any number you like :-) Everything is linked into a single vmlinux which runs in a single address space. (As an aside I'll have to remember to ask Ali if he's thought about what number getpid() should return in UKL - I guess returning 1 would cause least surprise) > Can I fork or create threads? Fork no, threads yes. Threads are implemented using kernel threads. > Can I directly access kernel's internal APIs like a kernel module? Yes, although whether this is a good idea is another matter. Note that it's still Linux so internal APIs are unstable and can go away or change their meaning at any time, so if your application starts to rely on internal APIs you could quickly get into trouble.
- arbarb 7y agoSlight clarification. Yes, UKL has normal kthreads, but all the application code runs using pthreads. And their implementation is unchanged, except the fact that they do function calls instead of syscall.
- joosters 7y agoWhat are the plans regarding multithread / multiprocess support? On the face of it, multiprocess support might seem a bit stupid, but it would greatly help the porting of more complex applications. The 'processes' wouldn't need virtual address space or memory protection, just give them a block of memory and pick a CPU to run the code. If you have multithreading, do you need any scheduling code, or can you just pick a CPU for each thread and leave them to run? What about the kernel's own threads & processes?
- rwmj 7y agoI don't know where things will go in the future, but now: Multiprocess no. fork() will fail. Pthreads works already.
- arbarb 7y agoUKL is multi threaded, not multi process because there is no fork. Plus it's a Unikernel i.e., just one process. You don't need any scheduling code, Linux does it like it does normally for kernel and user threads.
- finnthehuman 7y ago>You don't need any scheduling code, Linux does it like it does normally for kernel and user threads. That's interesting, how does Linux implement it's kernel threads without any scheduling code?
- MaxBarraclough 7y agoWhat do you make of the highly critical Assessing Unikernel Security paper [0]? Have things changed since its publication? [0] https://www.nccgroup.trust/globalassets/our-research/us/whitepapers/2019/ncc_group-assessing_unikernel_security.pdf https://www.nccgroup.trust/globalassets/our-research/us/whit... , from https://news.ycombinator.com/item?id=19738905 https://news.ycombinator.com/item?id=19738905
- rwmj 7y agoI can't read that paper. Firefox says the HSTS cert is wrong. Edit: Thanks for the updated link. UKL can be compiled with usual hardening features like ASLR, stack hardening, RELRO. As I said here (https://news.ycombinator.com/item?id=23202042 https://news.ycombinator.com/item?id=23202042) I'm dubious about the security story around unikernels, but most of the issues in this paper are not relevant to UKL specifically.
- subaru_shoe 7y agoyou wrote this paper but can’t figure out how to solve this issue? really?
- MaxBarraclough 7y agoVery strange, it works fine for me regardless of browser. Mirror: https://web.archive.org/web/20200311095425/https://www.nccgroup.trust/globalassets/our-research/us/whitepapers/2019/ncc_group-assessing_unikernel_security.pdf https://web.archive.org/web/20200311095425/https://www.nccgr...
- eyberg 7y agoYou might enjoy reading my response to that: https://nanovms.com/dev/tutorials/assessing-unikernel-security https://nanovms.com/dev/tutorials/assessing-unikernel-securi...
- MaxBarraclough 7y agoI'll be frank: that article strikes me as weak sauce. It's coy about the identity of the paper it discusses. It's there in the title, and nowhere else, as if that's enough for it to be clear to the reader. Beyond this, the responses offered are not strong. It makes good sense to compare unikernels against conventional GNU/Linux. It's the standard configuration, and it sets the bar. Describing this as a pyschological hump isn't a sensible response. I don't know what advances to things like the networking stack is meant to refer to. The article should be clear and explicit about what part of the paper this is responding to. As it stands it looks like a straw-man. The response to unikernels are un-debuggable makes little sense. Someone can work on a debugger while claiming the current state of debugging is poor. No contradiction there. Downplaying the significance of Data Execution Prevention isn't a convincing defence. Downplaying the significance of ASLR isn't a convincing defence. These are valuable security measures. This excerpt from the conclusion seems to indicate a reluctance to take security concerns seriously at all, as if a security analysis is an emotional attack: there's a thousand little kids out there wanting to crap on anything they can. Security bugs are bugs at the end of the day and all one has to do is look at any random popular github to understand how many bugs we as humans create.
- transpute 7y agoThanks for taking questions. Are there outstanding work items for QEMU being statically linked with a unikernel?
- rwmj 7y agoIt's not really something that anyone in the project has thought about. Running the vmlinux on baremetal is actually more interesting to us.
- wltprgm 7y agoCorrect me if I am wrong, Unikernels are basically allowing binary to run at Ring 0? What do you think about WASM in the kernel with the same high level concept with Unikernel? link in the below https://destroyallsoftware.com/talks/the-birth-and-death-of-javascript https://destroyallsoftware.com/talks/the-birth-and-death-of-...
- rwmj 7y agoI'm not sure I can say anything intelligent about WASM in the regular kernel, but from a UKL point of view we're talking with Enarx and they're going to join us on one of our regular meetings in a few weeks. For more info on Enarx and web assembly see: https://www.youtube.com/watch?v=5wrQSe-IdMI https://www.youtube.com/watch?v=5wrQSe-IdMI
- eyberg 7y agoI'll admit I don't know much about WASM but access to raw sockets and 32bit only sounds extremely limiting. Until those are dealt with wasm will never move past it's current status quo - malware in the browser.
- snvzz 7y agoWhy Linux? Solutions based on Netbsd's rumpkernels exist. There's nothing about unikernels that says Linux.
- rwmj 7y agoLinux is the most mainstream Unix-like server operating system. We're making only minimal changes to Linux and hoping to get them upstream. (The NetBSD rumpkernel is a bit different from this by the way.)
- la6471 7y agoIs the final vision to somehow put together a packager that will put together an application plus UK together to run on any virtual system. Maybe one can extend packer to create this binary similar to how it creates container.Also FaaS providers like AWS lambda or google functions - aren’t they already doing this?
- rwmj 7y agoI wouldn't say the final vision is clear yet, but what I'd like to see would look something like a "liblinux.a", and you would compile your application using your normal compiler, and link it to this library to end up with a vmlinux that would run in a VM or on baremetal. Actually achieving this is tricky: At the moment you need to use special compiler flags and a completely different link line from normal. Then there's the issue of how/whether the library Linux is configured generically or you somehow allow people to set CONFIG_* options.
- MichaelMoser123 7y agoisn't it hard to develop/debug/monitor an application with this approach? I mean you can't just run a debugger as another process and attach to the thing, you can't run tcpdump or strace, nothing of that sort. Also every bad pointer access will require a reboot, wouldn't it? I mean how do you develop an application with this approach?
- rwmj 7y agoAll good questions without a clear answer at the moment. Bad pointers in the application can overwrite kernel data structures because everything runs in a single address space.
- Someone 7y agoThe unikernel idea is 20-ish years old. I think those good questions cannot be much younger. Because of that, I think “without a clear answer at the moment” is worrisome. Are there partial answers to these questions?
- rwmj 7y agoI mean "without a clear answer" for UKL which is only just over a year old and still in active and early development. There will probably be a way to attach gdb at some point.
- marcoperaza 7y agoYou can debug a normal kernel over the network. I imagine you can do the same with a unikernel.
- heavenlyblue 7y ago> Also every bad pointer access will require a reboot, wouldn't it? Hm, isn’t reboot just slightly more complicated than restarting your application? And most of the today’s apps would still require “rebooting” be it a container or a virtual machine
- zarkov99 7y agoHow transparent could the deployment target choice be? Could you deploy roughly the same source code to unikernel and non unikernel targets? Also, what exactly are these enormous performance benefits?
- rwmj 7y agoAbout the source code, all I can really say is that's our aim at the moment - to have the same source compiled for both non-unikernel and UKL targets. Note that really what we're aiming for is to recompile common servers out of the box with no changes, or the minimal changes possible. Performance benefits: In truth we're still measuring this, there is a very smart student at BU who is investigating this and coming up with results for a forthcoming paper which I don't want to preempt too much. Almost all applications should see a small benefit, say of the order of 5%, but it's hoped that some will see a much larger benefit, and that it should be possible to make modest modifications in order to enjoy large benefits (perhaps only compiler and linker flags and such like). These are very much hopes rather than firm promises at the moment.
- reubensutton 7y agoMy gut instinct is always that using traditional kernels in a unikernel way is a bit suboptimal because it doesn’t become a “library operating system” in the same way that Mirage does.
- rwmj 7y agoOnly the bits of Linux which are used are linked in, same as when you link together any program. The big advantage of using Linux is driver support - you can run a UKL application on baremetal, linking to the drivers needed to run on the target hardware.
- reubensutton 7y agoOh! That’s very cool
- masklinn 7y agoWhile that's true, the flip side is that "traditional" kernels have much better hardware (and general) support because they benefit from the long history of the "main project". Stripping down traditional kernels to work as unikernels is not a new thing: https://github.com/rumpkernel/rumprun https://github.com/rumpkernel/rumprun
- brmgb 7y agoDoes it really matter ? Are people actually planning of running unikernel on bare metal a situation where you would need significant tooling to manage them ? MirageOS was initially clearly designed to run on top of an hypervisor. The idea was going from host os, guest os and application to just host os and unikernel. As I see it, it was a different way of solving the same problem containers are now used for : do you really need both a host os and guest os when all you want is isolation ? Using container is pushing isolation in the kernel while losing the actual virtualization (in a way merging host os and guest os) while unikernel is pushing the useful part of the guest os into the application (merging guest os and application) keeping the benefits of full virtualization. I think it's why Docker bought the company making MirageOS. I don't really see where rump kernels sit there. Clearly there is interest as people are working on them but I fail to see where they would be useful.
- perbu 7y agoUnikernels are typically statically linked. Using copyleft code means the whole resulting binary is subject to copyleft. Free software is great, but not everyone is in the position where they can release all of their code all the time. For a unikernel to be viable it can't have copyleft code in it.
- lmm 7y agoDepends what you're using it for. If you're just running it as a server then (non-A) GPL code is fine since you're not distributing the program.
- dathinab 7y agoBut what about the cloud and auto scaling wouldn't that count as distribution (through for internal use only)?
- rwmj 7y agoIt's an interesting point. I wonder if sending a binary to AWS counts as distribution to a third party? (Of course I work for Red Hat and the cult thinks all code should be free :-)
- freedomben 7y agoYes all code should be free! (I work for Red Hat also :-) I was originally just being silly but figured I would add something of substance here. I think the GPL goes a little too far but I like the spirit of it. As a user if I pay for an application, I should get a copy of the code for personal use as well. I don't think that gives me the right to distribute it because it's still somebody's property, but applications should be distributed to customers with their source IMHO.
- nabla9 7y agoInternal use is not distributing.
- 7y ago
- comment111 7y agoasdf
- smitty1e 7y agoA simple disk format, the unikernel.
- x3blah 7y ago"Also known as rump kernels a name inspired by the infamous purge of royalists from Parliament following the English Civil War this process involves creating a fork of an existing kernel codebase and manually purging it of the components deemed unnecessary to the target unikernel." That appears to come from the FAQ on Github for "rumprun" dated 2015. Rump kernels were introduced in NetBSD in 2009. It was an described then as an acronym for runnable userspace meta programs. https://blog.netbsd.org/tnf/entry/runnable_userspace_meta_programs_in https://blog.netbsd.org/tnf/entry/runnable_userspace_meta_pr... I have not used rumprun for Linux but I still use the rump utilities included with NetBSD.
- ncmncm 7y agoFull article text: http://sci-hub.tw/10.1145/3317550.3321445 http://sci-hub.tw/10.1145/3317550.3321445 Maybe link the top-level post there?
- ncmncm 7y agoWhen I make a system where a unikernel could do the job, I usually want a full OS for program setup and initialization, and then an isolated core for the main loop, sharing (single-writer) memory pages with other, less performance-critical processes for logging, stats reporting, and any needed file system activities. The makers of top-performing NICs have been quite good at providing direct user-space access to their hardware, typically by exposing a ring buffer in shared memory, and maybe mapping device registers too, so that the process on the isolated core never does another system call until shutdown weeks later. It is some hassle to get customers to add boot flags (isolcpus=, nohz_full, rcu_nocbs=, rcu_nocb_poll, hugepages=, etc.), and to put any mapped files in /dev/shm or /dev/hugepages so the kernel won't invent excuses to block the procees, and to direct irqs to other cores; but unikernel setup is probably not simpler. So, I'm not sure what a unikernel would get me. Portability, or independence from proprietary drivers?
- xfs 7y agoRecently I found out ebpf jitting will cause interprocessor interrupts even with all the isolation configs available today. There's probably many more places where such interrupts could be generated and not handled by the current isolation mechanism. Not saying a unikernel is directly a solution but CPU isolation isn't perfect either and could use something from a unikernel.
- bitcharmer 7y agoI don't think the tuning you refer to is sufficient to bring the platform noise to levels required for some workloads. You will still see a lot of system call interrupts, TLB shootdowns, timer events, etc. Funnily enough yesterday I published an article tangential to this problem field. http://bitcharmer.blogspot.com/2020/05/t_84.html http://bitcharmer.blogspot.com/2020/05/t_84.html I'm not an expert on unikernels but my assumption is that you will see none of that OS jitter.
- xfs 7y agoGood writeup, but is there any mitigation for TLS shootdowns?
- axegon_ 7y agoFull disclosure: I have only briefly fiddled with unikernels. And in all honesty, I think there could be a good real life application for them. But the biggest problems I see is that even though they have been around for a while, building them is still incredibly complex and time consuming and there isn't a core community behind them and looking at it, it seems like they are starting to suffer from the javascript syndrome - hundreds of single maintainer or micro-communities doing their own thing and putting a sticker("unikernel" in this case) on top. As I said I haven't paid a whole lot of attention to them and I'm hoping someone is addressing these issues.
- heavenlyblue 7y agoIsn’t that’s what this whole thread about? Making it easier by providing Linux as a compilation target.
- eyberg 7y agoWell one of the problems here is that it's kernel work and not everyone has the skillset to do that work, worst no one wants to fund it. However, the tooling is changing.
- moonbug 7y agothree objections: tooling, tooling, and tooling.
- steeve 7y agoObligatory plug for Elias Naur's unik, a unikernel written almost entirely in Go, which can link with and run unmodified Go binaries: https://git.sr.ht/~eliasnaur/unik https://git.sr.ht/~eliasnaur/unik Demo with virtio-gpu support: https://twitter.com/eliasnaur/status/1249765031299952646 https://twitter.com/eliasnaur/status/1249765031299952646
- MrBuddyCasino 7y ago> Unikernels have demonstrated enormous advantages over Linux in many important domains By domains, do they mean that as "actually in use in certain sectors in the industry" or "a prototype has shown that"? > causing some to propose that the days of Linux's dominance may be coming to an end Who exactly would make that claim? So, besides performance: what actual, real-life problems does this solve? I think there is some overlap with containers, and at this point, replacing them will require something a lot better.
- FeepingCreature 7y ago> Who exactly would make that claim? Didn't you hear? Some.
- toyg 7y agoTop men. Top. Men.
- tomscieentalcru 7y agoTop guns it's almost scient-a-logical
- microcolonel 7y ago> So, besides performance: what actual, real-life problems does this solve? Well, don't go jumping to "besides performance". Dennard scaling is dead, and the things that can interrupt your program in a full preemptive kernel system are myriad. Furthermore, even if your application properly manages and produces backpressure, the OS can introduce buffering where you don't want it, often by necessity (to avoid massive context switch costs). Now, if you just want to manage backpressure over the network, an application-hosted networking stack is probably a fine solution, but if you want to accurately translate disk backpressure to network backpressure it gets more complicated. There are heaps and heaps of ordinary programs written for preemptive systems that would see noticeable, tangible benefits to users if they were run instead on unikernels; but the main thing halting adoption is the inconvenience of adapting programs. I tried getting Capstan/OSv to work the other day and the documentation dragged me through several apparently-outdated methods of achieving the same thing, all of which failed in incomprehensible ways. Tooling for these things could use a lot of work.
- neilwilson 7y agoSeems to me that a unikernel database should be the first application. Databases tend to bypass practically all the facilities of a kernel anyway. It’s often surprised me that they haven’t merged before now.
- deleted 7y ago[deleted]
- gwillz 7y agohttps://twitter.com/cpswan/status/971335126566211585?s=20 https://twitter.com/cpswan/status/971335126566211585?s=20 Maybe not exactly what you're thinking. But somewhat in the same domain.
- fcantournet 7y agoThey also tend to need to be debugged & administered.
- eyberg 7y agoThere is plenty of work in this area. The team behind OSv ending up writing https://www.scylladb.com/ https://www.scylladb.com/ because of their earlier interest in databases.
- wmf 7y agoSo you're saying unikernel experts ended up writing a non-unikernel database. There's a lesson right there.
- eyberg 7y agoI wouldn't draw that conclusion. A) Taking vc money sometimes points you at different types of businesses that you are urged to explore more. B) Just cause you can run a database as a unikernel (and you can) doesn't mean the people who want the other database wants to deploy it as one. In my experience those who buy managed databases generally aren't wanting to do any system administration at all.
- 7y ago
- edjrage 7y agoSo apparently you need cookies to show text. "We use cookies to ensure that we give you the best experience on our website. It seems your browser doesn't support them and this affects the site functionality."
- cm2187 7y agoThe site has just the right number of modal windows hiding the content: a cookie consent form, a covid 19 information at the bottom, and some recommendations on the right, and if scroll back up the site banner...
- sigwinch28 7y agoThe old dl.acm was no amazing bit of modern design, but it was definitely much better than this mess. Yet again the ACM showing how out-of-touch it can be with its members and patrons.
- ancarda 7y agoEh, sounds like every other website to me. Wouldn't people say ACM are out of touch if they don't adopt all the common junk you see on websites? Their website is so out of date it doesn't have a cookie banner! Best I get my information from somewhere that keeps up with the times ... and the law!
- folex 7y agohttps://www.researchgate.net/publication/332329656_Unikernels_The_Next_Stage_of_Linux%27s_Dominance https://www.researchgate.net/publication/332329656_Unikernel... researchgate is much much nicer, and gives a lot of info: citations, related papers, you could go see info about authors, ask questions, see what project this paper is on. Researchgate allows discovering interesting papers in a seamless maner.
- rectang 7y agoCan a unikernel be used to create a sound/music application which is not afflicted by the latency problems which bedevil such applications when running inside traditional operating systems? For example, could it be used for a softsynth which takes in midi input and emits digital audio with the OS only contributing guaranteed sub-millisecond latency?
- EnigmaCurry 7y agois that not what the linux realtime patches do? https://wiki.archlinux.org/index.php/Realtime_kernel_patchset https://wiki.archlinux.org/index.php/Realtime_kernel_patchse...
- rectang 7y agoI've been researching this for a long time, and it's unclear to me whether Linux with PREEMPT_RT patches would meet that sub-ms requirement. I see numbers all over the place from various sources, from sub-millisecond to more than 10 ms. 10 milliseconds is often considered the threshold of human perception with regards to audio latency. (It's possible that it's lower under some circumstances, but 10 ms is a good enough approximation for my purposes.) My goal is to create a sound/music tool which runs lots of DSP and which has a total system latency of under 10 milliseconds, including OS, application (including intrinsic latency of DSP procedures), hardware, and sound in air (about 1 ms per 3 meters). When I read about latency, I often see "we're at 6-9 ms, that's good enough because it's not perceptible". Unfortunately, that's not good enough if there are several components which contribute to total system latency and they are all pushing 10 ms. Hence, my sub-ms requirement for the OS. Committing to a platform will be a costly choice. I don't want to invest in writing for realtime Linux only to find that I really need to run a hardcore RTOS, or run dedicated DSP chips, etc. That's why I'm interested in whether running a unikernel can offer stronger guarantees.
- PaulDavisThe1st 7y agoI write realtime audio software for Linux, and have done so for 20 years. While your goal is admirable - it certainly is possible to come up with scenarios where "sub-ms" latency is desirable - it's really not relevant. Your stated goal ("...lots of DSP ... under 10 msec") is already entirely achievable on Linux, assuming you're close enough to your speakers (or wearing headphones). But sub-msec can only make sense here if it describes scheduler latency, since there's no audio hardware that can function in the sub-msec range. The linux scheduler is way, way below that threshold and SCHED_FIFO threads will see that performance barring hardware issues (c.f. https://manual.ardour.org/setting-up-your-system/the-right-computer-system-for-digital-audio/ https://manual.ardour.org/setting-up-your-system/the-right-c...) Finally .... writing audio software is a lot of fun. But please don't just jump in without seeing if you can instead contribute to an existing project first. The field is littered with the dead and half-dead corpses representing the discarded work of developers who thought it would be fun, and then moved on.
- jibanes 7y agothis is excellent, where is the code, do you have examples?
- rwmj 7y agohttps://github.com/unikernelLinux https://github.com/unikernelLinux We have memcached compiled for UKL but for some reason Ali has made that repo private (it's under the same namespace as above). I will ask him if he can make the other repos public this week.
- gandalfgeek 7y agoIf you're too lazy to read the whole paper I've made a quick explainer video: https://youtu.be/3NWUgBsEXiU https://youtu.be/3NWUgBsEXiU
- sureshv 7y agoWonder how this differs from exokernals: https://pdos.csail.mit.edu/archive/exo/ https://pdos.csail.mit.edu/archive/exo/
- GregarianChild 7y agoExokernels are orthogonal to unikernels. Unikernels run exactly one application, but can be based on an arbitrarily complicated OS (specialised) to that one application. Exokernels can run arbitrarily many applications, but OS functionality is minimal and limited to ensuring protection and multiplexing of resources. Specialising a rich OS (such as Linux) to a single application might yield OS functions that are as restricted as those you find in an exokernel.