# HG changeset patch # User Oleksandr Gavenko # Date 1404499671 -10800 # Node ID 8b06ef3d42436d088c8de0b77055f13a732305c3 # Parent 53809402262290af8fb59c6ea230b1b97a0ef704# Parent 4e6403892f2b1737bee8997525d49dd5a4b1b2cd merged diff -r 538094022622 -r 8b06ef3d4243 stat.rst --- a/stat.rst Mon Jun 30 16:55:47 2014 +0300 +++ b/stat.rst Fri Jul 04 21:47:51 2014 +0300 @@ -115,6 +115,7 @@ :: $ top + $ dstat Try press 's' (strace), 'l' (lsof), 'F5' (tree view) in:: @@ -167,11 +168,12 @@ :: $ top + $ dstat Linux static. ------------- -Vitual and resident memory size:: +Vitual and resident memory size per process:: $ ps -eo vsz,rsz,pid,cmd --sort=vsz --width 3000 @@ -189,6 +191,24 @@ r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 0 936804 5460 34936 0 0 21 5 363 29 0 0 99 0 +System memory distribution:: + + $ cat /proc/meminfo + $ cat /proc/iomem + $ cat /proc/pagetypeinfo + $ cat /proc/buddyinfo + $ sudo cat /proc/slabinfo + $ sudo slabtop + +Shared memory segments:: + + $ ipcs -m -p + +Process memory map:: + + $ pmap -x $PID + $ pmap -XX $PID + FreeBSD interactive. -------------------- :: @@ -227,6 +247,28 @@ and add colums TODO. +Power usage. +============ +:: + + $ sudo powertop + +Network activity. +================= +:: + + $ ping $IP + $ traceroute $IP + $ mtr $IP + $ sudo bmon + $ sudo iftop -i wlan0 + +Open ports. +=========== +:: + + $ nmap $IP + Opened file by process. =======================