-rusage

Displays jobs requesting the resources specified by the filter.

Categories

filter

Synopsis

bjobs -rusage "resource_name[,resource_name,. . .]"

Conflicting options

Can be used with other state or filter options (for example, -p or -r). Cannot be used with the -A option.

Description

Filters the results and shows only jobs that request the resource(s) specified.

If multiple resources are specified in the filter (separated by a comma with no spaces), the "AND" relationship applies.

If a job is submitted with multiple alternative resources in different sections (divided with "||"), each section will be considered separately for rusage. For example:

bsub -R "{rusage[resource1=1]} || {rusage[resource2=2]}"

Or

bsub -R "{rusage[resource1=1 || resource2=2]}"

In this case, bjobs -rusage "resource1" or bjobs -rusage "resource2" will return the job, but bjobs -rusage "resource1,resource2" will not return the job.

Examples

bjobs -rusage "resource1" Displays all jobs that are requesting resource1.

bjobs -rusage "resource1" -p Displays all pending jobs that are requesting resource1.

bjobs -r -q normal -rusage "resource1,resourceA" Displays all running jobs in the queue "normal" that are requesting resource1 and resourceA.