time_scp.sh #1

  • //
  • guest/
  • robert_cowham/
  • p4benchmark/
  • main/
  • time_scp.sh
  • View
  • Commits
  • Open Download .zip Download (471 B)
#!/bin/bash
# Example utility script to do direct comparisons.

d=/p4depot_fa/ws/long_directory_name_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_/00
 
pushd $d
nohup sudo nethogs -c 30 -t -d 1 > nethogs.out 2>&1 &
time ls | parallel scp -r {} sn1-r720-a01-03:/ram/disk/00/{}
sudo pkill nethogs

grep ssh nethogs.out | awk '{s += $2; r += $3} END{ printf("sent/rcvd MB tot %.2f,%.2f\n", s/1024, r/1024);}'
# Change User Description Committed
#1 25529 Robert Cowham Latest copy of files including docker compose setup.
Merging
//guest/robert_cowham/p4benchmark/pb/...
to //guest/robert_cowham/p4benchmark/main/...
//guest/robert_cowham/p4benchmark/pb/time_scp.sh
#2 25520 Robert Cowham Tidied up.
Created 2 client workspaces
#1 25352 Robert Cowham WIP for proper handling of parallel syncs