TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

KVM and Docker LXC Benchmarking with OpenStack

41 pointsby r4umabout 11 years ago

7 comments

josteinkabout 11 years ago
I recently tried using both Docker and LXC and I just had to ditch Docker.<p>If you wanted something as &quot;esoteric&quot; as having normal networking in your container, you had to understand how Docker abstracted LXC in the first place, then find out how to do things the LXC way and then push your changes through, with some extra duct-tape with pipeworks.<p>And if that&#x27;s the start, before I&#x27;ve even <i>done</i> anything, I can&#x27;t imagine things getting better. So Docker? No thanks.<p>Then I&#x27;ll just go ahead and use LXC directly. It involved a bit more research, but nothing you can&#x27;t do in a few hours. And when you do, you can get to benefit from BTRFS volumes and having snapshot management tied directly to your containers.<p>Maybe I&#x27;m missing something, but after fooling around with this for a few days, I can&#x27;t see why anyone would choose the leaky abstraction that is Docker when you can just go with the real deal.
评论 #7697488 未加载
评论 #7698683 未加载
WestCoastJustinabout 11 years ago
If you are new to the idea of containers vs traditional virtualization, I have put together a screencast about containers, entitled: &quot;Introduction to Containers on Linux using LXC&quot;. Can be seen @ <a href="http://sysadmincasts.com/episodes/24-introduction-to-containers-on-linux-using-lxc" rel="nofollow">http:&#x2F;&#x2F;sysadmincasts.com&#x2F;episodes&#x2F;24-introduction-to-contain...</a>
评论 #7700968 未加载
justinsbabout 11 years ago
Interesting benchmarks, ruined for me by a huge experimental no-no: when one of the tests (the Docker delete) didn&#x27;t produce the result the author wanted, he investigated the underlying problem and fixed it. Sure enough, that became the headline 49x speed-up. Where the results fit the narrative, no optimization was done&#x2F;reported.<p>One thing I&#x27;m very interested by is Docker&#x27;s idea of single-process containers; but whether this can be done with KVM isolation instead of (weaker but cheaper) LXC isolation. One thing I was surprised by from this presentation is that the memory cost of a KVM vs LXC instance was only 185MB vs 45MB. So KVM&#x27;s stronger isolation might not be as expensive after all...
评论 #7697688 未加载
评论 #7696803 未加载
评论 #7696277 未加载
评论 #7696474 未加载
rdtscabout 11 years ago
One thing to keep in mind is lightweight containers work well for deployment (isolation), but they can&#x27;t replace KVM for general virtualization tasks, as guest kernel has to be the same as the host OS.<p>If you have your hosts running CentOS and want to deploy on Windows, for example, or want to migrate some legacy server to the &quot;cloud&quot; this might not work well for you.
评论 #7696464 未加载
评论 #7697702 未加载
评论 #7696422 未加载
spullaraabout 11 years ago
Docker stopped using LXC and now uses libcontainer:<p><a href="http://www.infoq.com/news/2014/03/docker_0_9" rel="nofollow">http:&#x2F;&#x2F;www.infoq.com&#x2F;news&#x2F;2014&#x2F;03&#x2F;docker_0_9</a>
评论 #7696468 未加载
mrmondoabout 11 years ago
Docker doesn&#x27;t even use LXC anymore...
评论 #7696479 未加载
评论 #7696400 未加载
jaequeryabout 11 years ago
he should be comparing docker to xen paravirtual or openvz, NOT kvm.
评论 #7697623 未加载