Difference between revisions of "Resource Monitoring Tools"

From Steak Wiki
Jump to navigationJump to search
Line 19: Line 19:
 
  # iotop -o
 
  # iotop -o
 
only flag will show active processes only
 
only flag will show active processes only
  # iotop -d 0.01  
+
  # iotop -d 0.01  or -d 0.1
 
delay flag can be set to be faster than 1 second. Some writes are missed otherwise.
 
delay flag can be set to be faster than 1 second. Some writes are missed otherwise.
  

Revision as of 03:50, 29 September 2020

There are programs available to watch various aspects of your system.

iftop

See active internet connections. e.g.

# iftop -i eth1

Will show you websites that don't close a connection, when the tab is left open. A privacy and security nightmare. This is a reason why Javascript is bad.

vmstat

See RAM usage. Can be watched, to monitor swapping. e.g.

$ vmstat 3

Leave it running. It will update every 3 seconds.

iotop

See HDD accesses. e.g.

# iotop --only
# iotop -o

only flag will show active processes only

# iotop -d 0.01  or -d 0.1

delay flag can be set to be faster than 1 second. Some writes are missed otherwise.

Monitor Library Reads from PID

$ ltrace -p -pidhere-

See what a program is doing. (Note: not available on ARM deb repos)