Submitting jobs to application profiles

About this task

Use the -app option of bsub to specify an application profile for the job.

Procedure

Run bsub -app to submit jobs to an application profile.
bsub -app fluent -q overnight myjob

LSF rejects the job if the specified application profile does not exist.

Modifying the application profile associated with a job

Before you begin

You can only modify the application profile for pending jobs.

Procedure

Run bmod -app application_profile_name to modify the application profile of the job.

The -appn option dissociates the specified job from its application profile. If the application profile does not exist, the job is not modified

Example

bmod -app fluent 2308

Associates job 2308 with the application profile fluent.

bmod -appn 2308

Dissociates job 2308 from the application profile fluent.

Controlling jobs associated with application profiles

About this task

bstop, bresume, and bkill operate on jobs associated with the specified application profile. You must specify an existing application profile. If job_ID or 0 is not specified, only the most recently submitted qualifying job is operated on.

Procedure

  1. Run bstop -app to suspend jobs in an application profile.
    bstop -app fluent 2280

    Suspends job 2280 associated with the application profile fluent.

    bstop -app fluent 0

    Suspends all jobs that are associated with the application profile fluent.

  2. Run bresume -app to resume jobs in an application profile.
    bresume -app fluent 2280

    Resumes job 2280 associated with the application profile fluent.

  3. Run bkill -app to kill jobs in an application profile.
    bkill -app fluent

    Kills the most recently submitted job that is associated with the application profile fluent for the current user.

    bkill -app fluent 0

    Kills all jobs that are associated with the application profile fluent for the current user.