-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
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,19 @@ | ||
# just read the file noop | ||
# see https://github.com/lsst-dm/s3daemon/blob/main/README.md | ||
|
||
|
||
if [ $1 ] | ||
then | ||
f="$1" | ||
else | ||
echo "Specify file " | ||
exit 1 | ||
fi | ||
|
||
start=`date +%s` | ||
while IFS= read -r line | ||
do | ||
: # nothing | ||
done <"$f" | ||
end=`date +%s` | ||
echo Reading $f `expr $end - $start` seconds |
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,38 @@ | ||
# Simple read 20 files each in own thread for a node for camera | ||
# this is just to see the times for the read as opposed to send | ||
# see https://github.com/lsst-dm/s3daemon/blob/main/README.md | ||
|
||
|
||
source envvars.sh | ||
source venv/bin/activate | ||
|
||
|
||
|
||
repeat=2 | ||
if [ $1 ] | ||
then | ||
repeat="$1" | ||
fi | ||
echo "Just read repeat $repeat" | ||
|
||
files=`ls ~tonyj/Test/MC*/* | head -${count}` | ||
|
||
fcount=0 | ||
l=0 | ||
|
||
while [[ l -le repeat ]] | ||
do | ||
l=$((l + 1)) | ||
for f in $files; do | ||
key=`echo $f | cut -d'/' -f6 | sed 's/.fits//g'` | ||
|
||
./readFile.sh $f & | ||
|
||
fcount=$((fcount + 1)) | ||
if [ $((fcount % 20)) == 0 ] | ||
then | ||
sleep 20s | ||
echo "Sleeping" | ||
fi | ||
done | ||
done |
Empty file.