Optimizing O2 Jobs
Optimizing O2 Jobs
Confluence Article
You and other O2 users have a responsibility to optimize jobs submitted to O2. Optimized jobs minimize your fair-share consumption, increase throughput, reduce cost (when applicable), and facilitate fair allocation of computational resources across our research community.
Familiarize yourself with O2 basics before learning how to optimize jobs.
Learn more about fair-share in Job Priority.
Default settings and non-optimized impacts
Memory
Slurm scheduler allocates 1000 MiB of RAM by default for each requested CPU core.
Custom amounts of memory can be requested using the flag –mem= and should be done with great caution. Requesting more memory than needed will:
penalize your fair-share,
decrease throughput,
increase cost (when applicable), and
prevent other users’ jobs from starting.
CPU cores
Slurm scheduler allocates 1 CPU core by default.
Multiple CPU cores can be requested when submitting jobs and should be done with great caution. Requesting more CPU cores than needed will:
penalize your fair-share,
increase cost (when applicable),
prevent other users’ jobs from starting, and
result in additional cores remaining idle with no improvement on the job’s run speed.
Wall-time
Select wall-time with care.
Requesting more wall-time than needed will decrease throughput. The maximum value is almost never needed.
For very small jobs, combine them into larger batches and request 15 minutes for each job. Learn more about batching small jobs together as a big job.
Optimization strategies
The best predictor for future job requirements are past job utilizations. We recommend either reviewing the summary report Research Computing emails weekly, or generating a custom report. Learn more about generating a custom report at Get information about current and past jobs.
For new users, we recommend starting with the Slurm scheduler defaults and increasing requested allocations after jobs fail. For information on default scripts, visit our articles on srun and sbatch scripts.
When on the fence, reasonable memory and wall-time buffers are encouraged as exact memory or run time is difficult to predict.
Optimization perks
Consistent optimization of O2 jobs earns you:
minimized drawdown on your fair-share,
up to 30% extra fair-share, and
benefits our research community with:
improved throughput,
reduced costs (when applicable), and
fair allocation of computational resources.