4 ms·
What’s the difference between running natively and in a container, really?
by quietsegfault 8mo ago
What’s the difference between running natively and in a container, really?
- cortesoft 8mo agoOn Linux, not much. On a Mac, quite a bit.
- quietsegfault 8mo agoLike mostly apple services such as iMessage? I’m asking honestly, not snarky! I don’t think performance is a big factor for agentic hyjinx.
- sunnybeetroot 8mo agoYes, anything Apple platform development
- scosman 8mo agoApple APIs yes. But there’s also an overhead when running containers like docker on Mac (and windows). Only Linux has near-zero overhead.
- quietsegfault 8mo agoRight, because on Mac (and windows) you’re running a VM rather than just setting up kernel namespaces. How cpu and network intensive are these pets? Or is it more of a principle thing, which I totally understand? I prefer containerization because it gives me a repeatable environment that I know works, where on my system things can change as the os updates and applications evolve. But I can understand the benefit of sandboxing for sure! Thank you.
- scosman 8mo agovery roughly: not that bad but not zero. I see docker taking a continuous 1/2% CPU on MacOS when running its host, where sandbox-exec or containers on linux are zero unless used. If you prefer containers, use containers.