Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change how frequently SLURM updates the output file (stdout)?

Tags:

stdout

slurm

I am using SLURM to dispatch jobs on a supercomputer. I have set the --output=log.out option to place the content from a job's stdout into a file (log.out). I'm finding that the file is updated every 30-60 minutes, making it difficult for me to check on the status of my jobs.

Any idea why it takes so long to update this file? Is there a way to change settings so that this file is updated more frequently?

Using SLURM 14.03.4-2

like image 208
Neal Kruis Avatar asked Aug 06 '14 21:08

Neal Kruis


Video Answer


1 Answers

This may be related to buffering.

Have you tried disabling output buffering as suggested in here? I would recommend the stdbuf option:

stdbuf -o0 -e0 command

But can't be sure without more information, as I've never experienced a behavior like that. Which filesystem are you using?

Also if you are using srun to run your commands you can use the --unbuffered option which disables the output buffering.

like image 148
Carles Fenoy Avatar answered Sep 18 '22 01:09

Carles Fenoy