Skip to content
qgonDEV DOCSSDK 0.3.31
ENKR

Server resources and the GPU floor map

In the appManage › Server resources·Manage › Workspaces·Settings › Action logAdmin

This page is for server admins looking after the server. It shows how to use Manage › Server resources to see how busy the GPUs are, what is waiting in the queues and who is holding memory. It also covers what happens to running jobs when you pause, resume or restart an agent, what the server checks when a workspace starts, and what stops first when memory is about to run out.

qgon is currently developed and run on a single unified memory server such as the NVIDIA GB10, where one GPU shares memory with the CPU. The screenshots and descriptions below are based on that server. Statements about servers where each GPU has its own memory describe behavior built into the product, which has not yet been checked on such a server.

GPU floor map on the Server resources overview. Cells for servers, GPUs in use, free GPU memory and jobs waiting in queues sit at the top, with the main server and its auto-assign strip, the jobs waiting on the gpu pool and a GPU pillar below
The four cells at the top count servers, GPUs in use, free GPU memory and jobs waiting in queues. Below, each server has its auto-assign strip, the jobs waiting on its pool and a GPU pillar.View full size(opens in a new tab)

Manage › Server resources has Overview, Usage and Agents tabs. The shape of the overview and the tabs you see depend on your role.

Tab Server admin Team lead Member
Overview The full GPU floor map, including the main server and Add server The GPU floor map, limited to pools their team may use A GPU card overview, no floor map
Usage Yes Yes Yes
Agents Yes - -
  • On a team lead's floor map, other teams' jobs are grouped as 'Other team jobs' without names or people. Other teams' jobs waiting in a queue show only their position, as in '#3 · Other team job'.
  • This hiding is only how this page displays things. It is not a security control. Other pages on the same server and the REST API can still show other teams' job names. What teams split and what they do not is in Teams and quotas.
  • If a team lead sees 'No pool allowed for your team', an admin has to allow a pool for that team in Settings › Teams before the floor map fills in.
  • On a server that uses teams, the admin overview has a 'Team quota settings' link at the top.

From top to bottom the floor map has the summary cells, the main server and the pool zones. It refreshes every 5 seconds.

Cell Meaning
Servers Number of servers shown on the floor map
GPUs in use GPUs that are not idle / all GPUs. The line below shows the idle count
Free GPU memory Free memory summed over the GPUs. The line below shows the total
Waiting in queues Jobs waiting in queues. Select it to open the waiting order for all users in Build › Scheduling

A team lead's summary cells count only their team's pools. On a unified memory server, GPU memory is the server memory. So 'Free GPU memory' is the free memory of the whole server, and the total is the server's memory size.

Admins see the main server below the summary cells. On the left are the server name, a 'Main server' chip, the GPU spec, the driver and CUDA versions, and unified memory usage. The strip on the right shows the auto-assign state.

Strip shows Meaning
Running Auto-assign is starting queued jobs one by one based on free memory
Off Auto-assign is off. Agents take the next job as soon as they are free, without checking memory
Error Auto-assign is on but not working properly
Unknown The auto-assign state could not be read

The right end of the strip shows the number of intake queues and waiting jobs. What auto-assign checks before starting a job is in Share GPUs and the queue.

The server is a single machine for now, so the main server also runs jobs itself. That is why the same server appears again in the pool zone below, as a row with a 'Main server' chip. Hover over the chip to see 'Also runs jobs'. Add server at the bottom of the floor map cannot be used yet. Selecting it shows 'This device does not support it yet'.

A pool is a group of GPUs that take jobs from the same queue. The floor map has one zone per pool.

  • The left of the zone header shows the pool name and 'GPU model · server count'. The right end shows the pool's 'GPUs in use'.
  • In the middle, each queue of the pool gets a rail. Each flat tile on a rail is one waiting job. Up to five tiles are drawn and the rest are folded into '+n'.
  • The badge next to a rail reads 'queue name · n waiting', or just the queue name when nothing is waiting. Select the badge to open that queue's waiting order on the Scheduling page. Hover over a tile to see its position, the job name and the user, or over the badge to see the average wait.
  • When a pool has three or more queues, only two are shown and the rest fold into 'n more queues'.

Below the header, each server holding GPUs of that pool gets its own row. Hover over the dot before the server name to see the server state. A server that has lost its connection gets an 'Offline' badge. The average utilization and free memory appear below the name. GPUs that belong to no pool are gathered in a separate 'No pool' zone on the admin view.

Each pillar is one GPU.

  • The pillar's height is the GPU's whole memory. The filled part is used memory, split into one layer per holder when several share the GPU. The dashed part on top is free memory, and the number inside it is the free GB. On a unified memory server the pillar stands for all server memory, so the filled part also includes memory used by programs that do not use the GPU and by the platform.
  • The darker the green, the higher the utilization. The number under the pillar is GPU utilization (%).
  • When no job or workspace holds the GPU and utilization is under 5%, the pillar shows 'Idle' instead of a number. Such GPUs count as idle.
  • Above 80°C, an orange triangle and the temperature appear over the pillar.

Hover over a pillar or move to it with Tab to see utilization and temperature, used and free memory, and memory used by each job, workspace and serving.

When someone says there are not enough GPUs

Section titled “When someone says there are not enough GPUs”
  1. Check 'Waiting in queues' and 'Free GPU memory' in the summary cells. If nothing is waiting, look at workspaces and serving before the queues.
  2. Hover over the pillar to see who uses how much memory.
  3. Select a queue badge and check the wait reasons on the Scheduling page. 'Waiting for memory' means memory is short, and 'Waiting for an agent' means no agent is free. Each reason is explained in Share GPUs and the queue.
  4. If a workspace holds the GPU without using it, ask its workspace manager to stop it, or stop it yourself in Manage › Workspaces. If an agent is paused, resume it on the Agents tab below.

Members who are neither admins nor team leads see per-server GPU cards and GPU pool cells instead of the floor map. When a member asks about the GPUs, this is the page they are looking at.

  • The summary row at the top shows GPU in use, Available, Queued and Running jobs.
  • Each GPU card shows the utilization number with a thin bar, recent utilization history, used memory, temperature and power. It also names the jobs or workspaces holding the GPU, and selecting a name opens that experiment or workspace.
  • When a job or workspace holds a GPU but utilization is under 5%, a Held idle badge appears. Look here first when people say GPUs are short. A free GPU gets a 'Run here' link.
  • The GPU pools section shows, per pool, its GPU cells, 'n / m agents busy', and the queued count with the average wait. 'View waiting order' opens the Scheduling page.

The Usage tab turns the running time of runs recorded as experiments into GPU time and shows it per person or per project. Every signed-in user can see it.

  • Pick a period of 7, 14, 30 or 90 days (14 by default), and group by user or by project.
  • The bar chart at the top is GPU time per day (GPU·h). Only the top 8 rows get their own color. The rest are grouped into one 'Others (n)' row. Hover over a bar to see each row's hours that day.
  • The table below lists name, share, GPU hours, jobs and GPU hours per job. Selecting a project row opens that project's experiments. When grouped by user, only your own row links to your experiments.
  • Export CSV saves the table you are looking at as a file.

GPU time is counted like this.

  • Days are cut in the server's time zone. The installer reads the server's time zone and records it. If it could not read it, UTC is used.
  • All GPU time of a job goes to the day the job started. A job that runs past midnight is still counted on its start day.
  • The bars cover N days including today, and the total counts only jobs that started within those N days. Up to 2000 of the most recently started jobs are read.
  • Each run counts as one GPU for the time it ran. Whether it actually used a GPU, and how many, is not measured. Controllers of hyperparameter searches and pipelines are not counted.
  • Only runs recorded as experiments are counted. Runs that did not use a GPU, or that ran directly in a workspace, are included once recorded. Time a workspace stays on is not included.

The same values are available from the REST API. GET /qgon-api/resources returns server, GPU and pool status, and GET /qgon-api/usage returns GPU time. How to get a token is in REST API.

An agent is the runner that takes jobs from a queue and runs them on a GPU. It is not the same thing as an AI agent built on an LLM. The Agents tab is visible only to admins and refreshes every 10 seconds.

Column Contents
Agent Name (GPU agent A, Services agent and so on) and kind (GPU or Services)
Queues Queues this agent serves, shown by the names users submit to
Status Running · Paused · Draining · Stopped
Current job The job it is running and the user. Select it to open that experiment. 'Idle' when there is no job
Uptime · GPU no. Time since the agent started, and the GPU it serves

An agent with a fork icon next to a queue name listens to a separate run queue. On a server with auto-assign on, users submit jobs to the gpu queue. Auto-assign checks memory and moves the job to the run queue (gpu-run), and the agent takes jobs only from the run queue. Hover over the icon to see the same explanation.

A GPU agent runs one queued job at a time. So the number of GPU agents serving a GPU is the upper limit on queued jobs running on that GPU at once.

Use the icon buttons at the right end of each row. Hover over a button to see its name. Pause and restart ask for confirmation first.

Action Available when Running job
Pause The status is Running Runs to the end. If there is a job, the agent turns 'Draining', then stops and turns 'Paused' when the job ends. With no job it turns 'Paused' right away
Resume The status is Paused or Draining If it was draining, the job keeps running and the agent takes new jobs again
Restart The status is Running and there is no job Not possible while a job runs. The button is disabled and shows 'A job is running, so it cannot be restarted'
  • A paused agent takes no new jobs. Meanwhile, jobs wait in their queue.
  • A pause survives a server restart. The agent takes jobs again only after you resume it.
  • Restart brings the agent container up again. It takes no jobs for a short while. A paused agent cannot be restarted, so resume it first.
  • On a server where several GPU agents serve one GPU, pause all but one to give a large training job the whole GPU. Queued jobs then run one at a time on that GPU. Workspaces and serving keep using the same GPU regardless of agents.

To drain queued jobs before working on the server:

  1. On the Agents tab, press the pause button for each GPU agent and confirm with Pause.
  2. An agent that was running a job turns 'Draining'. It turns 'Paused' when the running job ends.
  3. Once all of them are 'Paused', do the work on the server. Jobs that arrive in the meantime wait in their queue.
  4. When you are done, press the resume button for each agent.

When creating or editing a workspace, the admin picks a GPU mode: none, dedicated or shared. Which server suits each mode and how to create a workspace are in Workspaces and environments. This section covers what the server checks when a workspace starts.

When a workspace starts, the server checks the following. If any check fails, the workspace does not start and the reason is shown.

Check Applies to When it fails
Server memory All workspaces If the CPU memory of running workspaces plus this workspace's value exceeds server memory minus the system reserve, the start is refused with '장비 메모리가 부족합니다 (실행 중인 워크스페이스를 정리해 주세요)' (server memory is short, clean up running workspaces). The system reserve is 24 GB by default
Shared sum Shared If the CPU memory of workspaces sharing the same GPU plus this workspace's value exceeds the limit, the start is refused with 'GPU를 함께 쓰는 워크스페이스의 CPU 메모리 합이 장비 메모리를 넘습니다 (사용 중 …GB, 요청 …GB, 한도 …GB)' (the CPU memory of workspaces sharing the GPU exceeds server memory, with the amount in use, requested and the limit)
GPU conflict Dedicated, shared A GPU held by a running dedicated workspace cannot be taken by another workspace, either as dedicated or as shared. A GPU held by running shared workspaces cannot be taken as dedicated. The start is refused with 'GPU를 다른 워크스페이스가 전용으로 쓰고 있습니다' (another workspace has the GPU as dedicated) or 'GPU를 다른 워크스페이스가 함께 쓰고 있어 전용으로 잡을 수 없습니다' (another workspace is sharing the GPU, so it cannot be taken as dedicated). On a server with one GPU, only one dedicated workspace can run at a time

The shared limit is server memory minus the system reserve on a unified memory server, and that GPU's memory on a server where each GPU has its own memory. On the latter the check is an approximation. It does not measure GPU memory and compares the CPU memory field against the GPU memory limit instead. A workspace whose CPU memory field is larger than this limit cannot be created or edited as shared.

On a unified memory server the CPU memory field does not limit the memory the GPU uses, and the ⓘ on the workspace page says 'Memory used by the GPU is not limited by this value'. Dedicated only means no other workspace can take the same GPU, so queued jobs and serving still use it whatever the workspace GPU mode.

When shared workspaces exist, the floor map's pillar details and the GPU cards in the member overview show 'Shared memory a/b GB'. a is the CPU memory sum of the shared workspaces and b is the limit.

On a unified memory server, GPU memory requests are not bound by the memory limits of workspaces or jobs. A request larger than the free memory does not fail. It keeps using server memory to the end. Left alone, the whole server can freeze, so the memory guard stops GPU programs before that happens. The same topic from the user's side is in Share GPUs and the queue.

The memory guard checks the server's available memory every second, and more often as it nears the threshold. Swap does not count as headroom. The threshold is the larger of 12 GB and 10% of server memory. The guard acts when available memory drops below it.

Its targets are GPU programs inside workspaces, queued jobs, test serving and endpoints. The platform (screens, API, databases and so on) is never a target. Tools that only read GPU status, such as nvidia-smi, do not count as GPU use.

It stops things in this order.

  1. It picks the one workspace, job or serving that started using the GPU most recently and stops all GPU processes inside it.
  2. It checks for up to 15 seconds that the stopped processes have ended. If memory is recovering, it waits. If memory is still short, it stops the next most recent one.
  3. If memory is in danger while nothing is using the GPU, it stops the job or serving that uses the most memory. If there is none, it stops the largest user program in a workspace.
  4. Endpoints come last. They are stopped only when no other target is left. A new version that has never finished getting ready, and an endpoint whose measured GPU memory exceeds 1.2 times its reservation (the default), are treated like ordinary serving.

This rule protects work that was running first. There is no guarantee that the most recent one used the most memory. If the guard cannot keep up and memory runs out, the server can stop responding for a while before the operating system kills processes. Its choice is weighted so that jobs and serving go first, then workspaces, then the platform.

It actually stops processes only on a unified memory server. On a server where each GPU has its own memory, GPU memory does not use server memory, so it does not stop anything and only records the target (dry run).

Stopped target On screen Notification
A GPU program in a workspace Ends with 'Killed' (exit code 137) or the notebook kernel reports that it died, while the workspace and its files are untouched 'Training stopped: device memory was low'
A queued job Ends as failed, and on a server with auto-assign on it is requeued automatically when the conditions are met (Checkpoints and resume) 'Training stopped: device memory was low'
Test serving Stops, and Playground shows 'Stopped by the memory guard' 'Model serving stopped: device memory was low'
Endpoint Turns 'Waiting for memory' and refuses calls until memory frees up, then starts again (Endpoints) 'Recovering endpoint'

In a workspace every GPU program stops, whoever started it, but the notification goes to only one of the people who ran GPU programs there (the workspace owner if unknown). It opens that workspace, and other members whose programs stopped do not get it. The queued job notification goes to the job owner and opens the run's log. The test serving notification goes to the serving owner.

The body of a memory guard notification gives the available memory and threshold at the time and the stopped target. These notifications are of the 'Device notices' kind, so people who turned off device notices in Settings › Notifications do not get them. Nothing is sent when the guard only records a dry run.

  • Settings › Action log records 'Memory guard stopped a GPU process'. The entry holds the time, the available memory before and after, the threshold, the workspace name or job id and user, the stopped process ids, a command summary (executable and script names of one representative process) and the reason. A dry run is recorded as 'Memory guard target (dry run)'.
  • The server memory bar at the top of the Scheduling page shows the memory guard threshold line. It appears only on servers where the guard actually stops processes.
  • Running ./install.sh check on the server console also checks the memory guard. It warns if the guard has stopped or is running in dry-run mode (Install, update and back up).