Study tips and problem solving
How to use the material and how to solve common
problems.
Using these materials
- The material is organized by topics of increasing complexity
- Feel free to jump if you know the basics already
- Read the slides / watch the videos first
- Complete the tutorials to make sure you’ve got the steps right
- Try out one or more of the exercises to verify your new skills
- If you get stuck, consult Docs CSC
linked to the topic slides
- Press
shift to open links with additional information
in a new window
- Left-click on slides and you can then navigate them with the arrow
keys
General problem solving
- Go to docs.csc.fi and check in the
right section in the navigation
- Try the FAQ
- Try the search function in CSC Docs or search the web
- Type a keyword in CSC Docs, copy/paste the error message in your
favorite search engine
- Send an email to servicedesk@csc.fi containing:
Running a new application in Roihu 1/2
- If it comes with tutorials, do at least one
- This will likely be the fastest way forward
- Naturally, read the manual/instructions
- Check if there’s a page about it in Docs CSC
- If there is, use the batch script example from there
- Otherwise, use a general
template
- Try first running interactively (not on a login
node)
- Perhaps it is easier to find the correct command line options
- Use the
top command to get rough estimate of memory
use, etc.
- If developers provide some test or example data, run it first and
make sure results are correct
Running a new application in Roihu 2/2
- Use the test and gputest queues to check that your
batch job script works
- Limits: 15 min, 2 nodes
- Job turnaround usually very fast even if machine is “full”
- Can be useful to spot typos, missing files, etc. before
submitting a job that will idle in the queue
- Before large runs, it’s a good idea to do a smaller trial run
- Check that results are as expected
- Check the resource usage after the test run and adjust
accordingly
- How many cores to allocate?
What if your job fails? Troubleshooting checklist 1/2
- Did the job run out of time or
memory?
- Did the job actually use the resources you specified?
- Problems in the batch job script can cause parameters to be ignored
and default values are used instead
- Did it fail immediately or did it run for some time?
- Jobs failing immediately are often due to something simple like
typos, missing inputs, bad parameters, etc.
- Did you install the application and submit it from the correct login
node?
- Roihu has dedicated login nodes for the CPU and GPU partitions.
Software built on the GPU login cannot be run on the CPU side, and
vice versa.
What if your job fails? Troubleshooting checklist 2/2
- Check the error file captured by the batch job script
- Check any other error files and logs your program may have
produced
- Error messages can sometimes be long, cryptic and a bit
intimidating, but …
- Try skimming through them and see if you can spot something
“human-readable”
- Often you can spot the actual problem easily if you go through the
whole message. Something like “required input file so-and-so missing” or
“parameter X out of range”, etc.
- Consult the FAQ
on common Slurm issues in Docs CSC
Document your discoveries
- When you’ve successfully solved an issue, make it easy to rediscover
it
- Set up a file in your
$HOME and add your commands there
- It’s quick to copy/paste from the screen to the end of the file
cat >> $HOME/vault
<copy/paste>
Ctrl-C
- … and finding them with
grep later is quick
(grep them $HOME/vault)
bash history is nice, but it keeps also the commands
that didn’t work…
- Note, don’t overwrite your vault file (e.g., with
cat > $HOME/vault)
- Store scripts in
$HOME/bin and take backups