Best practices for job submission: Difference between revisions
Jump to navigation
Jump to search
223 bytes removed
, 2 years ago
|
|
Line 9: |
Line 9: |
| =Best practice tips= | | =Best practice tips= |
|
| |
|
| For your first jobs on the cluster, it's understandably difficult to estimate how much time or memory may be needed for your job to carry out a particular simulation or analysis. The best approach in this case is to begin by submitting a few relatively small jobs, asking for a fairly standard amount of memory (<tt>#SBATCH --mem-per-cpu=2G</tt>) and time, for example one or two hours. Ideally you should already know what the answer will be in these test jobs, allowing you to verify that the software is running correctly on the cluster. If the job ends before the computation finished, you can increase the duration by doubling it until the job's duration is sufficient. A similar method can be applied for the memory: if your job ends with a message about an "OOM event" this means it ran out of memory (OOM), so try doubling the memory you've requested and see if this is enough. By means of these test jobs, you should gain some familiarity with how long certain analyses require on the cluster and how much memory is needed, so that for more realistic jobs you'll be able to make an intelligent estimate.
| | * The best approach is to begin by submitting a few relatively small test jobs, asking for a fairly standard amount of memory (<tt>#SBATCH --mem-per-cpu=2G</tt>) and time, for example one or two hours. |
| | ** Ideally you should already know what the answer will be in these test jobs, allowing you to verify that the software is running correctly on the cluster. |
| | ** If the job ends before the computation finished, you can increase the duration by doubling it until the job's duration is sufficient. |
| | ** If your job ends with a message about an "OOM event" this means it ran out of memory (OOM), so try doubling the memory you've requested and see if this is enough. |
| | |
| | By means of these test jobs, you should gain some familiarity with how long certain analyses require on the cluster and how much memory is needed, so that for more realistic jobs you'll be able to make an intelligent estimate. |
|
| |
|
| ==Job duration== | | ==Job duration== |