-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script changes and folder structure, a folder for TLA+ spec is also a…
…dded
- Loading branch information
1 parent
7c62a14
commit 2eb1106
Showing
29 changed files
with
2,655 additions
and
215 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
HOSTS=( ##### network cluster ##### | ||
"houston" | ||
"sanantonio" | ||
"austin" | ||
"indianapolis" | ||
"philly" | ||
"atlanta" | ||
##### compute cluster ##### | ||
# "baltimore" | ||
# "chicago" | ||
# "detroit" | ||
) | ||
|
||
USERNAME="s1671850" # "user" | ||
LOCAL_HOST=`hostname` | ||
EXEC_FOLDER="/home/${USERNAME}/hermes/exec" | ||
RESULTS_FOLDER="/home/${USERNAME}/hermes/exec/results" | ||
|
||
RESULT_FOLDER="${RESULTS_FOLDER}/xput/per-node/" | ||
RESULT_OUT_FOLDER="${RESULTS_FOLDER}/xput/per-node/" | ||
RESULT_OUT_FOLDER_MERGE="${RESULTS_FOLDER}/xput/all-nodes/" | ||
|
||
# Gather remote files | ||
parallel "scp {}:${RESULT_FOLDER}* ${RESULT_OUT_FOLDER} " ::: $(echo ${HOSTS[@]/$LOCAL_HOST}) | ||
echo "xPut result files copied from: {${HOSTS[@]/$LOCAL_HOST}}" | ||
|
||
# group all files | ||
ls ${RESULT_OUT_FOLDER} | awk -F '-' '!x[$2]++{print $1}' | while read -r line; do | ||
# Create an intermediate file print the 3rd line for all files with the same prefix to the same file | ||
awk 'FNR==3 {print $0}' ${RESULT_OUT_FOLDER}/$line* > ${RESULT_OUT_FOLDER_MERGE}/$line-inter.txt | ||
# Sum up the xPut of the (3rd iteration) from every node to create the final file | ||
awk -F ':' '{sum += $2} END {print sum}' ${RESULT_OUT_FOLDER_MERGE}/$line-inter.txt > ${RESULT_OUT_FOLDER_MERGE}/$line.txt | ||
rm -rf ${RESULT_OUT_FOLDER_MERGE}/$line-inter.txt | ||
done | ||
|
||
echo "System-wide xPut results produced in ${RESULT_OUT_FOLDER_MERGE} directory!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
CPPFLAGS := -O3 #-Wno-unused-result -Wall -Werror | ||
LD := gcc -O3 -flto | ||
LDFLAGS := ${LDFLAGS} -libverbs -lrt -lpthread -lmemcached -lnuma -lrdmacm | ||
CFLAGS = -I../include/mica-herd -I../include/hermes -I../include/wings -I../include/hades | ||
APPS := hermesKV rCRAQ | ||
PROF := -g -fno-omit-frame-pointer | ||
|
||
all: ${APPS} clean-o | ||
|
||
hermesKV: ../src/wings/wings.o ../src/hades/hades.o \ | ||
../src/mica-herd/herd.o ../src/mica-herd/mica.o ../src/mica-herd/city.o \ | ||
../src/hermes/main.o ../src/hermes/hermes_worker.o ../src/hermes/util.o \ | ||
../src/hermes/stats.o ../src/hermes/spacetime.o ../src/hermes/hermesKV.o | ||
${LD} -o $@ $^ ${LDFLAGS} | ||
|
||
|
||
rCRAQ: ../src/mica-herd/herd.o ../src/mica-herd/mica.o \ | ||
../src/mica-herd/city.o ../src/hermes/main.o ../src/CR/cr_worker.o ../src/CR/crKV.o \ | ||
../src/hermes/spacetime.o ../src/hermes/util.o ../src/hermes/stats.o ../src/wings/wings.o | ||
${LD} -o $@ $^ ${LDFLAGS} | ||
|
||
|
||
hades-exec: ../src/hades/hades.o ../src/hades/test.o ../src/wings/wings.o ../src/mica-herd/herd.o | ||
${LD} -o hades $^ ${LDFLAGS} | ||
|
||
hades: hades-exec clean-o | ||
|
||
PHONY: clean | ||
clean: | ||
@rm -f ../src/hermes/*.o ../src/mica-herd/*.o ../src/wings/*.o \ | ||
../src/CR/*.o ../src/hades/*.o ${APPS} hades | ||
|
||
clean-o: | ||
@rm -f ../src/hermes/*.o ../src/mica-herd/*.o ../src/wings/*.o \ | ||
../src/CR/*.o ../src/hades/*.o |
Binary file not shown.
Binary file not shown.
Empty file.
Oops, something went wrong.