Re:Memory Deduplication: The Curse that Keeps on Giving [video]
by bitwiseand on Sunday January 08, 2017 @01:59PM
(#13351283)
This is essentially same as processes sharing (via Page Table mapping) one .so file AKA Dynamic Linking :).
It's not something that happens automatically though because each kernel is responsible for telling the MMU how it should map memory for its child processes only. Any cross container page sharing has to be implemented at the host level where the kernel has unrestricted access to all guest memory.