From: P2P-Next User Date: Mon, 22 Nov 2010 12:17:25 +0000 (+0200) Subject: resource monitor support added X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=207c98b1c3cb5ced3f62b60a615f39ba2e43d323;p=p2p-testing-infrastructure.git resource monitor support added --- diff --git a/ControlScripts/schedule_client.sh b/ControlScripts/schedule_client.sh index 4cae67e..42d78a0 100755 --- a/ControlScripts/schedule_client.sh +++ b/ControlScripts/schedule_client.sh @@ -109,6 +109,9 @@ for ((i = 0; i < ${#suspend_resume[@]}; i += 2)); do suspend_client ${client_pid} old_time=${suspend_resume[$i]} + # Monitor client's resources + ./hook_monitor_pid $client_pid >> $REMOTE_PATH/P2P-Testing-Infrastructure/ClientWorkingFolders/TmpLogs/\$(hostname).log.mon 2>&1 & + # Client is suspended. Sleeping until the client should be restarted. When i wake up i will start the client test_infinite ${suspend_resume[$(($i+1))]}