News for hackers. Stuff that matters.
Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by kaba0 on Sunday August 13, 2023 @03:47AM (#37107611)
Also in RAM. You don’t want to runa whole-ass container for `ls`.
Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by qbasic_forever on Sunday August 13, 2023 @12:06PM (#37111178)
No a process running in docker or on your host is going to use the same amount of RAM. There is no RAM dedicated to a running container on Linux--it's just a process that's flagged with some metadata to tell the kernel that it should be isolated in certain ways, like with a unique root filesystem.
Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by kaba0 on Sunday August 13, 2023 @12:17PM (#37111298)
Loading in the whole container though does increase the necessary RAM — with nix, two versions of the same executable can link to the same hash, but it is unlikely to be the case with Docker.
Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by qbasic_forever on Sunday August 13, 2023 @03:01PM (#37113038)
Your kernel is fine at managing the container root filesystem and paging in and out parts as necessary. It's not just loading gigabytes of root fs into memory and calling it good.
Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by Filligree on Sunday August 13, 2023 @08:51PM (#37116228)
Files still take up space on disk.
Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by wtetzner on Sunday August 13, 2023 @09:24PM (#37116404)
Paging still has a cost.