Page tree
Skip to end of metadata
Go to start of metadata


New HPC cluster ukko2 is now ready for production. To be able to use the cluster, you need to either

  • be member of CS staff or
  • belong to the IDM group grp-cs-ukko2

Remote connection

Connections are only allowed from the domain, however using VPN or Eduroam, is not sufficient. To access ukko2 outside of the domain (e.g. home), add following to your ~/.ssh/config

   ProxyCommand ssh -W %h:%p
Note: with OpenSSH versions > 7.3, you can substitute the ProxyCommand with more human readable line: ProxyJump

The login node is only meant for batch job management, so you should not execute any jobs on it. To access the node:

ssh <username>

Batch scheduling system is the most prominent difference between ukko1 and ukko2. Instead of logging into computing node and executing jobs there interactively, users now log in to a login node and submit the jobs via batch scheduling system. Batch system increases the usability of the system by considering job resource requests and scheduling jobs to available resources.

Another change is a Module System. Software packages, compiler environments etc are handled by modules. This allows user to load, unload or change between environments flexibly.

Ukko 2 Nodes

  • Single login node ukko2 serves logins, compiler environments and all batch scheduling functions
  • 31 regular compute nodes (ukko-02  - ukko-32):   28 cores, 2 threads and  256 GB RAM. 
  • big memory  nodes (ukko2-pekka, ukko2-paavo):  96 cores, 2 threads and 3 TB RAM.  
  • GPU nodes (ukko2-g01, ukko2-g02) :  28 cores, 2 threads, 512 GB RAM and 4 Tesla P100 GPU cards. 

I/O, disks and filesystems

The home directory is the same as it is in the old ukko: all user files will be available on the new cluster. User can also access the files in ukko from the department computers using the path /cs/work/home/username.

Queuing system

Jobs are managed with the SLURM batch scheduling system and runtime environment is managed as modules that will allow for choosing the correct compilers, libraries and tools. The jobs are started from the ukko2 login node (

There are five production queues and one short queue to test jobs. Some queues overlap others for better system utilisation:

Queue name

Wall Time limit


Memory per core


short24h10608GB - 32GB
long14 days8688GB
extralong60 days288GBSingle node
bigmem7 days19232GBTwo nodes
gpu7 days5618GBHave to reserve with #SBATCH -p gpu
test1h1128GBHave to reserve with #SBATCH -p test

Creating a Batch job

Simplest way to submit job into the system is to do it as a simple serial job. Following example is requesting 1 core and 100M of memory for 10 minutes and placement in the a test queue. At the end of the script, srun command is used to start the program.

Note that batch script needs to start with shebang (#!/bin/bash) and the batch parameters have to be set in the script before the actual program.

Time conventions

sbatch syntax for time may not be obvious. Normally times are set as DD-hh:mm:ss where DD=days, hh=hours, mm=minutes, and ss=seconds. However, you can also use 2-0 to represent 2 days, while 10:00 would indicate 10 minutes.

#SBATCH --job-name=test
#SBATCH -o result.txt
#SBATCH -p test
#SBATCH -c 1
#SBATCH -t 10:00
#SBATCH --mem-per-cpu=100

srun hostname
srun sleep 60

For more examples, please see the bottom of the CSC's documentation page:

Queue names

CSC queue names or queue limits do not apply.

Following command submits the test.job into the system and , and the scheduler takes care of the job placement (sbatch accepts additional options on the command line):

sbatch test.job

Serial - Consumable resources

Below are some of the most common batch job options for serial jobs. If no values are given, system defaults are used. These values are used to determine the job priority.

Job Wall Time limit:

#SBATCH -t <Wall Time limit>

Job CPU count equals to the cores:

#SBATCH -c <CPU count>

Job memory limit (Please Note: memory reservation is per core):

#SBATCH --mem-per-cpu=<MB>

Further job control

Show queue information:

sinfo -l

If you want to cancel your job:

scancel   <jobID>   

To check the status of your jobs that are in the queue:

squeue -l -u yourusername

For information about a job that is running:

scontrol show jobid -dd <jobID>

For information about a completed job's efficiency. Output of seff is automatically included in the end of job mail notifications, if notifications are set to be sent in the batch script.


Note that seff produces meaningful output only from successfully completed job.
seff <jobID>

Job control summary of less common commands:

 Command Description
sacctDisplays accounting data for all jobs.
scontrol View SLURM configuration and state.
sjstat  Display statistics of jobs under control of SLURM (combines data from sinfo, squeue and scontrol).
sprioDisplay the priorities of the pending jobs. Jobs with higher priotities are launched first.
smap Graphically view information about SLURM jobs, partitions, and set configurations parameters.

Page for additional information if you prefer PBS-like job control. 

Serial or Parallel Job?

Serial job is any program that runs on a single machine. In case of Ukko2, it means a program running on a single core.

Parallel job is composed of multiple processes which run on multiple machines. Simplest case would be a job that uses two cpu's and sets of related processes. Processes talk to each other through a medium shared between the cpu's, like a local memory space.  

More about parallel processing, and related options, please see page about Parallel Processing

Testing and Development

Before running jobs on the production queues, resource requirements, and in case of MPI jobs, scalability should be tested. 1h test queue is available for this purpose. "-p" parameter is mandatory for test jobs.


Non-GPU Production jobs do not require -p option. Leaving it out allows greater flexibility for a job placement.
#SBATCH -p test

When submitting job for test queue, following parameters could be set in the batch -file. Mail parameters can be used with any jobs, they are not limited to test:

#SBATCH --job-name=test                  // Job name to be displayed in queue
#SBATCH --output=foobar.out              // Job output at the completion
#SBATCH -p test                          // Request test partition
#SBATCH -c 1                             // Request single core
#SBATCH -e foobar.err                    // Define error file
#SBATCH --mail-type=END                  // Defining END of job mail notification
#SBATCH --mail-user=user@address.mail    // mail recipient

srun hostname                            // commands to be run
srun sleep 60

Setting up batch job e-mail notifications

You can set up e-mail notifications for batch job. If set, changes in the job status will be sent to specified user. Default is the user who submits the job.

E-mail Notification

Job END and ALL -notifications include the seff output. It is very useful for finding out the actual job resource utilisation.

Most commonly chosen mail options are: NONE, BEGIN, END, FAIL or ALL. To set the option, following line is needed in the batch script. Multiple options can be set as comma separated list:

#SBATCH --mail-type=<option>,<option>

User may also specify mail address other than default:

#SBATCH --mail-user=<mail@address>

Interactive use

There is no need for direct access to node to start interactive session. Slurm allows interactive sessions to be started with srun. After entering the srun command, interactive job request is sent to the normal queue to wait for resources to become available. Once resources are available the session starts on a compute node, and you are put into the directory from which you ran the launched the session. You can then run commands.

Environment you get on compute node is determined by:

  1. The environment as set in your session from which you launch the srun command.
  2. Any extra variables set by Slurm
  3. Settings from your .bashrc file

Example of starting 1 core, 1 task interactive session with bash -shell. If values are not set, they are inherited from the system or queue defaults.

srun -c 1 --ntasks-per-node=1 --pty bash

To show slurm variables when session starts:

export | grep SLURM

Interactive node availability

At this time, there are no dedicated nodes  for pure interactive use. Wait time may be long if requesting large amounts of memory or CPU's.

Advance Reservations

Slurm supports Advance Reservations. You or your group may ask for a specific resources for a dedicated time slot. However, because Advance Reservations are not ordinary user option to choose, specific request needs to be submitted to to enable the reservation. Advance Reservations are disruptive to the system operation (jobs need to be drained from the system to enable empty slot at the given time) and the resource requirements have to be justified.

Actual Resource Utilisation

Slurm features simple utility to provide job utilisation details from any job that has completed. Using this utility helps to determine actual resource needs, of the job for future reference:

seff <completed job ID>

Resource Requests

Accurate resource requests (memory, CPU and time) will expedite the execution of your jobs - and lead to better system utilisation. Less you request, more expedient execution.

Job Accounting Data 

Slurm has powerful accounting feature with myriad options to choose from. Below a line featuring some of the more useful details:

sacct -oJobID,JobName,ExitCode,NNodes,NCPUS,MaxRSS,Elapsed,End

Provides easy to read list formatted output, where fields are:

JobID: Job identification number

JobName: Job name given in the Slurm batch script

ExitCode: Exit code once job was terminated

NNodes: Node count

NCPUS: CPU's (Core) reserved by the job

MaxRSS: Memory peak usage during job execution, returns value when job has finished. This value can be used to adjust the requested memory value in the batch script accordingly.

Elapsed: Time batch job was in execution

End: End time of batch job

Other examples:

Lists details when JobID is known:

sacct -j <jobID> -oJobID,JobName,ExitCode,NNodes,NCPUS,MaxRSS,Elapsed,End

Jobs listed by UserID:

sacct -u <userID> -oJobID,JobName,ExitCode,NNodes,NCPUS,MaxRSS,Elapsed,End

sacct man page

Comprehensive accounting options, and parameters can be found from the accounting man page.

Scheduling Policy

Job execution priorities depend upon user resource requests. If no resource limits are requested in the batch script, then system and queue defaults are used. Job priority and scheduling decisions are based on available system resources. Fair Share is applied to allocate everyone near equal share of the system. Below a list of resources considered with most "expensive" resource on the top:

  1. GPU requested
  2. Memory requested
  3. Wall Time requested
  4. CPU's requested

System Defaults

System defaults: Job placement in short queue, allocation of 512MB of memory per CPU (core), 1 hour of Wall Time and 1 CPU (core). Defaults can be changed by user specified resource requests in the job batch script.

Further instructions

Technical Specifications of Ukko2

CSC's Taito cluster's documentation is quite useful for Ukko 2 as well.

Check specially the SLURM instructions.

  • No labels