IDCS Cholesky cluster
IDCS Cholesky cluster¶
Info
The Cholesky cluster is currently being deployed. The IDCS team is working closely with StackHPC ⧉ to make the cluster available as soon as possible. Initially, a pre-production phase is scheduled for early October and will be accessible to computational engineers from IDCS’s partner laboratories. You will be notified very soon when the cluster goes live.
Overview¶
cholesky is the compute cluster operated by the IDCS service unit of École polytechnique. Computations are run through the SLURM workload manager.
The cluster at a glance¶
2,720 CPU cores · 12 NVIDIA A100 GPUs · InfiniBand HDR network · 338 TB of NVMe flash storage
CPU nodes: 68 Dell PowerEdge C6420 servers, dual-socket Intel Xeon Gold 6230 (2 × 20 cores, 2.1 GHz)
| Type | Nodes | Cores per node | Memory per node | Partitions |
|---|---|---|---|---|
| Standard | 54 | 40 | 192 GB | parallel, debug |
| High memory | 14 | 40 | 384 GB | shared |
GPU nodes
| Node | Server | Processor | GPUs | Memory | Partitions |
|---|---|---|---|---|---|
cholesky-gpu03 |
Dell PowerEdge R740xa | Intel Xeon Gold 6330, 2 × 28 cores, 2.0 GHz | 4 × NVIDIA A100 PCIe 40 GB | 192 GB | a100, interactive |
cholesky-gpu04 |
Dell PowerEdge R740xa | Intel Xeon Gold 6330, 2 × 28 cores, 2.0 GHz | 4 × NVIDIA A100 PCIe 40 GB | 192 GB | a100, interactive |
cholesky-gpu05 |
Gigabyte G242-Z12 | AMD EPYC 7643, 48 cores, 2.3 GHz | 4 × NVIDIA A100 PCIe 80 GB, 1 of which split into 7 MIG slices of 10 GB | 512 GB | a100, interactive |
Storage
| Space | System | Capacity |
|---|---|---|
| WORK (scratch) and PROJECT | VAST Data DF-3015-v2, NVMe flash | 338 TB |
| HOME | NetApp FAS2820 | 3 TB |
Login nodes
| Node | Address |
|---|---|
| login01 | login01.cholesky.hpc.plateau-de-saclay.eu |
| login02 | login02.cholesky.hpc.plateau-de-saclay.eu |
Note
Memory figures are installed memory; part of it is reserved for the system (see Memory).
Getting access¶
Access to the cluster is not open by default: it must be requested beforehand, as part of a project.
- The team or project leader (PI, Principal Investigator) submits a project request on the dari.idcs.polytechnique.fr portal.
- Once the project is approved, its members receive their accounts. Compute hours are charged to the project (SLURM account).
- Each project member adds their SSH public key to their profile on the dari.idcs.polytechnique.fr portal. Login to the cluster is by key only: without a key on file, you cannot log in.
Creating an SSH key
On your own computer, if you do not have a key yet:
ssh-keygen -t ed25519 # protect the key with a passphrase
cat ~/.ssh/id_ed25519.pub # public key to paste into your DARI profile
Never share the private key (~/.ssh/id_ed25519, without .pub).
Note
Users cannot request access on their own: the request always goes through the PI of their team or project.
Logging in¶
Your username (login) has the form firstname.lastname, for example jane.doe. Two login nodes are available; use either one:
ssh -l firstname.lastname login01.cholesky.hpc.plateau-de-saclay.eu
ssh -l firstname.lastname login02.cholesky.hpc.plateau-de-saclay.eu
Tip
To shorten the command, add the following to ~/.ssh/config on your computer:
Host cholesky
HostName login01.cholesky.hpc.plateau-de-saclay.eu
User firstname.lastname
then log in with ssh cholesky.
Storage and work space¶
Storage spaces are served by two systems:
| Space | Storage |
|---|---|
HOME: $HOME (home directory) |
NetApp FAS2820 (3 TB) |
WORK: $WORKDIR = /mnt/scratch/work/$USER |
VAST Data DF-3015-v2: 338 TB of NVMe flash (6.4 TB drives), fast storage |
PROJECT: /mnt/scratch/project/<slurm_account> (one directory per project) |
VAST Data DF-3015-v2 (same storage as WORK) |
There is no environment variable for the PROJECT space: a user can belong to several SLURM accounts, and therefore to several projects. Use the full path of the relevant project:
sacctmgr show assoc user=$USER format=account%30 -n # your SLURM accounts (= your projects)
cd /mnt/scratch/project/my_project
The $WORKDIR environment variable points to your work space on the scratch file system:
WORKDIR=/mnt/scratch/work/$USER
Use it for computation data, large files and job results, rather than your home directory. It also holds Enroot's cache and data ($WORKDIR/enroot/, see Containers).
Backups
The WORK ($WORKDIR) and PROJECT spaces are not backed up, unlike home directories ($HOME). Copy your code, scripts and important results to your $HOME or to other storage.
The scratch is not purged automatically either: regularly delete files you no longer need (intermediate results, container images, Enroot cache).
Quotas¶
Your home directory ($HOME) and work space ($WORKDIR) are subject to quotas, on both volume and number of files:
| Space | Quota |
|---|---|
$HOME |
10 GB |
$WORKDIR |
100 GB |
To check your usage:
quota -s
Disk quotas for user jane.doe (uid 20001):
Filesystem space quota limit grace files quota limit grace
10.43.2.1:/home 28K 10240M 15360M 17 250k 300k
10.38.0.3:/cholesky/scratch/work
26174M 85831M 95368M 70 40000 50000
| Column | Meaning |
|---|---|
space / files |
used volume and number of files |
quota |
soft limit: it can be exceeded temporarily, during the grace period |
limit |
hard limit: no writes possible beyond it |
grace |
time left to get back under the soft limit, shown when it is exceeded |
The first line is $HOME, the second $WORKDIR (/cholesky/scratch/work).
Number of files
The number of files is limited, especially in $WORKDIR. Avoid very large numbers of small files (bundle them in a tar archive or a format such as HDF5). Containers extracted by Enroot count too: an image such as PyTorch contains many files.
Essential rules¶
- Login nodes are for editing, transferring files and submitting jobs. Compiling is done in an interactive session on the
debugpartition, and computations are always run through SLURM: login nodes are limited to 4 cores and 16 GB per user. - Do not SSH into a compute node unless you have a job running on it.
- Accounts are personal and must not be shared.
Terms of use
Use of the cluster is governed by terms of use, which are currently being written. They will be published in this documentation, and all users will be required to comply with them.
Quick start¶
sbatch my_job.sh # submit a job (the script contains #SBATCH -A my_project)
squeue --me # list your jobs
scancel <jobid> # cancel a job
Partitions and limits¶
Which partition should I use?¶
| Partition | Purpose | Nodes | Allocation | Max time |
|---|---|---|---|---|
parallel (default) |
MPI and MPI+OpenMP computations, jobs using one full node or more | 54 nodes with 192 GB | whole nodes (exclusive) | 24 h |
shared |
small jobs (fewer than 40 cores) and memory-intensive jobs | 14 nodes with 384 GB | per core (shared nodes) | 48 h |
debug |
interactive testing and development | same nodes as parallel |
per core | 30 min |
a100 |
GPU computing on whole A100 cards (see GPU computing) | 3 GPU nodes, 11 cards (40 and 80 GB) | per GPU | 48 h |
interactive |
GPU prototyping on MIG slices or 1 × 40 GB card | same nodes | per GPU / slice | 8 h |
Automatic routing
A job of fewer than 40 cores on a single node submitted to parallel is automatically redirected to shared. To keep a whole node, add --exclusive.
Per-user limits¶
| Partition | Cores per job | Running cores per user | Other limits |
|---|---|---|---|
parallel |
800 (20 nodes) | 800 | 20 running jobs; 1,200 cores per project (SLURM account) |
shared |
40 (1 node) | 80 | – |
debug |
80 (2 nodes) | 80 | 2 running jobs, 4 queued; batch jobs rejected |
In total, each user can have at most 500 jobs in the queue.
A job that exceeds a per-job limit is rejected at submission. A valid job that would exceed a per-user limit waits in the queue until your other jobs finish.
Memory¶
Part of each node's memory is reserved for the operating system and buffers, so the memory available to jobs is lower than the installed memory.
| Partition | Default memory per core | Maximum per core | Maximum per node |
|---|---|---|---|
parallel |
4.5 GB | – | ≈ 182 GB (--mem=182G) out of 192 GB installed |
shared |
9 GB | 9.1 GB | ≈ 355 GB (--mem=355G) out of 384 GB installed |
debug |
4.5 GB | 4.6 GB | ≈ 179 GB out of 192 GB installed |
Without --mem, a job gets the default memory × the number of allocated cores (for example ≈ 180 GB for a whole parallel node).
Memory and cores
On shared and debug, requesting more memory than the per-core maximum automatically increases the number of cores allocated and counted. For example, --mem=180G on shared reserves 21 cores (180 GB ÷ 9.1 GB).
Priority¶
Job order depends mainly on your recent usage (fairshare): the more you have computed in recent days, the lower your priority. Large parallel jobs are favoured, and short jobs start sooner thanks to backfill: request a realistic time limit.
Submitting a job¶
A batch job is a shell script whose header (#SBATCH lines) describes the requested resources. Submit it with sbatch:
sbatch my_job.sh
SLURM account required
Every job (sbatch, salloc, srun) must explicitly specify the SLURM account of the project it is charged to, with -A (or --account). To list your accounts:
sacctmgr show assoc user=$USER format=account%30 -n
In the examples, replace my_project with your account name.
Main options¶
| Option | Purpose | Example |
|---|---|---|
-A |
SLURM account of the project (mandatory) | -A my_project |
-J |
job name | -J sim01 |
-p |
partition | -p shared |
-N |
number of nodes | -N 4 |
--ntasks-per-node |
processes (MPI ranks) per node | --ntasks-per-node=40 |
-c |
cores per process (OpenMP threads) | -c 20 |
-t |
time limit | -t 12:00:00 |
--mem |
memory per node | --mem=64G |
-o / -e |
output and error files | -o %x-%j.out |
Tip
-t matters: a time limit close to the actual run time gets your job started sooner. Without -t, the time limit is set to 1 h.
Examples¶
#!/bin/bash
#SBATCH -J mpi_job
#SBATCH -A my_project
#SBATCH -p parallel
#SBATCH -N 4
#SBATCH --ntasks-per-node=40
#SBATCH -t 12:00:00
#SBATCH -o %x-%j.out
module purge
module load openmpi
srun ./my_mpi_code
#!/bin/bash
#SBATCH -J hybrid
#SBATCH -A my_project
#SBATCH -p parallel
#SBATCH -N 4
#SBATCH --ntasks-per-node=2 # 1 MPI rank per socket
#SBATCH -c 20 # 20 threads per rank
#SBATCH -t 12:00:00
#SBATCH -o %x-%j.out
module purge
module load openmpi
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
export OMP_PROC_BIND=close
export OMP_PLACES=cores
srun --cpu-bind=cores ./my_hybrid_code
#!/bin/bash
#SBATCH -J openmp
#SBATCH -A my_project
#SBATCH -p parallel
#SBATCH -N 1
#SBATCH --exclusive
#SBATCH -c 40
#SBATCH -t 06:00:00
#SBATCH -o %x-%j.out
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
export OMP_PROC_BIND=close
export OMP_PLACES=cores
./my_openmp_code
#!/bin/bash
#SBATCH -J small
#SBATCH -A my_project
#SBATCH -p shared
#SBATCH -n 1
#SBATCH -c 8
#SBATCH --mem=64G
#SBATCH -t 24:00:00
#SBATCH -o %x-%j.out
./my_program
#!/bin/bash
#SBATCH -J param_study
#SBATCH -A my_project
#SBATCH -p shared
#SBATCH -c 4
#SBATCH -t 02:00:00
#SBATCH --array=1-100%10 # 100 tasks, at most 10 at a time
#SBATCH -o %x-%A_%a.out
./my_program --case $SLURM_ARRAY_TASK_ID
Note
Module names (openmpi, etc.) are examples: module avail lists the available modules.
Chaining jobs¶
For a computation longer than the maximum time limit, split it into steps that restart from a checkpoint (see Best practices):
jid=$(sbatch --parsable step1.sh)
sbatch --dependency=afterok:$jid step2.sh
GPU computing¶
Three GPU nodes are available:
| Node | GPUs | Feature |
|---|---|---|
cholesky-gpu03 |
4 × NVIDIA A100 40 GB | a100_40g |
cholesky-gpu04 |
4 × NVIDIA A100 40 GB | a100_40g |
cholesky-gpu05 |
4 × NVIDIA A100 80 GB, one of which is split into 7 MIG slices of 10 GB | a100_80g |
| Partition | Resource | Max time | Purpose |
|---|---|---|---|
a100 |
whole A100 card: 40 GB by default, 80 GB on request | 48 h | training, GPU computing, up to 2 cards |
interactive |
10 GB MIG slice, or a whole A100 40 GB card on request | 8 h | prototyping, notebooks, development |
Requesting a GPU
Simply specify --gres=gpu:N: the partition selects the resource. A job that does not request a GPU is rejected in these two partitions.
- On
a100, you get a 40 GB card; add--constraint=a100_80gfor an 80 GB card. - On
interactive, you get a 10 GB MIG slice; add--constraint=a100_40gfor a whole 40 GB card (only one at a time across all users).
Resources and limits¶
a100 |
interactive |
|
|---|---|---|
| Cores per GPU (default) | 9 | 1 (up to 12 with -c) |
| Memory per GPU (default) | 40 GB | 10 GB |
| Max memory | 240 GB per job (2 cards) | 32 GB per job, 64 GB per user |
| GPUs per job | 2 | 1 |
| GPUs per user | 2 (and 4 per project) | 2, including 1 whole card; 12 cores |
| Jobs per user | 2 running | 2 running, 4 queued |
Different processors
The CPU nodes, cholesky-gpu03 and cholesky-gpu04 have Intel processors, cholesky-gpu05 an AMD EPYC processor, which lacks AVX-512 instructions. A program compiled with Intel-specific options (-march=native or -march=cascadelake on an Intel node, -xHost, etc.) may stop on gpu05 with an Illegal instruction error. Compile for a common target (-march=x86-64-v3), or compile on the node that will run the code.
MIG slices
A slice has 10 GB of GPU memory and about 1/7 of the compute power of an A100. A process can use only one slice: for multi-GPU work, use a100.
Examples¶
srun -A my_project -p interactive --gres=gpu:1 -t 2:00:00 --pty bash
nvidia-smi -L # shows the allocated slice
srun -A my_project -p interactive --gres=gpu:1 --constraint=a100_40g \
-c 8 -t 4:00:00 --pty bash
#!/bin/bash
#SBATCH -J training
#SBATCH -A my_project
#SBATCH -p a100
#SBATCH --gres=gpu:1
#SBATCH -t 24:00:00
#SBATCH -o %x-%j.out
module purge
module load cuda
python train.py
#!/bin/bash
#SBATCH -J training_2gpu
#SBATCH -A my_project
#SBATCH -p a100
#SBATCH --gres=gpu:2
#SBATCH --constraint=a100_80g
#SBATCH -c 24
#SBATCH --mem=200G
#SBATCH -t 24:00:00
#SBATCH -o %x-%j.out
module purge
module load cuda
torchrun --nproc_per_node=2 train.py
Tip
Develop your code on an interactive slice before reserving a card on a100. Keep the 80 GB cards for models that do not fit in 40 GB. To compile CUDA code, open a session on interactive.
GPU hours accounting¶
GPU hours are charged to the same project as CPU hours: one hour on an A100 80 GB counts as 12 core-hours, one hour on an A100 40 GB as 9, one hour on a MIG slice as 2.
Containers (Enroot and Pyxis)¶
Jobs can run inside a container (Docker image, NGC, etc.) thanks to Enroot, which runs containers without privileges, and the SLURM plugin Pyxis, which adds --container-* options to srun. The container inherits the job's resources: allocated cores, memory and GPUs.
Note
The --container-* options are used with srun. In an sbatch script, put them on the srun line, not in the #SBATCH lines.
Required option: --container-remap-root
On cholesky, always add --container-remap-root to commands that use --container-image. Without it, the container does not start (enroot-switchroot: failed to change directory).
Inside the container you appear as root, with no real privilege on the node: this also lets you install packages (apt, apk, pip). As your home directory is not mounted, explicitly mount the directories you need with --container-mounts (see below).
Running a container¶
# Docker Hub image, interactive
srun -A my_project -p shared -c 4 -t 30 --container-remap-root --container-image=ubuntu:24.04 --pty bash
# NGC image (nvcr.io registry) on a MIG slice
srun -A my_project -p interactive --gres=gpu:1 -t 1:00:00 \
--container-remap-root --container-image=nvcr.io#nvidia/pytorch:24.05-py3 --pty bash
The registry is separated from the image name by # (nvcr.io#nvidia/pytorch:24.05-py3). Without a registry, the image is pulled from Docker Hub.
Importing an image once¶
Pulling an image for every job is slow and can hit registry download limits. Import it once in squashfs format (.sqsh), then reuse the file:
# Import inside a job (not on the login nodes): it needs CPU and memory
mkdir -p $WORKDIR/images
srun -A my_project -p shared -c 8 --mem=32G -t 1:00:00 \
enroot import -o $WORKDIR/images/pytorch-24.05.sqsh docker://nvcr.io#nvidia/pytorch:24.05-py3
# Usage
srun -A my_project -p a100 --gres=gpu:1 -t 2:00:00 \
--container-remap-root --container-image=$WORKDIR/images/pytorch-24.05.sqsh python train.py
Tip
Images are often several GB: keep .sqsh files in $WORKDIR/images, not in your home directory. Enroot's cache of downloaded layers and its extracted containers are in $WORKDIR/enroot/cache and $WORKDIR/enroot/data; you can clean them up if needed.
Mounting directories¶
srun ... --container-remap-root --container-image=$WORKDIR/images/pytorch-24.05.sqsh \
--container-mounts=$PWD:/workspace,/path/to/data:/data:ro \
--container-workdir=/workspace \
python train.py
| Option | Purpose |
|---|---|
--container-image |
image (registry or .sqsh file) |
--container-remap-root |
required on cholesky: root user (with no real privilege) inside the container |
--container-mounts |
host directories to mount: source:destination[:ro], comma-separated |
--container-workdir |
working directory inside the container |
--container-name |
container name, to reuse it across several srun steps of the same job |
--container-save |
saves the modified container to a .sqsh file at the end of the step |
--container-mount-home / --no-container-mount-home |
[do not] mount your home directory |
Batch job example¶
#!/bin/bash
#SBATCH -J container_training
#SBATCH -A my_project
#SBATCH -p a100
#SBATCH --gres=gpu:2
#SBATCH -c 18
#SBATCH -t 24:00:00
#SBATCH -o %x-%j.out
srun --container-remap-root --container-image=$WORKDIR/images/pytorch-24.05.sqsh \
--container-mounts=$PWD:/workspace \
--container-workdir=/workspace \
torchrun --nproc_per_node=2 train.py
Private registries¶
For a registry that requires authentication (for example nvcr.io with an NGC key), add your credentials to ~/.config/enroot/.credentials (permissions 600):
machine nvcr.io login $oauthtoken password <your_NGC_key>
machine auth.docker.io login <docker_user> password <docker_token>
Warning
This file contains secrets: do not share it or commit it to a code repository.
Interactive sessions¶
The debug partition is for compiling, testing, debugging and developing code. It has the highest priority: a session usually starts within seconds.
Interactive only
debug does not accept batch jobs (sbatch). Sessions last 30 minutes at most, on 2 nodes at most.
Starting a session¶
# 4 cores for 20 minutes; you get a shell on the allocated node
salloc -A my_project -p debug -n 4 -t 20
# test an MPI code on 2 nodes
salloc -A my_project -p debug -N 2 --ntasks-per-node=40 -t 30
srun ./my_mpi_code
Type exit to release the resources as soon as you are done.
Compiling¶
Code is not compiled on the login nodes but in a debug session, on a compute node identical to those that will run the code:
salloc -A my_project -p debug -n 1 -c 16 -t 30
module purge
module load openmpi
make -j $SLURM_CPUS_PER_TASK
exit
Tip
A compilation longer than 30 minutes can be run interactively on the shared partition (salloc -A my_project -p shared -c 16 -t 2:00:00).
Running a single command¶
srun -A my_project -p debug -n 1 -c 8 -t 10 --pty ./my_program
Limits¶
| Max time | 30 min |
| Nodes per job | 2 |
| Cores per user | 80 |
| Jobs per user | 2 running, 4 queued |
For longer interactive work (post-processing, visualisation, etc.), use salloc on the shared partition.
Monitoring your jobs¶
Common commands¶
| Command | Purpose |
|---|---|
squeue --me |
my queued and running jobs |
squeue --me --start |
estimated start time |
scontrol show job <jobid> |
job details |
scancel <jobid> |
cancel a job (scancel -u $USER: all of them) |
sacct -j <jobid> |
summary of a completed job |
seff <jobid> |
CPU and memory efficiency of a completed job |
sinfo |
partition and node status |
sshare -U |
my fairshare |
sprio -j <jobid> |
priority breakdown of a job |
Why is my job waiting?¶
The NODELIST(REASON) column of squeue gives the reason:
| Reason | Meaning |
|---|---|
Priority |
other jobs have higher priority |
Resources |
your job is next and is waiting for nodes to become free |
QOSMaxCpuPerUserLimit |
your other jobs are already using your core quota |
QOSMaxJobsPerUserLimit |
you already have the maximum number of running jobs |
QOSGrpNodeLimit |
the partition has reached its maximum number of running nodes |
Dependency |
the job is waiting for another job to finish |
Checking efficiency¶
After a job, seff shows how much of the requested cores and memory was actually used:
seff 123456
If CPU efficiency is low, request fewer cores. If the memory used is far below the memory requested, lower --mem: your job will start sooner.
Best practices¶
Request only what you need¶
- Time: a realistic time limit (
-t) lets backfill fit your job into free slots. - Cores: use
seffto check that the requested cores are actually used. - Memory: on
shared, any memory requested beyond 9.1 GB per core is counted as cores. - Files: work in
$WORKDIR(scratch) for large data and results.
Checkpointing¶
Maximum time limits are 24 h on parallel and 48 h on shared. A longer computation must save its state regularly so it can restart, and be split into several chained jobs (--dependency, see Chaining jobs).
To save your state before the time limit is reached, ask SLURM to send a signal a few minutes before the end:
#SBATCH --signal=B:USR1@600 # USR1 signal 10 minutes before the end
trap 'echo "Saving state"; ./save_state.sh' USR1
srun ./my_code &
wait
The right tool in the right place¶
| Do | Avoid |
|---|---|
| Edit, transfer and submit from the login nodes | Compiling on a login node |
Compile interactively in debug |
Running a computation on a login node |
Test interactively in debug |
Using debug for production |
Prototype on an interactive slice |
Reserving a whole A100 for testing |
Put small jobs in shared |
Reserving a whole node for 1 core |
Group small tasks with --array |
Submitting thousands of individual jobs |
Need help?¶
For any question, or if your needs exceed the limits (time, number of cores), contact the IDCS team and include the relevant job ID.