Share glibc between Host process and a process within Linux Container
Hi All,
Normally kernel takes care of sharing common pages between processes, to conserve memory usage. glibc would be an example of this.
Now,
1) How does the kernel know, that it is a common page between two processes.
-- Is it based on the inode of the .so?
-- Does the kernel compute a HASH to check for common pages?
2) Is this same concept applicable for a host process & a Process within a Linux Container.
-- Since Container would have its own rootfs, the inode entry for .so of glibc would be different from the host.
Any pointers to this would be helpful.
Thanks in advance for the help.
-Alphonse
|