File size: 647 Bytes
ba3ecf1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/bash
#PBS -N khalil_vmstat_monitoring
#PBS -l select=1:ncpus=20:mem=180gb:ngpus=1
#PBS -q gpu_1d
#PBS -o vmstat_logs/vmstat_output.log
#PBS -e vmstat_logs/vmstat_error.log
# === Load modules & activate conda (optional, can remove if not needed) ===
module use /app/common/modules
module load anaconda3-2024.10
# === Move to working directory ===
cd /home/skiredj.abderrahman/khalil/sbert_training
echo "==== Job running on node: $(hostname -s) ===="
echo "==== Monitoring started at $(date) ===="
# === Collect vmstat every 30 minutes (1800 seconds) ===
# This runs until the PBS job ends
vmstat 1800 >> vmstat_logs/vmstat_30min_%J.txt
|