I wanted to check the memory usage of my account. I am aware of this command which lists down all the processes running under my account. Though which command will give me the memory usage as well. ps -u hsparikh -o rss,etime,pid,command Where hsparikh is the username under which my account is. Thanks. asked 21 Apr '13, 12:12 jpatel3 |
You can use the following command to download a memory usage python script:
Then, simply run it: answered 21 Apr '13, 23:01 ryans ♦♦ thanks for pointing to it.
(24 Apr '13, 15:46)
jpatel3
|
The RSS value is the memory usage in bytes, the command you have listed will show all the memory per process. If you want a total in MB than you could use this command,
answered 21 Apr '13, 19:40 johns Thanks. It provides the cumulative total fo all the current process. How can I get the individual process usage?
(21 Apr '13, 22:37)
jpatel3
I've posted another answer with script which does just this
(21 Apr '13, 23:02)
ryans ♦♦
|