Demo: Ten Processes, Four Ways¶
Run¶
./generate.sh && ./build.sh
./instantiate-one-static-multiple-times.sh
smem -P '^\./work/hel' -c "pid command uss pss rss"
./kill.sh
./instantiate-multiple-static.sh
smem -P '^\./work/hel' -c "pid command uss pss rss"
./kill.sh
Then the two dynamic scenarios the same way, and ./clean.sh at the end.
Ask¶
- Ten copies of one static executable: 708 KB of
RSSeach, 115 KB ofPSS. What is the 650 KB in between? - Ten different static executables:
USS,PSSandRSSagree. What is left to share? - The dynamic ones have the largest
RSSand the smallestPSS. With whom is libc shared?