Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linux RSS from ps RES from TOP

Linux : RedHat/Fedora

What is the difference between these memory values:

  • RES from top command
  • RSS from ps command
like image 454
user1802501 Avatar asked Apr 09 '13 16:04

user1802501


1 Answers

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.

like image 70
Arun Avatar answered Oct 13 '22 00:10

Arun