4 ms·
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 memo
by indrora 2y 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.
- eklavya 2y agoLinux 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.
- e12e 2y agoFor different minor versions and builds of libraries?
- raverbashing 2y agoThis is basic paging and CoW (Copy on Write) behaviour. I agree, it's mostly a non-issue
- rcxdude 2y agoThat'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
- eklavya 2y agoThe parent comment doesn't talk about different versions and I wasn't either.
- deleted 2y ago[deleted]