The following is a demonstration of the mmapfiles.d script.
Here we run mmapfiles.d while in another window a new bash shell is started.
The files that were mapped in aren't suprising, they are the common shared
librarios,
Tracing... Hit Ctrl-C to end.
^C
MMAPS CMD PATHNAME
1 bash /lib/libdl.so.1
3 bash /lib/libsocket.so.1
3 bash /lib/libnsl.so.1
3 bash /lib/libc.so.1
3 bash /lib/libcurses.so.1
Now we examine zsh. This time a number of extra libraries are mapped,
Tracing... Hit Ctrl-C to end.
^C
MMAPS CMD PATHNAME
1 zsh /lib/libdl.so.1
3 getent /lib/libc.so.1
3 getent /lib/libnsl.so.1
3 getent /lib/libsocket.so.1
3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/parameter.so
3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/zutil.so
3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/complete.so
3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/stat.so
3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/zle.so
3 tset /lib/libc.so.1
3 zsh /lib/libc.so.1
3 zsh /lib/libm.so.2
3 zsh /lib/libcurses.so.1
3 zsh /lib/libnsl.so.1
3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/complist.so
3 zsh /lib/libsocket.so.1
Sometimes the output can be quite suprising. The following shows the mmaps
caused by the "sdtaudiocontrol" tool, a java tool to change the volume levels
on Solaris,
Tracing... Hit Ctrl-C to end.
MMAPS CMD PATHNAME
1 java /usr/dt/classes/jhall.jar
1 java /usr/dt/classes/jsearch.jar
1 java /tmp/hsperfdata_root/6464
1 java /tmp/hsperfdata_root/6455
2 java /usr/lib/libsched.so.1
3 sdtaudiocontrol /lib/libc.so.1
3 ls /lib/libc.so.1
3 rm /lib/libc.so.1
4 java /lib/libdl.so.1
6 java /lib/libscf.so.1
6 java /usr/lib/libCrun.so.1
6 java /lib/libnsl.so.1
6 java /lib/libm.so.1
6 java /lib/libsocket.so.1
6 java /lib/libuutil.so.1
6 java /lib/libmp.so.2
6 java /lib/libmd5.so.1
6 java /lib/libm.so.2
6 java /lib/libdoor.so.1
8 java /lib/libthread.so.1
12 java /lib/libc.so.1
21 awk /lib/libm.so.2
21 awk /lib/libc.so.1
65 java /devices/pseudo/mm@0:zero