Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

In Unix, how should I submit CPU-intensive jobs?

Several mechanisms are available for handling large jobs in Unix, including reducing the priority of a process, running a process in the background, and, on some systems, submitting batch jobs.

On this page:


Batch jobs

For more information about the at and batch commands, see In Unix, what are at and batch, and how do I use them to submit non-interactive job requests?

For information about using LoadLeveler on Big Red at Indiana University, see Getting started on Big Red.

For information about using TORQUE (also called PBS) on Quarry at IU, see What is TORQUE/PBS?

Changing a job's priority and running a job in the background

To immediately execute a process at a lower priority, use the nice command. For example, to run a program called a.out at lower priority, at the Unix shell prompt, enter:

nice a.out

To let the job run in the background (so that you can keep working interactively), add  &  (an ampersand) to the end of the command line:

nice a.out &

When the job is complete, you will see something like the following:

[1] Done ls (csh/tcsh)

For more information on the nice command, see the manual (man) page, which you can access by entering:

man nice

For more information on how to work with background processes, see the man page for your shell (e.g., csh, tcsh, ksh, bash).

At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?

This is document abcz in domain all.
Last modified on June 30, 2009.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.