-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbigsubmit.sh
More file actions
executable file
·32 lines (28 loc) · 890 Bytes
/
bigsubmit.sh
File metadata and controls
executable file
·32 lines (28 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
throttle() {
proc=$(ps f -u mstrait | wc -l)
load=$(cat /proc/loadavg | cut -d. -f1)
while [ $proc -ge 700 ] || [ $load -gt 2 ]; do
printf "Waiting for $proc to be less than 700 and $load less than 3\n"
sleep 1m
proc=$(ps f -u mstrait | wc -l)
load=$(cat /proc/loadavg | cut -d. -f1)
done
}
for e in S190910d; do
mkdir -p /nova/ana/users/mstrait/ligobgresults-$e
cat $SRT_PRIVATE_CONTEXT/ligo/goodnd.txt | while read m d; do
throttle
cd /nova/ana/users/mstrait/ligobgresults-$e
getandredoloop.sh $m $d neardet-ddactivity1 2019 $e > /dev/null &
echo Started $m $d near $e
sleep 1
done
cat $SRT_PRIVATE_CONTEXT/ligo/goodfd.txt | while read m d; do
throttle
cd /nova/ana/users/mstrait/ligobgresults-$e
getandredoloop.sh $m $d fardet-t02 2019 $e > /dev/null &
echo Started $m $d far $e
sleep 1
done
done