Hacker News new | ask | show | jobs
by indrora 746 days ago
The issue is memory. Every library in an app image has a unique memory space and so you have a bunch of copies of sometimes very large libraries sitting in memory rather than one copy from disk mmapped into memory and page duplicated all over the place.
1 comments

Linux has had support for not doing duplicate pages for a long time now. I am forgetting the name of the feature but essentially this duplication is a solved problem.
That's only the case if the libraries loaded are identical, It won't work with slightly different versions of the same library (unless the differences are small and only replacements, so the pages remain aligned between different versions), and that case is very unlikely to be solvable
The parent comment doesn't talk about different versions and I wasn't either.
For different minor versions and builds of libraries?
This is basic paging and CoW (Copy on Write) behaviour. I agree, it's mostly a non-issue