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

天大地大妈咪最大 提交于 2020-01-11 03:09:08

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/25170763/how-to-change-how-frequently-slurm-updates-the-output-file-stdout

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!