Skip to content

Commit

Permalink
Only copy search and upload in first step (#179)
Browse files Browse the repository at this point in the history
Memory will be collected by qdrant_collect_stats.sh
  • Loading branch information
KShivendu authored Aug 6, 2024
1 parent d0f2b18 commit 940c206
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/run_client_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ ssh -tt -o ServerAliveInterval=60 -o ServerAliveCountMax=3 "${SERVER_USERNAME}@$

SEARCH_RESULT_FILE=$(ssh "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}" "ls -t results/*-search-*.json | head -n 1")
UPLOAD_RESULT_FILE=$(ssh "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}" "ls -t results/*-upload-*.json | head -n 1")
VM_RSS_MEMORY_USAGE_FILE=$(ssh "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}" "ls -t results/vm-rss-memory-usage-*.txt | head -n 1")
RSS_ANON_MEMORY_USAGE_FILE=$(ssh "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}" "ls -t results/rss-anon-memory-usage-*.txt | head -n 1")

mkdir -p results

for RESULT_FILE in $SEARCH_RESULT_FILE $UPLOAD_RESULT_FILE $VM_RSS_MEMORY_USAGE_FILE $RSS_ANON_MEMORY_USAGE_FILE; do
for RESULT_FILE in $SEARCH_RESULT_FILE $UPLOAD_RESULT_FILE; do
# -p preseves modification time, access time, and modes (but not change time)
scp -p "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}:~/${RESULT_FILE}" "./results"
done

0 comments on commit 940c206

Please sign in to comment.