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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

qsub Command Examples in Linux

by Deepika

qsub is a command-line tool used for submitting batch jobs to the queue management system TORQUE. TORQUE (Terascale Open-source Resource and QUEue Manager) is a widely used open-source tool that manages the distribution of computational jobs across a cluster or network of computers.

Using qsub, you can submit a script file containing a series of commands to the TORQUE queue. When the script is submitted, it is added to the queue and executed by the available compute nodes in the cluster according to a set of specified rules and priorities.

qsub Command Examples

1. Submit a script with default settings (depends on TORQUE settings):

# qsub script.sh

2. Submit a script with a specified wallclock runtime limit of 1 hour, 2 minutes and 3 seconds:

# qsub -l walltime=1:2:3 script.sh

3. Submit a script that is executed on 2 nodes using 4 cores per node:

# qsub -l nodes=2:ppn=4 script.sh

4. Submit a script to a specific queue. Note that different queues can have different maximum and minimum runtime limits:

# qsub -q queue_name script.sh

Summary

It is important to note that qsub is just one component of the larger TORQUE system, and requires a properly configured TORQUE installation in order to function. Additionally, submitting jobs to a TORQUE queue requires some knowledge of cluster computing and batch job management.

Overall, qsub is a powerful tool for submitting batch jobs to a cluster or network of computers, and is widely used in scientific computing and other applications that require distributed computing resources.

Filed Under: Linux

Some more articles you might also be interested in …

  1. Difference between the Java heap and native C heap
  2. How to add words to the dictionary cracklib uses for validating passwords against known dictionary words
  3. insmod: command not found
  4. jpegtran Command Examples in Linux
  5. i3lock: command not found
  6. Understanding /etc/xinetd.conf file in Linux
  7. Adding Static Routes On Various *NIX (Linux,AIX,HP-UX)
  8. Input/Output Errors During XFS Filesystem Access In CentOS/RHEL 7
  9. mocp Command Examples in Linux
  10. Linux “seq” Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • dig: DNS lookup utility
  • diffstat: Create a histogram from the output of the diff command
  • diffoscope: Compare files, archives, and directories
  • diff-pdf: Tool for comparing two PDFs

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright