#!/bin/bash num_slaves=$(grep "num_slaves" hosts | awk '{print $2}') num_hosts=$(grep -A 99999 bench_clients: hosts | grep -E "^\s+\S+:$" | wc -l) # Format of file: # bench_clients: # hosts: # client1: # client2: num_lines=$((($num_hosts - 2) * $num_slaves + 10)) tmpfile=$(mktemp) while true do echo "%CPU %MEM ARGS $(date +%Y/%M/%d_%H:%m:%S)" ps -e -o pcpu,pmem,args --sort=pcpu | cut -d" " -f1-5 | grep -v " 0.0 0.0 " > $tmpfile cat $tmpfile cat $tmpfile | grep p4d_ | awk '{s += $1} END {print s}' sleep 5 done
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 25669 | Robert Cowham | Refactored - move scripts to utils dir | ||
#3 | 25520 | Robert Cowham |
Tidied up. Created 2 client workspaces |
||
#2 | 25353 | Robert Cowham | Monitor network at beginning and end of benchmark | ||
#1 | 25346 | Robert Cowham | Populate //stream/pure. |