Ernestas Poškus

Technical blog

"We must view with profound respect the infinite capacity of the human mind to resist the introduction of useful knowledge." - Thomas R. Lounsbury

| github | goodreads | linkedin | twitter |

ansible 2 / elasticsearch 2 / kernel 2 / leadership 1 / linux 2 / mnemonics 1 / nginx 1 / paper 40 / personal 5 / rust 1 / tools 2 /

Container based operating system virtualization

WC 365 / RT 2min


Alternative to hypervisors.

Workload requirements for a given system will direct users to the point in the design space that requires the least trade-off.

Sharing over isolation?

Hypervisors often deployed to let a single machine host multiple, unrelated applications, which may run on behalf of independent organizations, as is common when a data center consolidates multiple physical servers. Hypervisors favor full isolation over sharing. However, when each virtual machine is running the same kernel and similar operating system distributions, the degree of isolation offered by hypervisors comes at the cost of efficiency relative to running all applications on a single kernel.

Usage

Software configuration problems incompatibilities between specific OS distributions.

Resource isolation corresponds to the ability to account for and enforce the resource consumption of one VM such that guarantees and fair shares are preserved for other VM’s.

Many hybrid approaches are also possible: for instance, a system may enforce fair sharing of resources between classes of VMs, which lets one overbook available resources while preventing starvation in overload scenarios.

The key point is that both hypervisors and COS’s incorporate sophisticated resource schedulers to avoid or minimize crosstalk.

Security isolation

Configuration independence - cannot conflict with other VM’s Safety - global namespace shared

Fair share and Reservations

Vserver implements CPU isolation by overlaying a token TBF on top of standard O(1) Linux CPU scheduler.

For memory storage one can specify the following limits:

Conclusion

Xen is able to support multiple kernels while by design VServer cannot. Xen also has greater support for virtualizing the network stack and allows for the possibility of VM migration, a feature that is possible for a COS design, but not yet available in VServer. VServer, in turn, maintains a small kernel footprint and performs equally with native Linux kernels in most cases.

Notes

Undesired interactions between VMs are sometimes called cross-talk.

COS - Container based Operating System

TBF - token bucker filter

HTB - Hierarchical Token Bucket

RSS - maximum resident set size