http://www.howtoforge.de/forum/showthread.php?p=23459
https://github.com/pixelb/scripts/blob/bfc33560f08db8724d4d071bf7d90571a5bc77ed/scripts/ps_mem.py