![Forrest logo](/images/logo.png)
sacct:tldr:95af0
The command "sacct" is a command-line utility in Slurm, a job scheduler used in high-performance computing clusters. It is used to gather information about job accounting and statistics.
In this command, "--jobs" is an option that specifies which jobs to include in the output. The "${job_id}" is a placeholder that should be replaced with the specific job ID(s) you want to retrieve information for.
The "--format" option is used to define the format of the output. In this case, it is set to "${elapsed},${jobname},${reqcpus},${reqmem}". The elements inside the curly braces are different variables that determine the fields to be included in the output. Here's what each variable represents:
- ${elapsed}: Elapsed time of the job (how long the job has been running).
- ${jobname}: Name of the job.
- ${reqcpus}: Number of CPUs/cores requested by the job.
- ${reqmem}: Amount of memory requested by the job.
So, running this command with a specific job ID(s) will provide you with a formatted output containing the elapsed time, job name, requested CPUs, and requested memory for that particular job(s).