CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Ending OpenFOAM jobs on SLURM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2019, 06:47
Default Ending OpenFOAM jobs on SLURM
  #1
New Member
 
Join Date: May 2014
Posts: 6
Rep Power: 11
Denao is on a distinguished road
Hi all,

I have an issue ending openfoamn jobs submitted via a slurm SBatch script.

I have the following submission script:

Code:
#!/bin/bash
#SBATCH --export=ALL
#SBATCH -J openFoam-TH-Aft-12kts
#SBATCH --nodes=1-1
#SBATCH --tasks-per-node=11
#SBATCH --time=48:00:00
#SBATCH --signal=B:18@1800

. /opt/openfoam5/etc/bashrc

mpirun interFoam -parallel
and in the controlDict have the follwoing:

Code:
OptimisationSwitches
{
    stopAtWriteNowSignal    18;
}
When the jobs reach the end of their allocated times the slurm_XXX.log shows the following:

Quote:
slurmstepd-CFD2: error: *** JOB 171 ON CFD2 CANCELLED AT 2019-12-08T13:35:14 DUE TO TIME LIMIT ***
mpirun: Forwarding signal 18 to job
sigStopAtWriteNow : setting up write and stop at end of the next iteration
However timesteps are not written and, when i check the cluster, I see orphaned interFoam tasks, some still running on a core at 100% and some taking very low %.

Any assistance in getting these jobs to terminate properly would be appreciated (as I am loosing the results at the end of the job!)
Denao is offline   Reply With Quote

Old   December 12, 2019, 04:55
Default
  #2
New Member
 
Join Date: May 2014
Posts: 6
Rep Power: 11
Denao is on a distinguished road
Slight update on the above. It appears that, in at least some cases that the timestep is in fact written. However the presence of orhaned processes makes me wonder how complete/reliable this is.
Denao is offline   Reply With Quote

Old   December 12, 2019, 15:58
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Do you know, how long SLURM waits, until it finally kills the job after sending the signal?
jherb is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days joegi.geo OpenFOAM Announcements from Other Sources 0 October 1, 2016 19:20
OpenFOAM Training Beijing 22-26 Aug 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 May 3, 2016 04:57
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 07:18
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 09:28.