Forrest logo
back to the sacct tool

sacct:tldr:95af0

sacct: Display elapsed time, job name, number of requested CPUs, and memory requested of a job.
$ sacct --jobs ${job_id} --format=${elapsed},${jobname},${reqcpus},${reqmem}
try on your machine

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).

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the sacct tool