If you are talking about the difference between the RES column in the top -p $(pidof process) columns and the RSS in the ps aux | grep $(pidof process) ps aux | grep $(pidof process) , there is no difference , since both tools get this value from the file /proc/$(pidof process)/stat .
You can always choose cat /proc/$(pidof process)/status for a human readable format.
source share