Data centers
For operators who sell spare GPU time to HIPS from their own servers and take the GPUs back for their own clients, from a script or a management system. It covers HIPS Provider 0.1.22 and later, on Linux, on the machine itself or in Docker.
On an OpenStack cloud, OpenStack adds what changes there: the flavor, the guest, a cloud-init file with an enrollment code, launching with the CLI or Terraform, and bare metal with Ironic.
| What | A server needs |
|---|---|
| Processor | x86_64, or arm64 (aarch64) |
| System | Linux with apt and .deb packages (Debian, Ubuntu), or dnf or yum and .rpm packages (Fedora, RHEL, Rocky Linux, AlmaLinux, Amazon Linux 2023), 64-bit like the processor |
| C library | glibc 2.34 or newer: Ubuntu 22.04, Debian 12, Fedora 35, RHEL 9 or newer |
| Kernel | Landlock ABI 4 or later, which Linux has from 6.7, with Landlock enabled |
| Processor instructions | On x86_64 aes, pclmulqdq, ssse3, avx, avx2, adx and bmi2; on arm64 the AES, PMULL and SHA-2 instructions and Advanced SIMD |
| GPU | Whole GPUs of the kinds below, with MIG off; on a server whose GPUs are joined by NVSwitch (HGX), NVIDIA Fabric Manager running |
- What
- Processor
- A server needs
- x86_64, or arm64 (aarch64)
- What
- System
- A server needs
- Linux with apt and
.debpackages (Debian, Ubuntu), or dnf or yum and.rpmpackages (Fedora, RHEL, Rocky Linux, AlmaLinux, Amazon Linux 2023), 64-bit like the processor
- What
- C library
- A server needs
- glibc 2.34 or newer: Ubuntu 22.04, Debian 12, Fedora 35, RHEL 9 or newer
- What
- Kernel
- A server needs
- Landlock ABI 4 or later, which Linux has from 6.7, with Landlock enabled
- What
- Processor instructions
- A server needs
- On x86_64
aes,pclmulqdq,ssse3,avx,avx2,adxandbmi2; on arm64 the AES, PMULL and SHA-2 instructions and Advanced SIMD
- What
- GPU
- A server needs
- Whole GPUs of the kinds below, with MIG off; on a server whose GPUs are joined by NVSwitch (HGX), NVIDIA Fabric Manager running
Image-based systems built on OSTree (Fedora CoreOS, Fedora Silverblue and Kinoite, RHEL for Edge) cannot take the package, and the installer stops there with exit code 1. Run HIPS Provider in a container on them: Run it in Docker.
Every model runs in an engine process that HIPS Provider confines with the kernel's Landlock and seccomp filters. Landlock limits it to the files it needs and to one TCP port to serve on, with no outbound connection; the engine serves on the loopback address, and the seccomp filters allow it IPv4 TCP sockets alone. The network rules need Landlock ABI 4, which Linux has from 6.7. Ubuntu 24.04, and Ubuntu 22.04.5 with its HWE kernel, run Linux 6.8. A distribution kernel can carry features of a later version, so the ABI decides, not the version number. In a container, it is the host's kernel that decides.
On an older kernel, or one with Landlock turned off, HIPS Provider installs and links, but it starts no engine, so the server takes no work. hips-provider setup marks its Engine line with a warning, and hips-provider status says "Waiting: no engine can start inside its sandbox on this computer", with sandbox_unavailable and the cause in its Engine section. uname -r prints the running kernel's version.
HIPS Provider's encryption needs the instructions in the table, which Intel processors from Broadwell (Core and Xeon) and AMD processors from Zen (Ryzen and EPYC) have. On a processor without one, HIPS Provider does not connect, and names the instruction that is missing. On x86_64 this lists the ones the processor has:
Shell
grep -o -w -E 'aes|pclmulqdq|ssse3|avx|avx2|adx|bmi2' /proc/cpuinfo | sort -uIn a virtual machine, the guest must see them too: give it the host's CPU model rather than a generic virtual one, which can leave them out.
- On x86_64: NVIDIA GPUs; AMD Radeon GPUs of the RDNA3 and RDNA4 generations (the Radeon RX 7000 and 9000 series, Radeon PRO) and Ryzen AI Max.
- On arm64: NVIDIA DGX Spark, and NVIDIA Jetson AGX Thor and AGX Orin.
- Other AMD GPUs, AMD Instinct among them, and Intel GPUs take no work, and nothing runs on the CPU alone. The server's other GPUs work as usual.
- Whole GPUs only. A GPU with MIG on, or set to turn MIG on at its next reset, takes no work while the server's other GPUs work on, and
hips-provider statussays what to do. To provide it, turn MIG off withnvidia-smi -mig 0. An A100 or A30 then needs a GPU reset, as Health checks and GPU resets says; a Hopper or later GPU needs none. - HIPS checks each new GPU, and what it earns during the check is held, then released once the check passes, as Provider setup says.
Besides name lookups (DNS), HIPS Provider only connects out, over TCP port 443, and listens on no port for connections from outside: the server needs no inbound firewall rule. It makes every connection directly and uses no HTTP proxy, whatever the system's proxy settings say, so the server needs a direct outbound route to these hosts. The installer is different: its own downloads, and the package tools it runs, use the proxy variables of the account that runs it (such as https_proxy), which a sudo in front of sh drops unless sudoers keeps them; run without sudo, as curl -fsSL https://hips.com/install.sh | HIPS_DATA_CENTER=1 sh, it asks for sudo itself and keeps them. So a server whose only route out is a proxy installs HIPS Provider, and HIPS Provider then cannot connect.
| Host | What for |
|---|---|
providers.hips.com and the hosts under it, *.providers.hips.com | The connection to HIPS: work, status and the device's certificate, over TLS 1.3, with the server signed in by its own device certificate (mutual TLS). HIPS Provider connects to no host outside providers.hips.com for these |
ai.hips.com | The server's sign-in to your account: linking it, with a code to approve or an enrollment code, and renewing the sign-in from then on |
hips.com | The one-line installer, https://hips.com/install.sh |
github.com, objects.githubusercontent.com, release-assets.githubusercontent.com, github-releases.githubusercontent.com | HIPS Provider's packages and their signed checksums, for the installer and for every update |
Amazon S3 in eu-west-1, *.s3.eu-west-1.amazonaws.com | Engines and model files, over HTTPS, from the addresses HIPS hands the server, and from no other host. Each file is checked before it is used: a model's files against HIPS's signed manifest, an engine's archive against the SHA-256 HIPS pins for it |
| Your distribution's package mirrors | A dependency the system lacks, while HIPS Provider or an update of it installs |
- Host
providers.hips.comand the hosts under it,*.providers.hips.com- What for
- The connection to HIPS: work, status and the device's certificate, over TLS 1.3, with the server signed in by its own device certificate (mutual TLS). HIPS Provider connects to no host outside
providers.hips.comfor these
- Host
ai.hips.com- What for
- The server's sign-in to your account: linking it, with a code to approve or an enrollment code, and renewing the sign-in from then on
- Host
hips.com- What for
- The one-line installer,
https://hips.com/install.sh
- Host
github.com,objects.githubusercontent.com,release-assets.githubusercontent.com,github-releases.githubusercontent.com- What for
- HIPS Provider's packages and their signed checksums, for the installer and for every update
- Host
- Amazon S3 in eu-west-1,
*.s3.eu-west-1.amazonaws.com - What for
- Engines and model files, over HTTPS, from the addresses HIPS hands the server, and from no other host. Each file is checked before it is used: a model's files against HIPS's signed manifest, an engine's archive against the SHA-256 HIPS pins for it
- Host
- Your distribution's package mirrors
- What for
- A dependency the system lacks, while HIPS Provider or an update of it installs
Note
The connection to providers.hips.com signs the server in with its own certificate, so it cannot pass through a firewall or proxy that inspects TLS: exempt providers.hips.com and *.providers.hips.com from TLS inspection.
The one-line installer picks the package for your distribution. HIPS_DATA_CENTER=1 declares the machine a server before it is linked to your account (see The data-center flag, below).
Shell
curl -fsSL https://hips.com/install.sh | sudo HIPS_DATA_CENTER=1 shOn a server with no screen, link it with sudo hips-provider connect, which shows a code, a QR code and a link to approve in the HIPS Console.
For many servers, create an enrollment code in the HIPS Console under Connect many machines. The install line takes it: curl -fsSL https://hips.com/install.sh | sudo HIPS_DATA_CENTER=1 HIPS_ENROLLMENT_CODE=<code> sh. Keep the code in a file only root can read, so it is not typed where the shell's history keeps it, and run this as root:
Shell
curl -fsSL https://hips.com/install.sh | HIPS_DATA_CENTER=1 HIPS_ENROLLMENT_CODE="$(cat /root/hips-enrollment-code)" shA server already installed is linked from the same file (mode 0600 or 0400, not a link):
Shell
sudo hips-provider connect --enrollment-code-file /root/hips-enrollment-code- Each server joins your account with nobody approving it, and its GPUs go through the normal checks before they take work.
- Revoking a code stops new servers joining. Servers it already connected stay connected.
- You can start the installer on thousands of servers at once. If HIPS asks them to slow down, each server waits and sends its code again, so give your deployment tool's task a timeout of at least ten minutes. If the tool stops the installer early, the server goes on trying and links by itself.
Build an image with the installer, and run hips-provider service run as the container's command:
FROM ubuntu:24.04RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl \ && curl -fsSL https://hips.com/install.sh | HIPS_NO_LINK=1 HIPS_DATA_CENTER=1 sh \ && rm -rf /var/lib/apt/lists/*CMD ["hips-provider", "service", "run"]- The state volume keeps the device's identity, its link to your account, its settings and the model cache, so a new container is the same device with the same models. To keep the models on a larger disk, mount that disk at
/var/lib/hips-provider/models. - The configuration volume keeps
/etc/hips-provider/config.toml. --gpus allpasses the GPUs to the container and needs the NVIDIA Container Toolkit on the host.--restart unless-stoppedbrings the container back by itself.--inithands a stop on to HIPS Provider and reaps ended processes.--ulimit memlock=272629760:272629760lets HIPS Provider keep each request's and each answer's bytes locked in memory, so they are never written to swap. From HIPS Provider 0.1.37 it holds at most 256 MiB locked at once, and 260 MiB (272,629,760 bytes) leaves it one 4 MiB step to spare. A container's own limit governs inside it, often 8 MiB or less, and HIPS Provider cannot raise it there: from 0.1.37, under systemd its unit sets this same limit (LimitMEMLOCK), but in a container the container's runtime sets it.--cap-add IPC_LOCKdoes not take its place, since the daemon gives up every capability when it becomes its own account. From 0.1.37, the engines HIPS Provider starts may lock no more than 8 MiB whatever this limit is.- Without that limit, a request or an answer whose bytes would take what is held locked past the container's limit is held unlocked, and still zeroed when dropped. At the end of the attempt the daemon's log writes a
content_lock_refusedline with the number of refusals since its last such line and, from HIPS Provider 0.1.37, the latest one'sreason,lockandos_error, 12 (ENOMEM). - Give each container its own state volume. Two containers on one state volume would share one device identity, which HIPS treats as a copied device. From HIPS Provider 0.1.37 the second one does not start: its log says "Another HIPS Provider service already runs on this state folder (/var/lib/hips-provider), so this one stops. In containers, give each its own state volume." The check is a lock on
/var/lib/hips-provider/daemon.lock, which reaches across containers on one host; on a network file system whose locks do not reach across hosts, keep each server's state volume its own as well.
Note
Always set the container's stop timeout and HIPS_STOP_TIMEOUT to the same number of seconds. A Docker installation can stop a container sooner than its documented default of 10 seconds, and a running job needs time to drain. 125 seconds or more lets a job use the whole default drain window.
Note
Never use docker pause to take the GPUs back. It freezes HIPS Provider in the middle of a job, keeps the GPU memory in use, and HIPS sees a job that stopped answering. HIPS's own pause, below, lets the job finish.
To link the container with an enrollment code, give it the code and HIPS Provider reads it when the container starts, while the container is unlinked. We recommend a file, since docker inspect shows an environment variable: owned by root and readable by root alone (mode 0600 or 0400), not a link, mounted at /run/secrets/hips-enrollment-code, or at another path named by HIPS_ENROLLMENT_CODE_FILE. Or give the code as the environment variable HIPS_ENROLLMENT_CODE.
docker run -d --name hips-provider \ -v /root/hips-enrollment-code:/run/secrets/hips-enrollment-code:ro \ ...A refused code is said in the container's log, and the container keeps running unlinked. On Kubernetes, secret volumes use links, so use the variable from a secretKeyRef, or a subPath mount with mode 0400.
Every command below runs inside the container with docker exec hips-provider hips-provider ....
Some cloud pods clear the container's disk at every stop and restart and keep only a volume mounted at /workspace. In a container with no systemd and a volume of its own at /workspace, HIPS Provider keeps the device's state on that volume, in /workspace/.hips-provider, and service install says "This container's /workspace is a volume of its own, so HIPS Provider keeps this device's state there, in /workspace/.hips-provider: after a restart of the container it comes back as the same device, linked, with no new code." hips-provider service status names the volume. Nothing installs or starts the app again when such a container restarts, so put (/usr/bin/hips-provider service start || curl -fsSL https://hips.com/install.sh | bash) >/workspace/.hips-provider/start.log 2>&1 & first in the container's start command.
From HIPS Provider 0.1.37, HIPS Provider keeps the device's state there only while /workspace/.hips-provider is a folder root's alone, and refuses what another account could have put in its place:
- Where accounts other than its owner may write
/workspaceand it has no sticky bit, HIPS Provider sets the bit and says once "hips-provider: /workspace could be written by accounts other than its owner; HIPS Provider set its sticky bit so one account cannot replace another's folders". Where it cannot set the bit, it says so at each start and uses the volume all the same: set the bit where the volume comes from (chmod +ton its folder), or let only its owner write it. - Where
/workspace/.hips-provideris not a folder root's alone, or is a link, a file, a pipe, a socket or a device node,service installandservice runstop, and a start under the app's own supervision keeps the device's state on the container's disk instead. The words say what it is, whose it is and what makes it work again, for example "/workspace/.hips-provider is not a folder root's alone (owner 4242:4242, mode 0755), so HIPS Provider does not keep this device's state there; once you know who changed it, give it back to root withchown root:root /workspace/.hips-provider && chmod 755 /workspace/.hips-providerand start the service again". - Where accounts other than root may move what
/workspaceholds, and/workspace/.hips-providerholds astateorconfigfolder of root's that is not empty, HIPS Provider stops the same way before it reads or writes anything there, since another folder of root's may have been moved into its place. Once you know what the folder holds, move it aside, as withmv /workspace/.hips-provider/config /workspace/.hips-provider/config.aside, and start the service again; or, to keep it, give it to the service account first, as withchown hips-provider /workspace/.hips-provider/config.
In a container where HIPS Provider runs under its own supervision, started with hips-provider service start rather than as the container's own command, nothing starts it again when the container restarts: put /usr/bin/hips-provider service start in the container's start command, or with the device's state on a volume at /workspace the line above. From HIPS Provider 0.1.38, a command run in such a container before the service is started again says what to do there, never the setup: after "The daemon is not reachable at /run/hips-provider/hips-provider.sock; is it running?" it says "HIPS Provider's service is not running in this container.", the line to put in the container's start command, and hips-provider service start to run now. Where the service is not installed in the container, it says "HIPS Provider's service is not installed in this container." and hips-provider setup.
From HIPS Provider 0.1.38, where the device's records stay on the container's own disk although /workspace is a volume of its own, hips-provider status and the last sheet of hips-provider setup say why and what it means. On a RunPod network volume, for example: "This device's records stay on the container's own disk, since the volume at /workspace is a network volume. A restart that clears that disk brings this machine back as a new device. To keep them, give the container a local volume at /workspace that only root can write. The model cache may still live on the network volume: hips-provider config set cache_folder /workspace." The model cache's rules there are A cache on a network volume.
HIPS knows a server as a device by what the server keeps on its disk:
| Path | What it holds |
|---|---|
/var/lib/hips-provider | The device's key and certificate, its link to your account, its settings, its logs, and the model cache in models, unless the cache has moved to another drive |
/etc/hips-provider | The configuration file, config.toml |
/etc/machine-id | The system's machine id, which the device's identity is bound to |
- Path
/var/lib/hips-provider- What it holds
- The device's key and certificate, its link to your account, its settings, its logs, and the model cache in
models, unless the cache has moved to another drive
- Path
/etc/hips-provider- What it holds
- The configuration file,
config.toml
- Path
/etc/machine-id- What it holds
- The system's machine id, which the device's identity is bound to
- On a stateless or reimaged server, keep
/var/lib/hips-providerand/etc/hips-provideron persistent storage, among your provisioning system's persistent paths or outside what a reimage wipes, and keep the machine id with them. A server rebuilt without them is a new device to HIPS: it links again, and with an enrollment code it spends one more of the code's uses. - Never capture a linked server in a golden image or a virtual machine template. Each machine made from it starts with the same device key and certificate, HIPS revokes a certificate that a second machine presents as compromised, and the device stops taking work.
- Build images with
HIPS_NO_LINK=1, which installs HIPS Provider without linking it, and link each machine at its first boot withsudo hips-provider connect --enrollment-code-file <file>, or in Docker as above. - The model cache holds the models HIPS plans for the server, and models are large. Give it a drive meant for it, with the
cache_foldersetting or a disk mounted at/var/lib/hips-provider/models, and cap it withcache_budget_byteswhere the drive is shared: on a server with the data-center flag its default budget is most of the drive's free space (Settings reference). A server that loses only its cache keeps its identity and downloads its models again before it works on them. - From HIPS Provider 0.1.38 the cache's drive may be a network volume, an NFS share (Manila's among them) or CephFS:
cache_folderchecks it as HIPS Provider's service account before it is saved, each server keeps its own records in a folder of its own there, and every model is checked in full before each load (A cache on a network volume). The servers on one share keep one copy of each model between them once HIPS counts their copies as one: a model one server downloaded serves every server there, one server downloads a model at a time, and each server removes only the models it downloaded itself, or, when room is needed, one whose downloader has not been seen on the share for 7 days. The default budget is divided among the servers seen on the share in the last seven days, each counting the models it downloaded; to share it another way, setcache_budget_byteson each server. Run HIPS Provider's service account with one user and group id on every server that shares the volume, as servers do whose image has HIPS Provider installed in it (id hips-providershows them); a share withroot_squashworks where the squashed account may write in the share's top folder. The servers' clocks must agree within a few minutes, as NTP keeps them. Mount the share at every boot (_netdev,nodev,nosuidin/etc/fstab, so a device file or a set-user-id program placed on the share does nothing on the server): where it is not mounted, the cache stays closed and nothing is made in its place on the server's own disk. - From HIPS Provider 0.1.38 a server rebuilt onto the same cache drive, its state and configuration restored, gets a writable cache again at its first start: HIPS Provider gives the folder back to its service account and lets it write there again where the updater's record of it or the service's permission to write there is gone.
This guide covers Linux. A tool that prepares Windows machines before HIPS Provider's installer runs follows The app's folders on Windows: from HIPS Provider 0.1.37, the state folder, the updater's folder and every folder above them must be plain folders that LocalSystem or the Administrators group owns, and models go to another drive through cache_folder, never through a link.
A server with the data-center flag is available whenever it is on and healthy. HIPS Provider reads no sign of a person using it, applies no idle or sleep rules, and keeps no daily cap. What stops its work is a pause, its thermal limit, or a driver fault.
Declare the flag before the server is linked: with the installer's HIPS_DATA_CENTER=1, or with sudo hips-provider config set data_center true. A Linux container with no systemd and no desktop declares it by itself. Once the server is linked, only HIPS changes the flag. hips-provider status shows it.
From HIPS Provider 0.1.37, a container's service install and service run declare the flag as root without following a link in /etc/hips-provider or reading a file of another account's there. Where something there is in the way, they say "The data-center flag was not declared: " and why, and the install or start goes on without the flag. For example: "/etc/hips-provider/config.toml is a symbolic link, which is never followed as root; remove it and run this command again, or declare the flag with hips-provider config set data_center true once the service runs, before this device is linked; once it is linked, only HIPS sets the flag". Where an enrollment code is about to link such a container, service run adds "This device links without the data-center flag; HIPS sets it afterwards on request."
| Command | What it does |
|---|---|
hips-provider pause | No new work from HIPS on this server, until resumed |
hips-provider pause --for 2h | The same, for two hours; also 30m, 1h30m, 2d |
hips-provider pause --until 18:00 | The same, until a local time, or tomorrow |
hips-provider pause --gpu 1 | One GPU alone, by the index hips-provider gpus lists or its UUID; the others work on |
hips-provider pause --reason "client job 4711" | The pause with a reason in a few words, at most 200 characters, shown in the status and the HIPS Console |
hips-provider pause --wait | Returns once the running jobs have drained and the GPU's memory is free |
hips-provider pause --wait --timeout 10m | The same, waiting at most ten minutes |
hips-provider resume | Ends the pause; --gpu 1 ends one GPU's |
- Command
hips-provider pause- What it does
- No new work from HIPS on this server, until resumed
- Command
hips-provider pause --for 2h- What it does
- The same, for two hours; also
30m,1h30m,2d
- Command
hips-provider pause --until 18:00- What it does
- The same, until a local time, or
tomorrow
- Command
hips-provider pause --gpu 1- What it does
- One GPU alone, by the index
hips-provider gpuslists or its UUID; the others work on
- Command
hips-provider pause --reason "client job 4711"- What it does
- The pause with a reason in a few words, at most 200 characters, shown in the status and the HIPS Console
- Command
hips-provider pause --wait- What it does
- Returns once the running jobs have drained and the GPU's memory is free
- Command
hips-provider pause --wait --timeout 10m- What it does
- The same, waiting at most ten minutes
- Command
hips-provider resume- What it does
- Ends the pause;
--gpu 1ends one GPU's
The options combine: hips-provider pause --gpu 1 --wait --timeout 10m --reason "client job 4711".
- A server's pause lasts until it is resumed, across reboots and restarts of its container. A pause with
--foror--untilstill ends at its time. - HIPS sends no new work. A job already running may finish within the drain window, 120 seconds unless
drain_window_ssays otherwise; one that has not finished by then is stopped and reported to HIPS. - Pausing while paused changes the end, and the reason where a new one is given. Resuming while not paused says "Not paused.". Both exit 0, so a script can run them again safely.
| Code | Meaning |
|---|---|
| 0 | Paused (with --wait, also drained), resumed, or not paused |
| 1 | Another failure, such as a GPU the server does not have; the message says which |
| 2 | The command line is wrong, such as --timeout without --wait |
| 69 | The HIPS Provider service is not running here |
| 75 | --timeout passed before the work drained. The pause stays in force: wait again, or resume |
| 77 | This account may not use the service: run it as root or with sudo |
- Code
- 0
- Meaning
- Paused (with
--wait, also drained), resumed, or not paused
- Code
- 1
- Meaning
- Another failure, such as a GPU the server does not have; the message says which
- Code
- 2
- Meaning
- The command line is wrong, such as
--timeoutwithout--wait
- Code
- 69
- Meaning
- The HIPS Provider service is not running here
- Code
- 75
- Meaning
--timeoutpassed before the work drained. The pause stays in force: wait again, or resume
- Code
- 77
- Meaning
- This account may not use the service: run it as root or with sudo
- 01
Pause with
--wait:hips-provider pause --wait --timeout 10m --reason "...", with--gpu Nfor one GPU. When it exits 0, no HIPS work runs and the GPU's memory is free. - 02
Hand the GPU over and start your client's work.
- 03
Resume once your client is done:
hips-provider resume, with--gpu Nfor one GPU.
From HIPS Provider 0.1.36, a server with the data-center flag steps aside on its own when another program starts on one of its GPUs, so a job of yours that starts without a pause does not run beside HIPS's work:
- The moment a process that is not HIPS Provider's appears on a GPU's compute or graphics process list (the processes
nvidia-smilists), working or not, that GPU takes no new work from HIPS, the job running on it is stopped at once with no drain window, and its engines stop so the GPU's memory is free, within a few seconds. The server's other GPUs work on. - HIPS works on that GPU again 120 seconds after another program was last seen on it, so a diagnostic that runs in phases is not interrupted between them.
- Meanwhile
hips-provider statusandhips-provider gpusshow that GPU as "Not available: another program is on this GPU (HIPS works here again 2 minutes after it ends)", and once the program has ended, "Not available: another program was on this GPU (HIPS works here again within 2 minutes)". - The operating system's own display server, compositor and desktop shell do not count while they hold only a graphics context: on Linux Xorg, Xwayland, the compositors of GNOME, KDE Plasma, Xfce, MATE, Cinnamon, Budgie, Pantheon, Unity, COSMIC and the tiling desktops, and KDE Plasma's shell; on Windows the Desktop Window Manager, the sign-in screen, Explorer and the shell's Start menu, search, notification and text input hosts, each only in its own place in the Windows folder. A GPU that carries one of them shows "drives a display" after its state. One of them with a compute context counts like any other program.
- Nothing needs to be run for it. Before a job that must find the GPU's memory free from its first second, still pause with
hips-provider pause --waitas above, since the yield follows the program's start.
Four limits:
- In a container run without
--pid=host, HIPS Provider cannot tell the host's processes apart, so a desktop the host runs on a GPU counts as another program and that GPU does no HIPS work. Give the container--pid=hoston a server whose GPUs drive a display. - The lists are read on NVIDIA GPUs (Linux and Windows) and on AMD GPUs under ROCm (Linux). On AMD only ROCm programs are seen, so a Vulkan or OpenGL program there does not make the GPU yield.
- A GPU whose driver supports neither of its process lists cannot see another program and never yields; its state then adds "no yield on this GPU", and the log says
gpu_lists_unsupportedonce. The same holds for an NVIDIA GPU that NVIDIA's management library (NVML) does not reach: in a container whose NVIDIA runtime mounts the compute libraries but not NVML (NVIDIA_DRIVER_CAPABILITIES=computewithoututility), or where NVML has no device at that GPU's PCI address. Give such a containerNVIDIA_DRIVER_CAPABILITIES=compute,utility. A list the driver does not support beside one it does counts as empty. - The Windows list of the operating system's own processes has not been checked on a server whose NVIDIA GPU carries the desktop in WDDM mode. A process of the Windows shell missing from it would make that GPU yield while someone is signed in, with "Not available: another program is on this GPU" as its state.
While its service runs, paused or not, HIPS Provider keeps each NVIDIA GPU open through NVIDIA's management library (NVML) to read its sensors, and its engines hold GPU memory while they work. So:
| Before | Do this |
|---|---|
GPU diagnostics or burn tests, such as NVIDIA DCGM's dcgmi diag at level 2 or higher | hips-provider pause --wait, then the test, then hips-provider resume. Once the pause returns, no HIPS engine runs and the GPU's memory is free |
A GPU reset (nvidia-smi -r), a driver upgrade, or a restart of NVIDIA Fabric Manager | Stop the service, sudo systemctl stop hips-provider (in Docker, docker stop hips-provider), and start it again afterward with sudo systemctl start hips-provider (or docker start hips-provider) |
- Before
- GPU diagnostics or burn tests, such as NVIDIA DCGM's
dcgmi diagat level 2 or higher - Do this
hips-provider pause --wait, then the test, thenhips-provider resume. Once the pause returns, no HIPS engine runs and the GPU's memory is free
- Before
- A GPU reset (
nvidia-smi -r), a driver upgrade, or a restart of NVIDIA Fabric Manager - Do this
- Stop the service,
sudo systemctl stop hips-provider(in Docker,docker stop hips-provider), and start it again afterward withsudo systemctl start hips-provider(ordocker start hips-provider)
NVIDIA's rule for a reset is that no application may be using the GPU, monitoring applications included, as its nvidia-smi documentation says, and a paused HIPS Provider still reads the GPU. Pause with --wait before the stop, so running work finishes first; on a server with the data-center flag the pause lasts through the restart, and hips-provider resume ends it:
Shell
sudo hips-provider pause --wait --timeout 10m --reason "GPU reset"sudo systemctl stop hips-providersudo nvidia-smi -r -i 0sudo systemctl start hips-providersudo hips-provider resumeFrom HIPS Provider 0.1.36, an image model's engine takes the GPU memory HIPS Provider estimates it needs, never more than the budget HIPS's plan gives the image library. The estimate grows with what the server sees: the most the engine's GPU buffers held (on macOS), the memory read for its process, and a load or a run that ends for want of memory, which doubles it toward the budget once the GPU's next memory reading shows that the memory it was given is still free. An end that another program caused, by taking that memory meanwhile, leaves the estimate as it was.
Two limits, both on Windows:
- When the GPU's memory runs short, the Windows display driver falls back to system memory, so a load the estimate left short moves into the server's own memory with no error, and nothing shows that the estimate was short.
- Windows has no signals: an image engine killed during a run ends with an exit code, so that end teaches the estimate nothing. A load the image library refuses for want of memory, with its own exit code, still does.
Pause with --wait before a change and resume after. In Docker, put docker exec hips-provider in front of the program. A task that should not fail the play on a slow drain can accept 75 as well: the pause is then in force, with work still finishing.
Ansible
- name: Take the GPUs back from HIPS ansible.builtin.command: argv: [hips-provider, pause, --wait, --timeout, 10m, --reason, "{{ hips_pause_reason }}"] register: hips_pause changed_when: true failed_when: hips_pause.rc != 0 # Your change goes here. - name: Give the GPUs back to HIPS ansible.builtin.command: argv: [hips-provider, resume] register: hips_pause_end changed_when: "'Not paused.' not in hips_pause_end.stdout"A prolog pauses with --wait, and an epilog resumes. A prolog that exits with anything but 0 sets the node to DRAIN, so give --timeout room for the drain window. A failing epilog drains the node too, so the epilog below logs a resume that fails and exits 0. On nodes that run several Slurm jobs at once, pause the job's own GPUs with --gpu, after checking that the indices hips-provider gpus lists match your gres.conf.
#!/bin/sh# Prolog: take this node's GPUs from HIPS for the Slurm job.exec hips-provider pause --wait --timeout 5m --reason "Slurm job ${SLURM_JOB_ID}"When HIPS Provider runs on a node beside your cluster, the node moves between the two with a pause and a cordon: the pause before the uncordon when the cluster takes the node, and the resume after the cordon when HIPS takes it back. Where HIPS Provider runs as a pod on the node, run the same commands with kubectl exec into that pod, and set its terminationGracePeriodSeconds to the value of HIPS_STOP_TIMEOUT.
Kubernetes has no setting for a container's locked-memory limit that is on by default: the pod gets the limit the node's container runtime gives its containers, so set that runtime's limit to 272629760 or more for HIPS Provider to keep its requests' bytes out of swap, as --ulimit does under Docker above. Under CRI-O that is default_ulimits = ["memlock=272629760:272629760"] in the [crio.runtime] table of crio.conf. Under containerd, whose containers inherit its own limit, it is LimitMEMLOCK=272629760 in a drop-in for its systemd unit (for example /etc/systemd/system/containerd.service.d/memlock.conf, under [Service]), followed by systemctl daemon-reload, a restart of containerd and a restart of the pod.
ssh "$NODE" 'sudo hips-provider pause --wait --timeout 10m --reason "cluster workloads"'kubectl uncordon "$NODE"HIPS Provider updates itself, so every server runs the version the network is tested on. An update installs only while no job runs: HIPS Provider waits for a quiet moment, and when none comes it stops taking new jobs and lets the running ones finish first. A running job is never cut. Each package is checked against HIPS's signature before it installs.
The update_rule setting is automatic by default. Set to ask_first, HIPS Provider still downloads and checks each update, and installs it once someone approves it in the tray or menu-bar app on Windows and macOS (no hips-provider command approves one), or once the date by which HIPS requires a newer version has passed. A Linux server has no tray program, so with ask_first it updates when a version becomes required.
A new version that crashes, fails its start check or cannot reach HIPS after it starts is rolled back to the version before it, and that server does not install it again.
In Docker, an update installs inside the container, in /opt/hips-provider, outside the state and configuration volumes. A container made again from its image starts with the version the image holds, keeps its device from the state volume, and updates itself again.
hips-provider status --json prints one JSON object for each server's state, its GPUs, any pause with its reason, and the work running.
| Field | What it holds |
|---|---|
state | ready, working, paused, in_use, offline, needs_you or updating |
line | The status in words |
status.pause | The machine's pause, or null: reason, lasting, drained, until_unix_ms, since_unix_ms, source |
status.gpus[] | Each GPU: index, key, paused, pause_reason, pause_lasting, drained, attempts |
status.data_center | The data-center flag |
status.enrollment, status.stop_reason, status.stop_message | Whether the server is connected and, from HIPS Provider 0.1.37, why it stopped where it did: the command reference has each field, and Reconnect a device what opens each state; on a server, sudo hips-provider connect |
- Field
state- What it holds
ready,working,paused,in_use,offline,needs_youorupdating
- Field
line- What it holds
- The status in words
- Field
status.pause- What it holds
- The machine's pause, or
null:reason,lasting,drained,until_unix_ms,since_unix_ms,source
- Field
status.gpus[]- What it holds
- Each GPU:
index,key,paused,pause_reason,pause_lasting,drained,attempts
- Field
status.data_center- What it holds
- The data-center flag
- Field
status.enrollment,status.stop_reason,status.stop_message- What it holds
- Whether the server is connected and, from HIPS Provider 0.1.37, why it stopped where it did: the command reference has each field, and Reconnect a device what opens each state; on a server,
sudo hips-provider connect
For example, whether a server is paused and drained:
Shell
hips-provider status --json | jq '{state, pause: .status.pause}'hips-provider logs shows the newest lines of the service's log. Name another log, engine-host, watcher or updater, and ask for more lines with --lines:
Shell
hips-provider logships-provider logs engine-host --lines 200The files hold one JSON object per line: daemon.log, engine-host.log and watcher.log in /var/lib/hips-provider/logs, and updater.log in /var/lib/hips-provider-updater/logs. Each line is cleaned before it is written anywhere: no request content or output, and no key, certificate or token.
Under systemd the service also writes to the journal, with SYSLOG_IDENTIFIER=hips-provider, the component in HIPS_COMPONENT (daemon, engine-host, watcher for the crash watcher, updater, and on a desktop session-helper), and an event's code in HIPS_EVENT, so a log shipper can select its lines. An engine's own lines go to the files alone, never to the journal.
Shell
journalctl -t hips-providerjournalctl -t hips-provider HIPS_COMPONENT=engine-hostIn Docker, the container's own output carries the supervision's lines, and docker exec hips-provider hips-provider logs shows the rest.
Related sheets
- Sheet
- 15 of 21
- Detail
- G
- Updated
- 2026-12-01