From: Razvan Deaconescu Date: Fri, 19 Nov 2010 19:23:57 +0000 (+0200) Subject: ControlScripts: add draft monitor hook X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=a7b45cbbf3560b487848269cb04ef685fdcea335;p=p2p-testing-infrastructure.git ControlScripts: add draft monitor hook Comments point out tools to be used for monitoring. To be filled. --- diff --git a/ControlScripts/hook_monitor_pid.sh b/ControlScripts/hook_monitor_pid.sh new file mode 100644 index 0000000..14269d4 --- /dev/null +++ b/ControlScripts/hook_monitor_pid.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# +# monitor process characteristics using systat and iptables +# +# 2010, Razvan Deaconescu, razvan.deaconescu@cs.pub.ro +# + +# per-process processor, disk and memory usage +# pidstat + +# per-system +# iostat (processor & disk usage), free -s 1 (memory usage) + +# per-process network bandwidth usage +# iptables + +# per-system +# /sys/class/net/$iface/statistics/{tx,rx}_bytes (C app for periodic checks)