How Much Memory Is My Program Actually Using? It sounds like such a simple question - however digital memory makes measuring real memory use difficult. Shared memory is not apportioned per course of utilizing it so it's overstated. Resident memory includes shared memory, so it overstates as nicely. Virtual memory contains resident memory plus data held in swap, which isn't in foremost memory. Thankfully until you might be running a Linux kernel older than the final monetary disaster, you've a better choice: Proportional Set Dimension (PSS)¹. That is the amount of non-public memory the method is using, plus its proportional allocation of shared Memory Wave Experience. The file lists every memory block mapped to the process, and its properties. You could possibly wrangle the smaps data with shell code, but you don’t must! The smem instrument does that, and it could filter/format too. Memory concepts is usually a bit summary, so let’s take a look at an instance.
Now what do you suppose the output will present? The little one process receives a replica of its parent’s memory - so has actual memory use doubled? No! The mother or father and little one share the memory