User Tools

Site Tools


linux:system_info

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:system_info [2020/05/24 14:15] – created bstaffordlinux:system_info [2022/11/23 12:49] (current) – external edit 127.0.0.1
Line 7: Line 7:
 <code>PROCESSID=1; TYPE="Rss";echo 0 $(cat /proc/`$PROCESSID`/smaps  | grep $TYPE | awk '{print $2}' | sed 's#^#+#') | bc</code> <code>PROCESSID=1; TYPE="Rss";echo 0 $(cat /proc/`$PROCESSID`/smaps  | grep $TYPE | awk '{print $2}' | sed 's#^#+#') | bc</code>
 Where $PROCESSID is the name of the process you want to inspect and $TYPE is one of: Where $PROCESSID is the name of the process you want to inspect and $TYPE is one of:
-  * <code>Rss</code>: resident memory usage, all memory the process uses, including all memory this process shares with other processes. It does not include swap;+  * ''Rss'': resident memory usage, all memory the process uses, including all memory this process shares with other processes. It does not include swap;
   * ''Shared'': memory that this process shares with other processes;   * ''Shared'': memory that this process shares with other processes;
   * ''Private'': private memory used by this process, you can look for memory leaks here;   * ''Private'': private memory used by this process, you can look for memory leaks here;
linux/system_info.1590329707.txt.gz · Last modified: (external edit)