Hacker News new | ask | show | jobs
by FooBarWidget 3171 days ago
> and also to be unable to share executable pages (not a huge loss for a 2MB executable, a huge loss for a 100MB executable).

I don't think people care about that nowadays, seeing how popular Docker containers are. I think Docker containers already make it so that you cannot share executable memory between different containers because each one runs in its private namespace.

1 comments

Do namespaces separate file system caches? That would surprise me.
IIRC it depends on which storage backend for docker you use: https://web.archive.org/web/20170405122924/https://developer...
The only one that could matter here would be mnt. And since bind mounts normally wouldn't cache pages separately, I don't think that would happen for the namespaces either. Happy to be proven wrong though.

More specifically I wouldn't expect "free -m" to produce different result depending on the namespace it's run in.