Is there any way to know which library files are being used by which process (or by how many number of process) in some amount of time.
Can V-Tune or perf or OProfile be used for this?
Is there any way to know which library files are being used by which process (or by how many number of process) in some amount of time.
Can V-Tune or perf or OProfile be used for this?
You can take a snapshot by
cat /proc/*/maps > /tmp/snapshot
and then usegrep
andwc
to answer your question.If you want to monitor the system for some period of time, you could take the snapshot every second or so.
You can do
perf record -a
, thenperf script -D
and look forPERF_RECORD_MMAP
events.