Linux RSS from ps RES of TOP

Linux: RedHat / Fedora

What is the difference between these memory values:

  • RES from the top command
  • RSS from ps command
+4
source share
1 answer

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.

+4
source

All Articles