This file contains hidden or 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
#! /bin/bash | |
# | |
# kill all old processes listed in GUARDLIST_PROCESS owned by users listed in GUARDLIST_USER | |
# | |
# Usage: | |
# ./process_watchdog GUARDLIST_USER GUARDLIST_PROCESS WHITELIST_USER WHITELIST_PROCESS | |
# | |
# - white list are of highest priority | |
# - processes owned by users listed in WHITELIST_USER will not be killed | |
# - process listed in WHITELIST_PROCESS will not be killed |
This file contains hidden or 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
# add and build julia packages | |
# | |
# Usage: | |
# julia install_pkg.jl filename1 [filenames...] | |
# | |
# example of requirement | |
# | |
# Images | |
# IJulia 1.12+ | |
# Flux v"0.6+" |
This file contains hidden or 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
#! /bin/bash | |
MAX_COUNT=60 | |
COUNT=0 | |
while [ 1 ] | |
do | |
FREE=`nvidia-smi -q | grep Free -m 1 | grep -o '[0-9]*'` | |
GPU=`nvidia-smi -q | grep Gpu -m 1 | grep -o '[0-9]*'` | |
echo $COUNT/$MAX_COUNT | |
if [ $FREE -lt 1000 ] && [ $GPU -lt 10 ] ; then |
NewerOlder