Observing shared mapped file memory in linux

by Zohar81   Last Updated December 06, 2018 14:26 PM

I'm using mmap syscall to load file memory for reading by several other processes (with flag PROT_SHARED).

Checking the process memory consumption seems to ignore the fact that the mapped file memory is shared. Each process memory usage contains the entire mapped file in memory according to pf -aux command.

Is there a way to differentiate between shared and private process memory ?



Related Questions


Updated March 08, 2017 23:26 PM

Updated June 25, 2017 21:26 PM

Updated July 05, 2018 22:26 PM

Updated May 08, 2017 14:26 PM

Updated November 21, 2018 22:26 PM