top | item 45674743

(no title)

evrflx | 4 months ago

Where is the overhead in a container? It is just a regular process. (Ok plus a container runtime process, but that is negligible)

discuss

order

kevincox|4 months ago

Does podman have a container runtime process? Or does it just exec the child after setting up the environment?

In that case the overhead is just a small amount of kernel accounting.

goku12|4 months ago

It's the latter - podman just sets up all the necessary stuff - namespaces, cgroups, seccomp, network, mounts, etc - and then executes the child. No monitoring whatsoever. The best you can do is to have it listen on the socket it uses for the control API (similar to the docker socket).

However, the quadlets technology allows you to easily setup systemd using systemd generators to initialize the containerized applications using podman and then monitor it for any crashes. Quadlets essentially does everything that docker compose does.

That aside, a container's main overheads aren't the compute or the memory. It's the storage overhead. You're essentially replicating the minimal Linux userland for each container, unless that's in a shared layer.

woleium|4 months ago

negligible for you, perhaps ;)