Commit 33179ba3 authored by Marc Vef's avatar Marc Vef
Browse files

gkfs script: Allow specific srun arguments via config file

parent af1417c2
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ start_daemon() {
            NODE_NUM=$(scontrol show hostname "${node_list}" | wc -l)
        fi
        # Setting up base srun cmd
        srun_cmd="srun --disable-status -N ${NODE_NUM} --ntasks=${NODE_NUM} --ntasks-per-node=1 --overcommit --contiguous --cpus-per-task=${CPUS_PER_TASK} --oversubscribe --mem=0 "
        srun_cmd="srun --disable-status -N ${NODE_NUM} --ntasks=${NODE_NUM} --cpus-per-task=${CPUS_PER_TASK} ${SRUN_ARGS} "
    fi

    if [[ ${VERBOSE} == true ]]; then
+8 −3
Original line number Diff line number Diff line
@@ -10,12 +10,17 @@ LIBGKFS_HOSTS_FILE=./gkfs_hostfile
# daemon configuration
DAEMON_ROOTDIR=/dev/shm/gkfs_rootdir
DAEMON_MOUNTDIR=/dev/shm/gkfs_mountdir
DAEMON_NUMACTL=false
DAEMON_CPUNODEBIND="1"
DAEMON_MEMBIND="1"
# path to daemon pid file; created where the script is run
DAEMON_PID_FILE=./gkfs_daemon.pid
# additional daemon arguments (see `gkfs_daemon -h`)
DAEMON_ARGS=""
# Use Slurm's srun to start the daemons on multiple nodes and set specific srun args
USE_SRUN=false
SRUN_ARGS="--ntasks-per-node=1 --overcommit --contiguous --oversubscribe --mem=0"
# use numactl to pin daemon to socket
DAEMON_NUMACTL=false
DAEMON_CPUNODEBIND="1"
DAEMON_MEMBIND="1"

# logging
GKFS_DAEMON_LOG_LEVEL=info