Difference between revisions of "HPC-Dictionary"
m (→Shared filesystems)
|Line 14:||Line 14:|
==== Shared filesystems ====
==== Shared filesystems ====
... can be read and written to by all nodes in the cluster. A file created by any node can immediately be seen by any other node.<br />
... can be read and written to by all nodesin the cluster. A file created by any node can immediately be seen by any other node.<br />
Examples are the Network File System NFS,
Examples are the Network File System NFS, Lustre or GPFS (a.k.a. "Spectrum Scale").
== Environment Variables ==
== Environment Variables ==
Latest revision as of 15:32, 1 October 2019
- 1 Unix
- 2 File System
- 3 Environment Variables
- 4 Cluster
- 5 Node
- 6 Central Processing Unit (CPU)
- 7 Socket
- 8 Core
- 9 Thread
- 10 Random Access Memory (RAM)
- 11 Cache
- 12 NUMA
- 13 Scalability
- 14 Scheduler
Unix describes a family of operating systems. Popular representatives include Ubuntu, CentOS and even MacOS, although the latter is not common on HPC systems. Main key features are its shell and file system.
The file system allows for a hierarchical (directory or folder) structure of all data (files). On Unix-based systems, the top directory is
/ (the "root" directory), from which all other directories branch off into a tree-like structure.
Most of the time you will be working in directories starting with
/home/<username>, which represents the user's home directory. All directories and files below
/home/<username> can be freely modified at will by the owner.
... exist only on a node and cannot be read nor written to from other nodes.
btrfs in Linux.
... can be read and written to by all compute nodes in the cluster. A file created by any node can immediately be seen by any other node. Sometimes also known as global or cluster file system.
Examples are the Network File System NFS, Lustre or IBM's GPFS (a.k.a. "Spectrum Scale").
An environment variable is a dynamic object on a computer, which stores a value. On Unix-based operating systems (bash) you can:
- set the value of a variable with:
- read the value of a variable with:
Environment variables can be referenced by software (or the user) to get or set information about the system or the environment. See below for a few examples of environment variables, which might give you an idea for their use and usefulness.
||your current username|
||the directory you are currently in|
||hostname of the computer you are on|
||your home directory|
||list of directories searched for when a command is executed|
A cluster in the HPC sense refers to a collection of multiple nodes, usually connected via a network providing high bandwidth and low latency communication. Accessing a cluster is possible by connecting to its specific login nodes.
A node is an individual computer consisting of one or more sockets.
Backend nodes (compute nodes) are reserved for executing the actual (scientific) calculation computations (memory demanding and long running applications). These compute nodes are the most powerful, but also most power consuming part of a cluster as they make up around 98% of it. Since these nodes are not directly accessible by the user, a scheduler manages their access. In order to run on these nodes, a batch job needs to be submitted to the batch system via a scheduler specific command.
Copy nodes are reserved for transferring data to or from a cluster. They usually offer a better connection than other nodes and minimize the disturbance of other users on the system. Depending on the facility, software installed on these nodes may differ from other ones due to their restricted use case, though not every facility chooses to install a designated copy node at all. As an alternative login nodes may be used to move data between systems.
Synonym for login node.
Login nodes are reserved for connecting to the cluster of a facility. Most of the time they can also be used for testing and performing interactive tasks (e.g. the analysis of previously collected application profiles). These test runs should generally not exceed execution times of just a few minutes and may only be used to verify that your software is running correctly on the system and its environment before submitting batch jobs to the batch system.
Central Processing Unit (CPU)
The term "CPU" is widely used in the field of HPC, yet it lacks a precise definition. It is mostly used to describe the concrete hardware architecture of a node, but should generally be avoided due to possible misunderstandings and ambiguities - see below.
A socket is the physical package (processor) which contains multiple cores sharing the same memory.
A core is the smallest unit of computing, having one or more hardware threads (if the hardware setting Hyperthreading is configured) and is responsible for executing instructions. In the "pre multicore" era, a processor had just one core.
- Hardware Threads
- If the same processor core can (and is configured to) execute more than one execution path in parallel (Hyperthreading, a hardware setting).
- Software Threads
- A process may have several threads, all sharing the same memory address space, but each thread having its own stack (Multithreading, eg. via OpenMP). Threads can be seen as "parallel execution pathes" within the same program (eg. to work through different and independant data arrays in parallel).
Software threads are not dependent on hardware threads -- you can run multithreaded applications on systems without Hyperthreading.
Random Access Memory (RAM)
The RAM (a.k.a main memory) is used as working memory for the cores. RAM is volatile memory, losing all content when the power is lost or switched off. In general, RAM is shared between all sockets on a node (all sockets can access all RAM). In NUMA however, a socket might have access to certain RAM areas only be going through other sockets.
The operating system separates all processes' address space, and also takes care of removing/deleting the content after a process ends.
A cache is a relatively small amount of very fast memory (compared to RAM), on the processor chip (die). It is used to fetch and hold data from the main memory near to the cores working on them, to allow faster access than RAM.
A modern processor has three cache levels: L1 and L2 are local to each core, while L3 (or Last Level Cache (LLC)) is shared among all cores of a CPU.
Non-Uniform Memory Access is a hardware architecture by which the main memory chips are not connected equally to all sockets. For example, socket 1 has a direct connection to banks 1 to 8, whereas socket 2 is closely connected to banks 8-16. Accessing the non-local memory chips (via the other socket) incurs a (small) performance penalty.
For HPC applications, it can thus be of advantage to "pin" certain cores to the application, so as to avoid the execution thread "hopping" between sockets and thus having varying access times to their data.
Scalability describes how well an application can use an increasing amount of hardware resources. Good scalability in general means reduced runtimes when more and more cores are used to solve the same or larger problems.
Typically, applications will hit an upper limit of cores beyond they don't scale further, ie. more cores don't yield lower runtimes (or even increase it again). This is mainly due to the increasing amount of arbitration and communication necessary to coordinate the working cores.
However, good scalability can also imply that the execution time remains the same, when the problem size grows similarly to the hardware resources.
By involving more and more processor cores to solve the same problem (size), the application still achieves reduced runtimes.
By involving more and more processor cores, the application can tackle larger problems (size), though you can no longer achieve reduced runtimes on the same problem (size).
The scheduler is the administrative heart of any HPC cluster. Like a dispatcher, it receives batch jobs submitted by the users, arbitrating and coordinating their placement and execution on various compute nodes.
The batch script to be submitted can contain directives (pragmas) to control job placement (eg. "put this job on any node with at least 16 cores and 32 GByte main memory" or "put this job on any node with a graphics card (GPU)".