Hellbender Usage - Best Practices
Usage advice varies widely depending on your workflow and there isn't a one size fits all approach to using Hellbender. Our intent is describe the most general aspects to consider when you are running your workflow, and you can consider what else might optimize your workflow.
The most general things to consider:
-
Never give your Hellbender credentials to someone else and never use someone else's credentials to log in to Hellbender. Sharing credentials is a violation of the University of Missouri 110.005 Acceptable Use Policy. Violations will lead to a permanent ban on using Hellbender for all parties involved.
-
Do not run on a login node; login node should be used to submit jobs, modify text files or do light copying or file manipulations. This can occur unintentionally by connecting to Hellbender from your local machine’s Visual Studio Code. This will launch Visual Studio Code on the login node of the Hellbender. To use Visual Studio Code follow our instructions on how to do it properly using our Open On Demand web service Article - How-To: Access Hellbender O...
-
Specify software versions. Always specify explicitly the version of the software module that you are going to use.
For example, there are several versions of Matlab installed on Hellbender.

If you just module load matlab the module that will get loaded is the one that is marked with a (D) - meaning default. That means that the module matlab/matlab-R2024a will be loaded in the case above. Even if that is the Matlab version that you need – keep in mind that the default module might change in the future, and you might not remember which version you used. The best practice is to always load module with its full explicit name so that in the future anyone can reproduce your workflow.
So, in this case it would be:
module load matlab/matlab-R2024a
This is particularly important in your job submission scripts.
-
Store data in your data folder. Be sure to keep your data mostly in your data folder rather than in your home directory. Your home can hold only 50GB while your data folder can hold 500 GB of data. If you have lab storage, use it if you need more than 500 GB data.
If you are making conda virtual environments make sure that your .condarc file (notice the leading dot “.” In the file name) is setup so that the environments get created in your data folder rather than in your home directory. This is the default option, so ensure that you modify your .condarc file before making your first conda environment. To learn more, see articles on conda environments here: Article - Informational: Index of Art...
-
Back up your data. THERE IS NO BACKUP OF YOUR DATA! It is imperative that you always copy important files to your local machine rather than rely on it being stored on Hellbender. Even though data losses due to hardware issues are not likely, accidentally deleting important data can happen. In principle, there is no way to restore that data. So, be careful and backup your data often!
-
Request a reasonable number of resources for your workflow. This includes a number of nodes, CPUs, GPUs, memory, and time limit for your jobs.
To learn more about matching your workflow to the resources available, go to our Article Content - How To: How do I model the....
-
Test your workflow interactively before you make a submit script.
To learn more about how and why to get an interactive session on Hellbender go to our Article - How-To: Access Hellbender O...
-
Use checkpointing when possible in your workflow. Below is an example of checkpoints in your workflow:
-
You are running a molecular dynamics simulation such as LAMMPS– if the code enables you to save the current state of the simulation after defined number of molecular dynamics steps from which you can continue that simulation as a new job. This option might be crucial if your simulation cannot finish within the 2 days time limit of the Hellbender cluster.
-
Using the checkpoint option could enable you to use requeue/gpu_requeue partition much more efficiently. The nature of the requeue partitions is that the jobs submitted by investors can preempt the jobs running by non-investors in which case the non-investors job gets terminated and automatically resubmitted. However, without checkpointing if your job ran for 12 hours and did not finish the requeue will cause it to lose all the progress. Your submission script itself should contain a check code that looks for a checkpoint file, and if it finds it - it starts the calculation from the checkpoint file rather than from scratch. Using checkpointing, your job in the requeue partitions will come to an end with you only submitting it once and only losing up to 2 hours of work when it gets requeued.
-
Transfer data using DTN or Globus. When you are transferring large amounts of data to/from Hellbender, do it either through our Globus service or using a data transfer node (not the login node!) The DTN node address is: hellbender-dtn-p1.rnet.missouri.edu. When transferring data from one location on Hellbender to another within Hellbender, you can use an interactive job or the DTN.
-
Submit your jobs to gpu or gpu_requeue partitions only if your job needs a gpu card.
-
Symmetrical distribution of CPUs. It is a good idea to keep your CPUs distributed symmetrically across the nodes that you are requesting – some MPI codes can handle CPUs distributed almost randomly across the nodes but most MPI codes expect to have same number of CPUs on each node involved in the calculation – which additionally enables use of OpenMP approach on each node. All that combined leads to the most efficient code execution.
To do this use the following options in your sbatch script
#SBATCH --N 4
#SBATCH --ntasks-per-node 8
#SBATCH --mem=20G
#SBATCH --cpus-per-task=8
The --N option defines the number of nodes, --ntasks-per-node defines how many MPI processes will be started per node, --mem defines the memory amount per node (if you want maximum amount of memory on the node specify 0G as the value), and finally if you know that the code can use OpenMP approach you can define the --cpus-per-task which will define the number of threads for each MPI task on a node – in this case you would actually be requesting 64 CPU cores per node (8 tasks per node - times 8 cpus per task = 64 CPU cores per node).
To use those parameters (values) in the rest of your script without having hardcoded numbers you should use $SLURM_NTASKS for starting the mpirun or orterun command
mpirun -np $SLURM_NTASKS your_mpi_exec other_parameters
$SLURM_NTASKS in the example above will be 4x8=32 (4 nodes times 8 ntasks per node). Typically to use OpenMP threads you will have to define a variable before running your mpirun command – that would be:
export OMP_NUM_THREADS= $SLURM_CPUS_PER_TASK
Where $SLURM_CPUS_PER_TASK corresponds to parameter --cpus-per-task=8 from the above example submission script. Always try to use slurm job environment variables in your scripts – such as $SLURM_NTASKS and $SLURM_CPUS_PER_TASK rather than hardcoding the numbers.
-
If you need to install software,there are a few options. You can try doing it on your own or contact us to install it as a module. Installing software on your own gives you lots of flexibility in what and how you do things in your workflow.
In order of difficulty several options are available
-
Getting a precompiled binary of the code - if available.
-
Creating a virtual conda environment (very useful for pytorch and r-studio workflows).
-
Getting a singularity container image (typically from the existing Docker image from the Docker hub).
-
Getting the source code of the software (typically from the github page of the project) and compiling the code from the source.
-
Avoid keeping data on the cluster that you do not need for immediate calculations.
-
Be considerate of the other users of the cluster when you are planning your workflow, especially if you are the user submitting hundreds or thousands of jobs. Consider how it might affect the scheduler or any other shared resource of the cluster and reduce impact to other users.
-
Do not use spaces in the names of your files or directories. Even though space character is allowed in Linux directories and file names – using it is not a good practice because it can lead to all sorts of unexpected problems, especially when dealing with bash scripts or automation of the workflow. A good substitute for the space is an underscore character “_” so that your file is named something like my_file_name_without_spaces.txt
-
If your application generates lots of small files, please tar or cleanup when they are no longer in use. Excessive amounts of small files hinder filesystem performance
-
The list is not exhaustive and will most likely be extended in the future.
For Additional Assistance
For additional assistance, please join the Research Facilitators during Office Hours. Article Content - Getting Hellbender/RDE Help