File size: 411 Bytes
df64241
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# While a memory leak is suspected: ask training to restart (after a checkpoint, same nodes)
# every 6 hours, which frees the memory the training programs have built up.
# Start: nohup ./autoreload.sh >> logs/autoreload.log 2>&1 &     Stop: pkill -f autoreload.sh
cd /fsx/ajay-stu/AR
while true; do
  sleep $((6 * 3600))
  touch logs/RELOAD && echo "$(date -u) RELOAD requested (memory reset)"
done