Modify scontrol show job to require -dd option to print batch script.
I have implemented the changes as you suggested: using a "-dd" option to indicate that the display of the script is wanted, and setting both the "SHOW_DETAIL" and a new "SHOW_DETAIL2" flag. Since "scontrol" can be run interactively as well, I added a new "script" option to indicate that display of both the script and the details is wanted if the job is a batch job. Here are the man page updates for "man scontrol". For the "-d, --details" option: -d, --details Causes the show command to provide additional details where available. Repeating the option more than once (e.g., "-dd") will cause the show job command to also list the batch script, if the job was a batch job. For the interactive "details" option: details Causes the show command to provide additional details where available. Job information will include CPUs and NUMA memory allocated on each node. Note that on computers with hyperthreading enabled and SLURM configured to allocate cores, each listed CPU represents one physical core. Each hyperthread on that core can be allocated a separate task, so a job's CPU count and task count may differ. See the --cpu_bind and --mem_bind option descriptions in srun man pages for more information. The details option is currently only supported for the show job command. To also list the batch script for batch jobs, in addition to the details, use the script option described below instead of this option. And for the new interactive "script" option: script Causes the show job command to list the batch script for batch jobs in addition to the detail informa- tion described under the details option above. Attached are the patch file for the changes and a text file with the results of the tests I did to check out the changes. The patches are against SLURM 2.4.0-rc1. -Don Albert-
Showing
- NEWS 2 additions, 0 deletionsNEWS
- RELEASE_NOTES 3 additions, 1 deletionRELEASE_NOTES
- doc/man/man1/scontrol.1 11 additions, 4 deletionsdoc/man/man1/scontrol.1
- slurm/slurm.h.in 1 addition, 0 deletionsslurm/slurm.h.in
- src/scontrol/info_job.c 4 additions, 1 deletionsrc/scontrol/info_job.c
- src/scontrol/scontrol.c 12 additions, 2 deletionssrc/scontrol/scontrol.c
- src/slurmctld/job_mgr.c 1 addition, 1 deletionsrc/slurmctld/job_mgr.c
Loading
Please register or sign in to comment