Skip to content

Start interactive session

Learning outcomes

  • Practice using the UPPMAX documentation
  • Understand what an interactive session is
  • Can start an interactive session
  • Can conclude being on a login or compute node
  • Can end an interactive session
For teachers

Teaching goals are:

  • Learners have practiced using the UPPMAX documentation
  • Learners understand what an interactive session is
  • Learners can start an interactive session
  • Learners can conclude being on a login or compute node
  • Learners can end an interactive session

Lesson plan:

gantt
  title Start an interactive session
  dateFormat X
  axisFormat %s
  section First hour
  Prior : prior, 0, 5s
  Present: present, after prior, 2s
  %% It took me 7 mins, here I do that time x2
  Challenge: crit, challenge, after present, 14s
  %% Here I use the same time it took me to give feedback
  Feedback: feedback, after challenge, 7s

Prior questions:

  • What is an interactive session?
  • Why use an interactive session?
  • When scheduling an interactive session, what does the job scheduler need to know?
  • How to stop an interactive session?

Feedback questions:

  • Why use an interactive session?
  • How do you see that you are in an interactive session?

Why?

Login nodes are used interactively for light processes, e.g. submitting a job. However, sometimes one needs to do harder things interactively, e.g. running an IDE.

In this session, we learn how to start an interactive session.

Exercises

Need a video?

See this YouTube video that shows the solution of these exercises

Pelle works the same a Rackham in these contexts.

Exercise 1: start and end an interactive session on Pelle

Go to the UPPMAX documentation at https://docs.uppmax.uu.se, then answer these questions:

  • Find the page on how to start an interactive session on Pelle
Answer

It can be found at https://docs.uppmax.uu.se/cluster_guides/start_interactive_session_on_pelle/

  • Start an interactive session on Pelle that lasts one hour
Answer

You can do so ike this:

interactive -A uppmax2025-2-262 -t 1:00:00
  • How do you know you are no longer on the login node?
Answer

There are multiple ways. The easiest is to look at the prompt: it has changed from @pelle[1-4] to @r[1-5000], which means you are on a Pelle compute node

  • Stop the interactive session
Answer

You can do so like this:

exit
  • How do you know you are on the login node again?
Answer

There are multiple ways. The easiest is to look at the prompt: it has changed from @r[1-5000] to @pelle[1-4], which means you are on a Pelle login node

  • (optional) Start an interactive session on Pelle that lasts one hour and uses two cores. This is recommended when using RStudio on Pelle
Answer

You can do so ike this:

interactive -A uppmax2025-2-262 -t 1:00:00 -n 2