News for hackers. Stuff that matters.
Re:A Rust-Based Unikernel: First Version of a Rust-Based LibOS by wmf on Thursday June 07, 2018 @06:43PM (#17261007)
Yeah, production-quality unikernels would need to have built-in observability, tracing, and debugging support (probably in the libOS) but AFAIK no one has started building such tooling. I suspect that production-quality unikernels would end up re-introducing a lot of the "bloat" that unikernels were supposed to eliminate.
Re:A Rust-Based Unikernel: First Version of a Rust-Based LibOS by perbu on Friday June 08, 2018 @04:56AM (#17263708)
I've heard this quite a few times. There is really nothing fundamental in keeping you from having the same or better observability in a Unikernel as opposed to a traditional POSIX kernel.

A couple of examples. The Gnu Debugger (gdb) supports connecting to qemu-backed virtual machines, so you have the ability to everything that gdb can on a unikernel as well, given the unikernel is implemented in something gdb groks.

In addition we've created a trace layer, similar to strace that allows you to run strace inside the vm itself. Since the POSIX libs are just libs wrapping them inside something like strace is rather trivial.

Also the unikernels have a huge advantage of having everything in the same memory space, meaning that you can observe the application and operating system at the same time.

High level languages like Python or Node.js can typically have debuggers loaded dynamically and as such would be able to offer full debuggability without having to do tricks with gdb.

All this doesn't have to induce bloat. The socalled bloat in POSIX systems is mostly caused by the security barriers raised by a design that forces strict separation between unprivileged and privileged access to the system. In addition a POSIX kernel will typically be built to support "everything" that a user might need whereas a unikernel can take a build-time decision on what to include into the OS.

Re:A Rust-Based Unikernel: First Version of a Rust-Based LibOS by convolvatron on Thursday June 07, 2018 @08:51PM (#17261693)
yes. idk how bloaty it would be. an x86-64 gdb stub weighs in at < 1000 lines.

if one were starting from scratch, a uniform measurement/management interface along the lines of osquery, sysctl, or /proc would be alot more straightforward on both the back and front end than the current weird mix of command line tools that linux presents.

I think the most interesting question, as others have mentioned in the thread, is providing decent debugging and introspection in the distributed context. the development of those kinds of tools seems pretty orthogonal to the size of your kernel and whether or not it runs systemd.

Re:A Rust-Based Unikernel: First Version of a Rust-Based LibOS by himom on Friday June 08, 2018 @01:13AM (#17262754)
Yup. GNU/Linux has just been reinvented. Another flavor of OS to support equals $$$$.
Re:A Rust-Based Unikernel: First Version of a Rust-Based LibOS by jacobush on Friday June 08, 2018 @03:25AM (#17263327)
IBM OS 360 has just been reinvented. It's turtles all the way down to the 1960s. This is just like nature. We are witnessing something like the evolution of one celled organisms. Also, multicelled organisms have started to appear. That would be cloud services (mats of algae and bacteria) and machine learning (true multicelled organisms).