check how much memory is being used by a process python code example Example: evaluate how much a python program memory ps -m -o %cpu,%mem,command