#!/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 | 25529 | Robert Cowham |
Latest copy of files including docker compose setup. Merging //guest/robert_cowham/p4benchmark/pb/... to //guest/robert_cowham/p4benchmark/main/... |
||
#3 | 24851 | Robert Cowham |
Improve sql reporting. Log ps usage |
||
#2 | 24848 | Robert Cowham |
Drop caches per run. Increase num slaves to 70 |
||
#1 | 24847 | Robert Cowham | Add submit rate to results |