News for hackers. Stuff that matters.
Re:Why doesn’t anyone weep for Docker? by katsura on Friday September 06, 2019 @03:30AM (#20893751)
Have they solved the high CPU usage problem while it is running (even when no containers are inside)? I don't like my laptop hot, so never could make a switch.
Re:Why doesn’t anyone weep for Docker? by ypcx on Friday September 06, 2019 @06:05AM (#20894380)
They haven't. As an example of where this lack of efficiency comes from, recently I've fixed an issue during which I've discovered that the Etcd component of k8s uses periodic (10 sec) liveness checking, where for every check (launching of the etcdctl client), the `runc` binary (from container.d) is executed 3 (three) times. You can imagine this probably just scratches the surface.
Re:Why doesn’t anyone weep for Docker? by ngrilly on Friday September 06, 2019 @03:11PM (#20898827)
Ugh! Was the fix committed upstream?
Re:Why doesn’t anyone weep for Docker? by ypcx on Saturday September 07, 2019 @06:23AM (#20902922)
Yes, this one was a systemd detection in runc, which was causing big log flooding and runtime overhead due to runc being executed so frequently. I initially cached the checks, but later the devs removed them altogether. Still, this is not solving the inefficiencies in k8s. https://github.com/kubernetes/kubernetes/issues/76531
Re:Why doesn’t anyone weep for Docker? by ngrilly on Friday September 06, 2019 @05:55AM (#20894344)
Yes, it's a real issue. Kubernetes burns too much RAM and CPU even with no workload.
Re:Why doesn’t anyone weep for Docker? by Fnoord on Friday September 06, 2019 @07:20AM (#20894647)
Docker on macOS also suffers from that issue though.
Re:Why doesn’t anyone weep for Docker? by GordonS on Saturday September 07, 2019 @01:21PM (#20905159)
It will use more on MacOS and Windows than on Linux, as it needs to use a sidecar Linux "Moby" VM to run containers. In practice on Windows, this hasn't been an issue for me (64GB RAM in my dev laptop).

This will actually finally change soon'ish with Windows at least, I think as part of WSL2. Not sure if anything is going to change on MacOS.

Re:Why doesn’t anyone weep for Docker? by mschuster91 on Friday September 06, 2019 @07:27AM (#20894674)
Not for me, except for the RAM blocking - I wish that Hyperkit could dynamically allocate and release RAM for the guest machine instead of blocking 2GB (in my case) by default all the time.
Re:Why doesn’t anyone weep for Docker? by ngrilly on Friday September 06, 2019 @03:09PM (#20898799)
I haven't noticed that.
Re:Why doesn’t anyone weep for Docker? by bryanlarsen on Friday September 06, 2019 @06:18AM (#20894423)
--vm-driver=none helps a lot with the CPU and especially RAM usage, using k3s instead of minikube helps more.