Does anyone know how to calculate the mem usage with the /proc/pid/maps files for a given proc. We are writing a multithreaded program on RedHat 7.3. The top utility is showing near 90-95 memory usage on the box and I wanted to know how that could be. We are currently running it with 512MB Ram and 512MB swap. Last I checked it has about 18M free mem? Anyone who knows how to accurately monitor virtual and physical memory use by threads, I would love some assistance/input.