9

Linux : RedHat/Fedora

What is the difference between these memory values:

  • RES from top command
  • RSS from ps command
user1802501
  • 99
  • 1
  • 2

1 Answers1

12

If you are talking about the difference between the RES column in top -p $(pidof process) and the RSS column in the ps aux | grep $(pidof process) command, there is no difference, as both the tools get this value from the /proc/$(pidof process)/stat file.

You can always cat /proc/$(pidof process)/status for a human readable format.

Arun
  • 1,399
  • 12
  • 21