run_top.sh #1

  • //
  • guest/
  • robert_cowham/
  • p4benchmark/
  • main/
  • run_top.sh
  • View
  • Commits
  • Open Download .zip Download (347 B)
#!/usr/bin/bash

sudo pkill -9 run_top 

log_file="ps.out"

[[ -e top.out ]] && rm top.out

num_slaves=$(grep "num_slaves" hosts | awk '{print $2}')
lines=$((2 * $num_slaves + 10))

while true
do
    echo "%CPU %MEM ARGS $(date)" >> $log_file
    ps -e -o pcpu,pmem,args --sort=pcpu | cut -d" " -f1-5 | tail -$lines >> $log_file
    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