ControlScripts: add draft monitor hook
[p2p-testing-infrastructure.git] / ControlScripts / hook_monitor_pid.sh
1 #!/bin/bash
2
3 #
4 # monitor process characteristics using systat and iptables
5 #
6 # 2010, Razvan Deaconescu, razvan.deaconescu@cs.pub.ro
7 #
8
9 # per-process processor, disk and memory usage
10 # pidstat
11
12 # per-system
13 # iostat (processor & disk usage), free -s 1 (memory usage)
14
15 # per-process network bandwidth usage
16 # iptables
17
18 # per-system
19 # /sys/class/net/$iface/statistics/{tx,rx}_bytes (C app for periodic checks)