6 ms·
I just cannot shake the feeling that everything Containers have promised us, I was promised back in 1991 with pre-emptive multitasking and protected memory. I
by hinkley 6y ago
I just cannot shake the feeling that everything Containers have promised us, I was promised back in 1991 with pre-emptive multitasking and protected memory.
I also can't help but think we're going to end up with a microkernel with some sort of nested cgroups for user processes. Which is itself going to look a little bit like Erlang...
- jayd16 6y agoIs that a surprise? Containers can mostly be summed up by file system isolation on top of process isolation. I think this is why we're seeing some work done on capability based OSes like Google's Fuchsia.
- kjeetgill 6y agoSorta, but I think you're missing the value proposition forest for the feature trees. I'm going to speak to the docker-style containers because that's what I'm most familiar with. Filesystem, process, and even network isolation facilitate the illusion of an application having a fresh install of an OS to a degree. This includes details like /dev/, a package manager, things sitting in /etc/. Added to that there's decent tooling for sharing, composing/layering, shipping, baking images. They're declarative (enough-ish) too. This is nice because that's a pretty decent compatibility layer across a ton of software like databases and webservers that have always run expecting a full host, services written with bare metal in mind, and new things too. The kernel isolation features are powerful enablers, but don't undervalue how important it was to have things sorted out for you, like ldloader quirks with different glibc versions against the same kernel. Real issue I had. Source: Too much futzing around with chroots.
- pjmlp 6y agoFor me we are kind of there already with hypervisors and managed language runtimes. The irony of having monoliths like Linux running type 1 hypervisors, on Intel CPUs running ME.
- watermelon0 6y agoDocker promised containers like we knew them from the past, and improved building and packaging procedures. In the past, we never had an easy way to package various applications (including all needed resources and executables). Each language ecosystem invented their own ways of packaging, distributing and installing the application, and this always relied on pre-existing environment. With Docker you don't care what versions of language runtime, or dependencies, each application runs, you can run them on the same machine. There are no incompatible dependencies between multiple Docker containers, everything almost always works. Same goes with building, image layers made building of images a lot easier, and doing incremental changes is fast. Of course there are downsides, image size can really grow if you are not careful, and you need to regularly rebuild images from the ground up, to ensure everything is patched.
- jnwatson 6y agoContainers are the API hack we put in because we couldn't change POSIX. The isolation and packaging were available in 90's era capability-based OSes (and 70's mainframe OSes), but backwards compatibility is more important than anything else, so we build matryoshkas of OSes inside OSes.
- drybjed 6y agoIf I'm not mistaken, the current stack for a containerized multi-host environment could be roughly described as: UNIX-like Linux kernel -> POSIX environment -> Kubernetes API -> Docker/CRI-O runtime -> POSIX environment -> Applications From the developer perspective only the last POSIX layer is relevant, all the layers below are efforts to strong-arm old UNIX paradigms into 21st century compute/storage/network architecture. Could it be possible to replace this huge layered stack with something lighter that is better designed for the current compute/storage/networking paradigm in the cloud/data center and supports the POSIX compatibility layer for applications? For example: Harvey OS -> orchestration API -> APEX -> Applications Plan 9 -> orchestration API -> APE -> Applications Clients could still rely on the desktop Linux distribution, Android or some other OSes.
- pvg 6y agoIn the 90s there was no compute-as-service and the difficulty in sanely running arbitrary yet potentially deliberately adversarial code was less well-understood. The latter is maybe still not all that well-understood.
- jjtheblunt 6y agoWas "tomcat" and EJB the 90s version thereof?
- pvg 6y agoNot really, it would fall under the 'language runtime' category in the article. EJB was not really designed with the goal of isolating entirely arbitrary, intentionally adversarial code. That's a problem that's gone from 'near-future interesting' to 'current, important and practical' since the 90s - both on the client (browsers, phones) and the server.
- rsa25519 6y ago> I also can't help but think we're going to end up with a microkernel with some sort of nested cgroups for user processes. Which is itself going to look a little bit like Erlang... Also sounds like https://redox-os.org https://redox-os.org, a microkernel that has namespaces, written in Rust and actively under development
- deleted 6y ago[deleted]
- rrdharan 6y agoWhen I was at VMware I was pretty excited about this; it made a lot of sense (and still does): https://www.zdnet.com/article/bea-runs-java-on-bare-virtual-metal/ https://www.zdnet.com/article/bea-runs-java-on-bare-virtual-...
- pjmlp 6y agoWhich is why vendors selling compliant JavaSE for embedded deployment with real time support still exist, despite Android.
- hinkley 6y agoAzul systems introduces a JVM that uses the VT instructions directly to vastly accelerate GC. I think some of their custom hardware was also a 'bare metal' VM arrangement for years, but I never actually met anyone who was a customer.