Sungju's Slow Life

Personal journal


  • How to find the actual memory usage by each process

    Checking RSS gives you an idea how much physical memory is consumed at the moment. However, there are shared area such as shared object (.so), shared memory (shmget), etc. To get real amount consumed by application side, those shared area should be divided by the number of processes which is done by kernel in /proc/*/smaps… Continue reading