Debugging Process Memory Usage

Each process requires memory for the execution. But with a virtual memory operating system like Linux the answer is quite complex. The numbers given by top and ps don't really add up. You can see an individual process' memory usage by examining /proc/<pid>/status Details about memory usage are in /proc/<pid>/statm [...]