• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

squeue Command Examples in Linux

by Deepika

squeue is a command-line tool used to view the jobs that are queued or running in the SLURM job scheduler. SLURM is a popular open-source job scheduler used in many high-performance computing (HPC) environments. It is used to manage and allocate computing resources to individual jobs submitted by users.

When a user submits a job to the SLURM scheduler, it is added to a queue with other jobs waiting to be executed. squeue is used to view the status of these jobs, including their ID, priority, user, state, and the resources they are using. It also provides real-time updates on the status of running jobs.

squeue can be used with various options to filter and sort the job list. For example, the –user option can be used to show only jobs submitted by a specific user, and the –state option can be used to show jobs in a specific state (e.g., pending, running, completed, failed).

squeue Command Examples

1. View the queue:

# squeue

2. View jobs queued by a specific user:

# squeue -u username

3. View the queue and refresh every 5 seconds:

# squeue -i 5

4. View the queue with expected start times:

# squeue --start

Summary

Overall, squeue is a useful tool for users and administrators of SLURM-based HPC clusters to view the status of jobs submitted to the scheduler. It provides a simple and efficient way to monitor the progress of jobs and the resources they are using.

Filed Under: Linux

Some more articles you might also be interested in …

  1. LVM Configuration : Logical Volume (LV) Operations/Utilities
  2. How to enable/disable wayland on Ubuntu 22.04
  3. CentOS / RHEL : How to convert volume group metadata between LVM1 and LVM2
  4. extrace Command Examples in Linux
  5. sudo Command Examples in Linux
  6. “docker images” Command Examples
  7. LVM Snapshot: Backup and restore LVM Partition in Linux
  8. compsize Command Examples in Linux
  9. shutdown: command not found
  10. konsole: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright