Always felt that ps and top were largely useless to tell anything meaningful about memory usage. Here are some links to more useful tools:
- Stackoverflow: A way to determine a process’s “real” memory usage, i.e. private dirty RSS?
- Find out what is using your swap
- Memory usage with smaps (the script seems to have moved here)