# Spare Cores Navigator Docs > Open, standardized data on the cloud servers, managed databases, storage and other cloud resources of many vendors: specs, prices, hardware inspection and benchmark results, and their cost-efficiency. The Spare Cores Navigator offers open, standardized data on the cloud servers, managed databases, storage and other resources of Alibaba Cloud, Amazon Web Services, Google Cloud Platform, Hetzner Cloud, Microsoft Azure, Oracle Cloud Infrastructure, OVHcloud, UpCloud and Vultr: their specs, their prices in each region (on-demand and spot), the hardware details and benchmark scores of the servers, and cost-efficiency metrics combining them. The data is updated about once or twice an hour; the API's `GET /healthcheck` returns the version it serves (`database_published_at`). The hardware details and benchmark scores come from the Inspector, the benchmark orchestrator, which starts the servers and runs the container images on them (see Under the hood). Terms such as SCore or bogo ops are explained in the [Glossary](https://docs.sparecores.com/glossary.md). Ways to access the data: the Web UI at sparecores.com, without writing code; the HTTP API, most of it without authentication (a token, issued on request, raises the rate limits); and the whole database as an SQLite file. The code is open source under MPL 2.0, the raw data is under CC BY-SA 4.0, and the compiled database under BSL 1.1. Machine-readable resources: - [OpenAPI specification of the HTTP API](https://keeper.sparecores.net/openapi.json): the API is served at `https://keeper.sparecores.net`. Its search endpoints (listed first under API) filter and sort the records; the table endpoints dump whole tables, and the snapshot endpoints serve them pinned to a version of the database (both under Optional) - [Database schema](https://docs.sparecores.com/schemas/schema.sql): CREATE TABLE statements with column comments - [Database dump](https://cdn.sparecores.net/sc-data/latest/sc-data-all.sql.xz): xz-compressed SQLite dump of the current data (41 MB to download, 1.3 GB once imported into SQLite), also available via the `sparecores-data` Python package - [llms-full.txt](https://docs.sparecores.com/llms-full.txt): the content of the main pages in a single file, without those of the Optional section ## Spare Cores Navigator The Spare Cores Navigator offers the most detailed and transparent dataset on cloud servers, managed databases, storage and a growing number of other cloud resources. It is both an open-source Python framework and a managed service: you can run its open-source components yourself, or use the managed service, i.e. the data on sparecores.com, its API, and the database download. We continuously discover what each cloud vendor offers, such as the available server types in every region, and keep their prices fresh, updating them about once or twice an hour. We then launch thousands of these servers to run low-level hardware inspection and a diverse set of benchmarks, collecting reliable and reproducible performance data, and combine the results with the prices into cost-efficiency metrics. Everything is published as Python packages, [public datasets](https://docs.sparecores.com/data.md), and a [public API](https://docs.sparecores.com/api.md), making it easy to search, analyze, and integrate. The Navigator is not just about data. It's a full platform: open-source code, interactive data visualizations at [sparecores.com](https://sparecores.com/servers), and managed infrastructure. For teams that need SLA-backed support or custom features, enterprise-grade services are available too. :::tip[New here?] [Getting started](https://docs.sparecores.com/getting-started.md) shows the quickest ways to start using the data. ::: ### Why it matters Cloud vendors sell servers by their number of vCPUs and amount of memory, but a vCPU can be anything from a share of an older core, which competes with other servers, to a dedicated core of a current CPU with large caches. For example, two server types of hyperscalers, both with 2 vCPUs and x86 CPUs: one shares a single core at 2.2 GHz, the other has two dedicated cores at 5.0 GHz. When we measured them in November 2026, the single-core [SCore](https://docs.sparecores.com/glossary.md#score) of the second was over 30 times higher (about 4,200 against 133). A server with many vCPUs can be slower than a single core of another server type. At the same time, prices grow about linearly with the size of servers, so packing more work onto a bigger server saves little. What saves money is running each workload on the cheapest server type that fits it, which takes specs, prices and performance that compare across vendors. The vendors' catalogs don't provide that, so the Navigator collects their data into one schema, starts the servers to inspect their hardware, and runs the same benchmarks on all of them. Picking the right hardware adds to the other ways to cut cloud costs, such as removing idle resources, autoscaling, or spot and reserved instances, which still apply to the server type you pick. ### What's covered The Navigator currently tracks the following cloud vendors: - [Alibaba Cloud](https://sparecores.com/vendors/alicloud) - [Amazon Web Services](https://sparecores.com/vendors/aws) - [Google Cloud Platform](https://sparecores.com/vendors/gcp) - [Hetzner Cloud](https://sparecores.com/vendors/hcloud) - [Microsoft Azure](https://sparecores.com/vendors/azure) - [Oracle Cloud Infrastructure](https://sparecores.com/vendors/oci) - [OVHcloud](https://sparecores.com/vendors/ovh) - [UpCloud](https://sparecores.com/vendors/upcloud) - [Vultr](https://sparecores.com/vendors/vultr) For each of them, depending on what the vendor offers: - **Servers:** their specs, such as CPU, memory, GPUs, storage and network, and their prices in each region, on-demand and spot. - **Managed databases:** PostgreSQL offerings, with their specs and prices. - **Storage, traffic and IPv4 addresses:** their prices in each region. On top of this standardized dataset, the Inspector, our benchmark orchestrator, starts the servers to discover their hardware and run the [benchmark workloads](https://docs.sparecores.com/benchmarks.md), also against managed databases, and the Navigator combines the scores with the prices into cost-efficiency metrics. For the current numbers of server types, zones, benchmark scores and prices, see the [Navigator page on sparecores.com](https://sparecores.com/about/navigator). ### How it works The [Crawler](https://docs.sparecores.com/crawler.md) collects the products and prices of the cloud vendors into the database. The Inspector then runs hardware discovery and benchmarks on their servers, in containers started from our [container images](https://docs.sparecores.com/images.md), and the Crawler adds the results to the database, which is then available [for download](https://docs.sparecores.com/sqlite.md), via the [API](https://docs.sparecores.com/api.md), and on [sparecores.com](https://sparecores.com/servers) (see the [Web UI](https://docs.sparecores.com/web-ui.md) guide). See [Under the hood](https://docs.sparecores.com/under-the-hood.md) for the steps, the components, and a diagram of where they run. For the full list of components, with their licenses, repositories and docs, see the [components table](https://docs.sparecores.com/under-the-hood.md#components). ### Licensing The Spare Cores Navigator comes with open licenses: its software components under MPL 2.0, and all raw collected data under CC BY-SA 4.0. Its managed services, the API and the compiled database, are free for exploring, prototyping and research, and the database also for production use by small companies; other production use needs a commercial agreement. For deep production integrations and enterprise reliability, we also offer expert support and consulting services. In detail (hover or tap a license for its summary and links): - **Source code** of all components, such as the [Crawler](https://docs.sparecores.com/crawler.md), the [HTTP API](https://docs.sparecores.com/api.md) and the [Web UI](https://docs.sparecores.com/web-ui.md): MPL 2.0. - **Raw data**, including the [Crawler Data and the Inspector Data](https://docs.sparecores.com/data.md): CC BY-SA 4.0. - **Database**, the [SQLite file](https://docs.sparecores.com/sqlite.md) compiled from the raw data, also downloaded by the Data Wrapper (the `sparecores-data` Python package): BSL 1.1. The license details of each release, such as its publisher, release date and additional usage terms, are in its `_metadata` table. - **HTTP API**: free to use under a fair use policy. For higher limits and commercial use, see its [Fair Use & Commercial Use](https://docs.sparecores.com/api.md#fair-use--commercial-use) section. For commercial access, support or consulting, [contact Spare Cores](https://sparecores.com/contact). ### FAQ #### Why not use the vendors' catalogs? The vendors' catalogs differ in what they list and how, leave out details such as the CPU's caches or whether its cores are shared, and are sometimes wrong. The Navigator collects their data into one schema, then starts each server and reads its hardware directly, and publishes the raw outputs as the Inspector Data (see [Data](https://docs.sparecores.com/data.md#datasets-and-licenses)). #### Why not ask an LLM? An LLM answers from sources such as the vendors' catalogs, with their gaps, and often guesses where they are silent: in our tests, for example, it doubled a cache size. The Navigator doesn't guess. Its specs come from the vendors' data and from measuring each server, and its benchmark scores from running the same workloads on all of them. What is neither listed nor measured is left out explicitly, as an empty value or a missing score, rather than estimated (see [Data](https://docs.sparecores.com/data.md#things-to-know)). To use the Navigator with an AI assistant, point it at the data instead (see [Getting started](https://docs.sparecores.com/getting-started.md#use-ai-tools)). #### Can I trust the benchmark scores? We don't have answers to all questions, but we transparently report what we measure and how we measure it, so that you can trust, build on, or reproduce and extend our work. The [Benchmarks](https://docs.sparecores.com/benchmarks.md) describe each workload, and the [container images](https://docs.sparecores.com/images.md) that run them their methods and limitations. Some server types lack some scores, e.g. when a benchmark failed or the vendor had no capacity (see [Data](https://docs.sparecores.com/data.md#things-to-know)). #### Can I use the data in my own tools? Yes: use the [raw data](https://docs.sparecores.com/data.md#datasets-and-licenses), download the [SQLite database](https://docs.sparecores.com/sqlite.md), host the API yourself, or query our managed [API](https://docs.sparecores.com/api.md), under their terms (see [Licensing](#licensing)): - **Raw data** (the Crawler and Inspector Data): CC BY-SA 4.0, which allows any use, also commercial, with attribution, and requires sharing adapted data under the same license. - **Database:** BSL 1.1. Its additional use grant allows production use for non-commercial academic research at accredited universities, and for entities with less than $1,000,000 USD in annual revenue, unless the use creates a competing cloud data, benchmarking, or price-comparison service. Each release converts to CC BY-SA 4.0 three years after its publication. - **API code** ([`sc-keeper`](https://github.com/SpareCores/sc-keeper)): MPL 2.0, so anyone can host it (see its [Open Source & Self-Hosting](https://docs.sparecores.com/api.md#open-source--self-hosting) section). It serves the database, whose terms above apply to the data. - **Managed API** (`keeper.sparecores.net`): free under a fair use policy, which covers evaluating and prototyping; for production use or higher limits, see its [Fair Use & Commercial Use](https://docs.sparecores.com/api.md#fair-use--commercial-use) section. - **Other uses:** for anything these terms don't cover, e.g. commercial use of the database, [contact Spare Cores](https://sparecores.com/contact). For example, the [Resource Tracker](https://pypi.org/project/resource-tracker/) Python package measures the resources a job uses, and recommends the cheapest server type for it from the Navigator's data. ### Next steps - **Start here:** [Getting started](https://docs.sparecores.com/getting-started.md) shows the quickest ways to use the data. - **Browse it:** search, filter and compare servers on [sparecores.com](https://sparecores.com/servers), without writing code; see the [Web UI](https://docs.sparecores.com/web-ui.md) guide. - **Integrate it:** query the [API](https://docs.sparecores.com/api.md), download the [SQLite database](https://docs.sparecores.com/sqlite.md), or see all the datasets in [Data](https://docs.sparecores.com/data.md). - **Use it with AI tools:** point your assistant or agent at [llms.txt](https://docs.sparecores.com/llms.txt); see [Getting started](https://docs.sparecores.com/getting-started.md#use-ai-tools). - **See how it's made:** [Under the hood](https://docs.sparecores.com/under-the-hood.md) covers the components, how they work together, and where they run. - **Watch the talks:** the conference talks of the Spare Cores team on how the Navigator works and what its data shows, with their slides and most with video recordings, at [sparecores.com/talks](https://sparecores.com/talks). --- ## Getting started The Spare Cores Navigator data is open, and you can start using it in a few minutes -- with or without writing code. ### Pick your path | I want to… | Use | First result | | ---------- | --- | ------------ | | find or compare servers, without code | the [Web UI](#browse-the-web-ui) | in a minute | | build the data into a tool | the [HTTP API](#query-the-api) | one command | | analyze the whole dataset | the [SQLite database](#download-the-database) | one download | | ask an AI assistant | the docs as [plain Markdown](#use-ai-tools) | one prompt | ### Browse the Web UI Open the [server listing](https://sparecores.com/servers) on sparecores.com, set your requirements in the filters on the left, e.g. at least 8 vCPUs and 32 GB of memory, and sort the results by price, or by performance and cost-efficiency. The [Web UI](https://docs.sparecores.com/web-ui.md) guide covers each step: [finding servers](https://docs.sparecores.com/web-ui/listings.md), [comparing them](https://docs.sparecores.com/web-ui/compare.md), [the Advisor](https://docs.sparecores.com/web-ui/advisor.md), which recommends servers for a workload compared to a server you use today, and [prices](https://docs.sparecores.com/web-ui/prices.md). ### Query the API The API needs no authentication for most of its endpoints. For example, the 3 cheapest server types with at least 8 vCPUs and 32 GB of memory, by their on-demand price: ```shell curl -G https://keeper.sparecores.net/servers \ -d vcpus_min=8 \ -d memory_min=32 \ -d best_price_allocation=ONDEMAND_ONLY \ -d limit=3 ``` Each server type comes with its specs, its lowest prices and its benchmark scores. The [API examples](https://docs.sparecores.com/api/examples.md) go further, e.g. ranking servers by a benchmark or looking up one server's prices, and the [API](https://docs.sparecores.com/api.md) reference covers every endpoint and parameter, with a built-in API client to try them right from your browser. ### Download the database The Data Wrapper, the `sparecores-data` Python package, downloads the whole database as a single SQLite file (about 40 MB to download, 1.3 GB once imported), e.g. to count the active server types of each vendor: ```shell pip install sparecores-data sc-data download sc-data.db sqlite3 sc-data.db " SELECT vendor_id, COUNT(*) FROM server WHERE status = 'ACTIVE' GROUP BY vendor_id" ``` The [SQLite](https://docs.sparecores.com/sqlite.md) page covers querying it from Python, and more example queries. ### Use AI tools AI assistants and coding agents can read the docs as plain Markdown, following the [llms.txt](https://llmstxt.org/) convention: - [llms.txt](https://docs.sparecores.com/llms.txt): an index of all pages, plus the machine-readable resources, such as the OpenAPI specification of the API, the database schema in SQL, and the database dump - [llms-full.txt](https://docs.sparecores.com/llms-full.txt): the full content in a single file Each page is also available as Markdown by adding `.md` to its URL, e.g. [overview.md](https://docs.sparecores.com/overview.md) for the Overview. For example, ask your assistant: > Read https://docs.sparecores.com/llms.txt, then use the Spare Cores Navigator > API to find the cheapest server types with at least 8 vCPUs and 32 GB of > memory in Europe, and compare their benchmark scores. ### Key concepts - **Vendor, region and zone:** a vendor (cloud provider) offers its server types in regions, which consist of availability zones. Prices can differ by region and zone. - **Server type:** a machine size a vendor offers, such as AWS `t4g.2xlarge`, identified by its vendor and server ID. `api_reference` is its name in the vendor's API. - **Allocation:** on-demand servers run until you stop them; spot servers are cheaper, but the vendor can take them back at any time. - **Prices:** hourly, in the vendor's currency in the database, and in USD by default in the API. See [Understand prices](https://docs.sparecores.com/web-ui/prices.md). - **Benchmark scores:** the results of the [benchmark workloads](https://docs.sparecores.com/benchmarks.md) run on each server type. The [SCore](https://docs.sparecores.com/glossary.md#score) is its CPU speed, and the API's `score_per_price` divides it by the hourly price, for comparing cost-efficiency. The [Glossary](https://docs.sparecores.com/glossary.md) explains the other terms, and the [Schemas](https://docs.sparecores.com/schemas.md) every field. ### Keeping up to date The data is updated about once or twice an hour: - The API serves the current version, and says which one in the `SC-Data-Hash` and `SC-Data-Published-At` headers of every response, and in `GET /healthcheck`. To read several tables of the same version, use its snapshots (see [Data versions and snapshots](https://docs.sparecores.com/api.md#data-versions-and-snapshots)). - The Data Wrapper keeps the database up to date in Python, and `sc-data download` gets the current version. - The [status page](https://status.sparecores.com) shows whether the updates ran on time, and the uptime of the API and the website. ### Before you build on it - **API limits:** the API is free to use under a fair use policy, with 300 credits per minute per IP address or user (see [Rate limiting](https://docs.sparecores.com/api.md#rate-limiting)). Some endpoints, such as the snapshots, need a free personal API key, created in your account on sparecores.com. For higher limits or commercial use, see [Fair use and commercial use](https://docs.sparecores.com/api.md#fair-use--commercial-use). - **Licenses:** the code is open source under MPL 2.0, the raw data is under CC BY-SA 4.0, and the compiled database under BSL 1.1. See [Licensing](https://docs.sparecores.com/overview.md#licensing) for the details. ### Common tasks - **The cheapest server for given specs:** the Web UI's [server listing](https://docs.sparecores.com/web-ui/listings.md), or the API's `/servers` sorted by `min_price` (its default). - **The prices of a server in each region:** the server's page on sparecores.com, e.g. [AWS t4g.2xlarge](https://sparecores.com/server/aws/t4g.2xlarge), or the API's `/server/{vendor}/{server}/prices`. - **The benchmark scores of a server:** the same page, or the API's `/server/{vendor}/{server}/benchmarks`. - **Servers with the fastest single core:** in the Web UI's listing, pick PassMark's [CPU Single Threaded Test](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_single_threaded_test) with **Select Benchmark** and sort by the **BENCHMARK** column; or see the [API](https://docs.sparecores.com/api/examples.md#rank-servers-by-a-benchmark) and [SQL](https://docs.sparecores.com/sqlite.md#example-the-fastest-single-core) examples. - **Similar servers at other vendors:** the API's `/server/{vendor}/{server}/similar_servers/{by}/{num}`. - **Storage and traffic prices:** the API's `/storage_prices` and `/traffic_prices`, or the `storage_price` and `traffic_price` tables. ### Getting help If the API or the website seems down, or the data out of date, check the [status page](https://status.sparecores.com) first. Open an issue in the GitHub repository of the part you have a question about: - the data, e.g. a missing server or a wrong price: [`sc-crawler`](https://github.com/SpareCores/sc-crawler/issues) - the benchmark workloads and their results: [`sc-images`](https://github.com/SpareCores/sc-images/issues) - the API: [`sc-keeper`](https://github.com/SpareCores/sc-keeper/issues) - the Web UI: [`sc-www`](https://github.com/SpareCores/sc-www/issues) - the Python package: [`sc-data`](https://github.com/SpareCores/sc-data/issues) If you're not sure where it belongs, or would rather talk to us directly, [contact Spare Cores](https://sparecores.com/contact). We're always happy to hear from you. --- ## Data The Spare Cores Navigator data covers the cloud servers, managed databases, storage and other resources of the vendors listed under [What's covered](https://docs.sparecores.com/overview.md#whats-covered): their specs, prices and benchmark scores. This page describes what the data holds, where to get it and under which license, and what to know when using it. For the current numbers of server types, zones, benchmark scores and prices, see the [Navigator page on sparecores.com](https://sparecores.com/about/navigator). ### What's in the data | Resource | Specs | Prices | Benchmark scores | Tables | | -------- | ----- | ------ | ---------------- | ------ | | Servers | CPU, memory, GPUs, storage, network | per region and zone, on-demand and spot | yes | `server`, `server_price` | | Managed databases (PostgreSQL) | engine versions, high availability, backups | per region | yes | `database`, `database_price` | | Storage | type, size, IOPS and throughput limits | per region | – | `storage`, `storage_price` | | Storage of managed databases | size, IOPS and throughput limits, redundancy | per region | – | `database_storage`, `database_storage_price` | | Traffic | – | inbound and outbound, per region | – | `traffic_price` | | IPv4 addresses | – | per region | – | `ipv4_price` | Also in the data: - **Where:** the vendors, their regions and availability zones, and the countries of the regions (`vendor`, `region`, `zone`, `country`), and the compliance frameworks, such as SOC 2, of each vendor (`compliance_framework`, `vendor_compliance_link`). - **Benchmarks:** the definition of each [benchmark](https://docs.sparecores.com/benchmarks.md) (`benchmark`), and the scores of the servers and managed databases (`benchmark_score`). - **Descriptions:** plain English descriptions of the servers' hardware, performance, cost-efficiency and workload fit (`server_description`). Managed databases are covered at all vendors but Hetzner Cloud, which doesn't offer them. The [Schemas](https://docs.sparecores.com/schemas.md) describe every table and column. ### Datasets and licenses | Dataset | What | Where | License | | ------- | ---- | ----- | ------- | | Crawler Data | JSON dumps of the tables, one file per record, with the history of the specs in git; not the prices and benchmark scores | [`sc-data-dumps`](https://github.com/SpareCores/sc-data-dumps) | CC BY-SA 4.0 | | Inspector Data | the raw hardware inspection outputs and benchmark results of each server | [`sc-inspector-data`](https://github.com/SpareCores/sc-inspector-data) | CC BY-SA 4.0 | | Database | the Crawler and Inspector Data compiled into one SQLite file, with the prices and benchmark scores | [SQLite](https://docs.sparecores.com/sqlite.md), the Data Wrapper (`sparecores-data`) | BSL 1.1, converting to CC BY-SA 4.0 three years after each release | | API | the database, queried over HTTP | [API](https://docs.sparecores.com/api.md) | free under a fair use policy | The Inspector Data comes from the [container images](https://docs.sparecores.com/images.md) that the Inspector runs on the servers (see [Under the hood](https://docs.sparecores.com/under-the-hood.md)), and the database's `_metadata` table records the details of its license. See [Licensing](https://docs.sparecores.com/overview.md#licensing) for the licenses of the code, and for commercial use. ### Which way to use | Way | Best for | | --- | -------- | | [Web UI](https://docs.sparecores.com/web-ui.md) | finding and comparing servers without writing code | | [API](https://docs.sparecores.com/api.md) | applications and scripts: filters, sorting, and prices converted to one currency, so that all vendors compare | | [SQLite](https://docs.sparecores.com/sqlite.md) | analysis with SQL or Python over the whole dataset, offline | | Crawler Data | how the specs changed over time, in the git history of the dumps (the history of prices and benchmark scores is not published) | | Inspector Data | the raw outputs behind the hardware details and benchmark scores | To get started with each, see [Getting started](https://docs.sparecores.com/getting-started.md), the [API examples](https://docs.sparecores.com/api/examples.md), and the example queries of the [SQLite](https://docs.sparecores.com/sqlite.md#get-to-know-the-data) page. ### Freshness and versions - The data, including the prices, is updated about once or twice an hour. The [status page](https://status.sparecores.com) shows whether the scheduled updates of the database ran on time, with their history, and the uptime of the API and the website. - Every API response says which version of the database it was built from (the `SC-Data-Hash` and `SC-Data-Published-At` headers, also in `GET /healthcheck`). To read several tables of the same version, use the API's [snapshots](https://docs.sparecores.com/api.md#data-versions-and-snapshots). - The Data Wrapper checks for a newer database every 10 minutes in Python, and each database records when it was published in its `_metadata` table. - Server types, prices and scores that are no longer available stay in the database, with their `status` telling it. ### Things to know - **Currencies:** prices are in the vendor's currency in the database, e.g. EUR for Hetzner Cloud, OVHcloud and UpCloud. The database has no exchange rates, so compare prices in one currency, or use the API, which converts them (`currency`, USD by default). - **Units:** prices are per their `unit`, e.g. per hour for servers. Memory is in MiB in the database (`memory_amount`), but the API's filters take GB. - **Status:** filter on `status = 'ACTIVE'` for the current offerings. - **IDs:** a region, zone or server ID is unique only within its vendor, so every table refers to these by the vendor ID and the record's ID together, e.g. a server price to its server, region and zone. Join on both. - **Empty specs:** specs that the vendor doesn't publish and the inspection couldn't measure are empty (`NULL`), e.g. the CPU model, cores, clock speed or caches of some server types, or the memory speed of most of them. Leave them out explicitly when filtering or sorting by them. - **Benchmark scores:** a score belongs to a server or a managed database (`resource_type`, and `resource_id` its ID). A benchmark's configuration, e.g. the model of an LLM benchmark, is JSON (`config`): match its fields, e.g. with `json_extract` in SQLite, as it can have other fields too. The API's `benchmark_config` instead matches the text exactly, so copy it from [`/benchmark_configs`](https://docs.sparecores.com/api/reference/search-benchmark-configs-benchmark-configs-get.md). - **Missing scores:** a server type can lack some or all benchmark scores, e.g. when a benchmark failed on it, or when we couldn't start it (no budget or quota, or the vendor had no capacity). The [benchmark coverage](https://sparecores.com/navigator/benchmark-coverage) page of sparecores.com shows which scores are measured. - **Scores:** the [SCore](https://docs.sparecores.com/glossary.md#score) is the multi-core CPU speed of a server, and the API's `score_per_price` divides it by the hourly price. Other benchmarks measure other workloads, in their own units, see [Benchmarks](https://docs.sparecores.com/benchmarks.md). ### References - [Schemas](https://docs.sparecores.com/schemas.md): the tables and columns of the database, which the API responses follow too. - [Benchmarks](https://docs.sparecores.com/benchmarks.md): the benchmark workloads behind the scores, with their units and the distribution of their results. - [Glossary](https://docs.sparecores.com/glossary.md): the terms used in the data and these docs. ### Report a data issue A missing server, a wrong price or spec: open an issue in [`sc-crawler`](https://github.com/SpareCores/sc-crawler/issues), which collects the data, or in [`sc-images`](https://github.com/SpareCores/sc-images/issues) for a benchmark result. See [Getting help](https://docs.sparecores.com/getting-started.md#getting-help) for the other places. --- ## Web UI user guide Links: [GitHub repository of sc-www](https://github.com/SpareCores/sc-www), [sparecores.com](https://sparecores.com/servers). The Spare Cores Web UI, at [sparecores.com](https://sparecores.com/), lists cloud servers from many vendors with their prices and benchmark results. Use the [Servers listing](https://docs.sparecores.com/web-ui/listings.md) to browse, filter, and compare servers yourself. Use the [Advisor](https://docs.sparecores.com/web-ui/advisor.md) when you run a server today and want a cheaper or faster server for the same workload. You do not need an account to start. As a guest, you can browse and filter servers, use Search Prompt and the Advisor, compare up to four servers at a time, and share links. Register for free to save bookmarks and to remove the compare and location-filter limits; see [Guest limits](https://docs.sparecores.com/web-ui/accounts-and-bookmarks.md#guest-limits). ### Choose a task - [Find servers and databases](https://docs.sparecores.com/web-ui/listings.md) to search, filter, and inspect servers and managed databases. - [Compare servers and databases](https://docs.sparecores.com/web-ui/compare.md) to review servers or managed databases side by side. - [Get recommendations in the Advisor](https://docs.sparecores.com/web-ui/advisor.md) to compare a baseline server with other servers for a selected workload. - [Understand prices](https://docs.sparecores.com/web-ui/prices.md) to learn what the price and currency controls change. - [Create an account and manage bookmarks](https://docs.sparecores.com/web-ui/accounts-and-bookmarks.md) to save servers and searches. ### Where the results come from The site's data comes from [Spare Cores Navigator](https://docs.sparecores.com/overview.md), the platform that collects cloud resource information and prices, inspects servers, and runs benchmark workloads; its Overview describes the data flow. The [Benchmarks](https://docs.sparecores.com/benchmarks.md) reference describes benchmark workloads. For other ways to access the data, such as the API or an SQLite download, see [Data](https://docs.sparecores.com/data.md). ### Help For help or feedback, [contact Spare Cores](https://sparecores.com/contact). --- ## Find servers and databases Find servers and managed databases in the site's listings with filters, search by name or ID, and Search Prompt, which turns a description of what you need into filters. Start from the [Servers listing](https://sparecores.com/servers). For a [video introduction](https://www.youtube.com/watch?v=hO0KQoxk1SM) to the listing, select **Introduction** in the page header. ### Search for servers Use any of the following ways to narrow the listing: - To find a known server, open **Basics** and enter part of its name or ID under **Partial name or id**. Press Enter or click away to apply the filter. - To describe a requirement in your own words, select **Search Prompt** at the top of the sidebar, describe what you need, and select **Submit**. Review the **Suggested filter parameters**, then select **Confirm** to apply them. Confirm replaces your current filters with the suggestions, so use Search Prompt before you set filters by hand. It may not apply every part of a request, so check the resulting filters. - Open the filter groups in the sidebar to narrow results further. The groups are **Basics**, **Performance**, **Processor**, **CPU Cache**, **Memory**, **Accelerator**, **GPU**, **ASIC**, **Storage**, **Network**, **Vendor**, and **Region**; only **Processor** is open by default. The following screenshot shows the Search Prompt dialog with suggested filter parameters, before you select **Confirm**: ![The Search Prompt dialog with a request for 4 vCPU and 16 GB RAM, the suggested filter parameters below it, and the Confirm button.](https://docs.sparecores.com/web-ui/navigator-search-prompt.webp) The **Basics** group also includes **Active only** and **Orderable only**; Orderable only is selected by default. The **Performance** group includes the following filters: - **Required SCore** - **Required $Core** - **Required benchmark score** - **Maximum benchmark score** - **Required benchmark score/price** - **Required benchmark score/vCPU** For a walkthrough of these filters, read [Search and Order Servers for Any Workload](https://sparecores.com/article/search-benchmarks). Select **Show filter description** beside a field if you are unsure what it filters. Two scores appear throughout the site: - **SCore** (Spare Cores score) is a server's multi-core CPU speed, measured with the CPU stressor of `stress-ng`. See the [glossary](https://docs.sparecores.com/glossary.md#score). For how `stress-ng` CPU methods scale, see [Burning CPU Cycles in a Wide Variety of Ways](https://sparecores.com/article/stress-ng-cpu-methods). - **$Core** is the SCore per USD per hour, using the server's best on-demand or spot price across all zones. Guests can select one country in the Region filter. For other guest limits, see [Accounts and bookmarks](https://docs.sparecores.com/web-ui/accounts-and-bookmarks.md). ### Choose a benchmark and view results Select **Select Benchmark** above the results to choose a benchmark and, where available, a configuration. Your choice sets what the **BENCHMARK** and **$ EFFICIENCY** columns show and what the benchmark filters in the **Performance** group compare against. ![The row above the results table with the benchmark selector, the price selector set to Any price, the currency selector set to USD, and the Columns button.](https://docs.sparecores.com/web-ui/navigator-benchmark-row.webp) Benchmark categories include LLM inference speed. Its configurations distinguish prompt processing from text generation and include model and token settings; see [LLM Inference Speed Benchmarks](https://sparecores.com/article/llm-inference-speed) for how they were measured. For workload definitions, see the [Benchmarks reference](https://docs.sparecores.com/benchmarks.md). Use **Columns** to change which server properties appear in the listing. For example, you can add the **CPU CACHE** column. Select a column heading to sort by it; each further selection cycles through descending, ascending, and no sorting. Two of the default columns need a definition: - **$ EFFICIENCY** shows how much performance you get for your money: the selected benchmark's score divided by the server's best price, in USD per hour. - **BEST PRICE** is the server's lowest price across everything your search allows, such as regions and price types. Select a server name to open its detail page. The detail page shows server specifications and benchmark information, and includes a **Compare** control. To share a search, select **Share** in the page header of the listing. It copies a link that keeps your filters, benchmark, and columns. You do not need an account to share. ### Find managed databases Managed database services, or DBaaS (Database as a Service), are in the [Databases listing](https://sparecores.com/databases). Open it from **Databases** in the Navigator menu of the site's header. It works like the Servers listing: filter in the sidebar, use Search Prompt, and select the checkboxes of two or more databases to compare them. Guests can compare up to four databases at a time. Its price selector offers **Any price**, **Hourly prices**, and **Monthly prices**. For the database benchmark, see [Measuring PostgreSQL Performance at Scale](https://sparecores.com/article/benchmark-pgbench-postgres). For price categories and currencies, see [Understand prices](https://docs.sparecores.com/web-ui/prices.md). For database schemas and programmatic access, see [Schemas](https://docs.sparecores.com/schemas.md) and [API](https://docs.sparecores.com/api.md). --- ## Compare servers and databases You can compare servers or managed databases side by side. Start from the [Servers or Databases listing](https://docs.sparecores.com/web-ui/listings.md), or from a server or database detail page. For servers, you can also start from the [Advisor](https://docs.sparecores.com/web-ui/advisor.md)'s recommendations. ### Start a comparison #### From a listing 1. Open the Servers or Databases listing. 2. Select the checkboxes for at least two servers or databases. 3. Select **Compare (N)**, for example **Compare (3)**, in the bar that appears at the bottom of the page, next to **Clear**. Guests can compare up to four servers, and separately up to four databases, at a time. The listing disables further selection when the guest limit is reached and shows a registration prompt. #### From a detail page Open a server or database from its listing and select **Compare**. The control changes to **Don't Compare** when that item is in the current selection. Add others the same way or from the listing. Once two or more servers or databases are selected, the compare icon in the site header shows their number. Select it to reorder or remove items or set a baseline, then select **Compare servers** or **Compare databases**. #### From the Advisor In the Advisor, select **Compare baseline**, select the checkboxes of one or more recommendations, and select **Compare (N)**. The comparison shows the baseline next to the selected servers. See [Compare a recommendation with the baseline](https://docs.sparecores.com/web-ui/advisor.md#compare-a-recommendation-with-the-baseline). ### Read a comparison The comparison page places the selected servers side by side: property sections such as CPU, Memory, and Storage, then **Workload Profiles**, benchmark sections, and **Further Benchmarks**. Use the following cues to read it: - The best value in each row is highlighted in bold green. - Badges on the server columns mark the lowest price (💰), the best value for price (🥇), and the top performance (💪). ![A comparison of four servers with price and performance badges in the column headers, the Baseline server and currency controls, and the best values highlighted in green.](https://docs.sparecores.com/web-ui/compare-header.webp) The page also has a currency control and a **Baseline server** selector. Choose a baseline to see how the other servers differ from it: its column is underlined in green, and rows such as prices and CPU speed show each server's difference as a percentage, green where it beats the baseline and red where it falls short. The baseline is kept in the page's URL, so a shared link keeps it. Choose **No baseline** to remove it. A database comparison works the same way, with a **Baseline database** selector and the same green highlighting. It shows specification and price rows, a benchmark chart when results exist, and **More Details**; it has no price or performance badges. For what each benchmark workload measures, see the [Benchmarks reference](https://docs.sparecores.com/benchmarks.md). The [curated server comparisons](https://sparecores.com/servers/compare) and [curated database comparisons](https://sparecores.com/databases/compare) provide preselected groups to explore. For price display, see [Understand prices](https://docs.sparecores.com/web-ui/prices.md). For guest limits and bookmarks, see [Accounts and bookmarks](https://docs.sparecores.com/web-ui/accounts-and-bookmarks.md). --- ## Get recommendations in the Advisor The Advisor compares candidate servers with a baseline for a workload and utilization level. Open the [Advisor](https://sparecores.com/advisor) to begin. To see recommendations before you enter your own server, select **Example** in the page header. It fills in a sample baseline server, workload, and utilization. **Introduction**, next to it, opens a [video about the Advisor](https://www.youtube.com/watch?v=4QwvxaLTW2k). ### Set up an assessment The following screenshot shows the input panel with a baseline server, a workload, and a utilization filled in: ![The Advisor input panel with a baseline server, the Baseline workload, the Cost optimization goal, the Average utilization slider at 50%, and Required memory (RAM).](https://docs.sparecores.com/web-ui/advisor-input-panel.webp) 1. Choose a baseline server. The workload control is unavailable until you choose a baseline. 2. Choose a **Baseline workload**. The list shows only workloads measured on your baseline server, such as a web or LLM inference profile. 3. Set **Average utilization**: how busy your baseline server is on average, such as its average CPU or GPU usage. The Advisor uses it to see how far it can scale down the candidates' performance to save costs. Set it with the slider, from 0 to 100% in steps of 10%. It starts as "Not set", and the Advisor shows no results until you set it. To use 0%, move the slider and then back to 0. 4. Choose an optimization goal: **Performance**, **Cost**, or **Cost-efficiency**. **Cost** is the default. 5. Check **Required memory (RAM)**. The Advisor fills it in from the baseline's memory and your utilization; raise it to cover your peak memory use. **Required GPU memory (VRAM)** starts at 0, which means no GPU requirement. 6. Optionally, enter **Required storage size** and **Required storage type**, and **Monthly inbound traffic** and **Monthly outbound traffic** in GB. The Advisor adds the cost of extra storage and of this traffic to each server's price, so egress costs count in the comparison. 7. Optionally, under **Limit search for matching:**, keep results to the baseline's **CPU allocation** or **CPU architecture**, to one **Price allocation** type, or to one **Region** where the baseline is sold. The **Vendor** and **Region** filter groups limit results further. 8. Review the recommendations. The Advisor reports how many servers matched, or shows "No matches yet" if none did; then loosen your inputs or filters. The table shows how each server differs from the baseline as a percentage, for example "+12%" on price. The following screenshot shows the **Limit search for matching:** options from step 7: ![The Limit search for matching options: CPU allocation, CPU architecture, Price allocation, and Region.](https://docs.sparecores.com/web-ui/advisor-limit-search.webp) For example, with `aws / m5.large` as the baseline, an LLM inference workload, and 50% average utilization, the Advisor sets required memory to 4 GiB. ### Compare a recommendation with the baseline 1. Select **Compare baseline** above the recommendations to add the baseline to your comparison. The button changes to **Remove baseline**. 2. Select the checkboxes of one or more recommendations. 3. Select **Compare (N)** in the bar at the bottom of the page. The comparison shows the baseline and the selected servers side by side. For more detail on the comparison view, see [Compare servers and databases](https://docs.sparecores.com/web-ui/compare.md). Price allocation and currency affect the price information shown. See [Understand prices](https://docs.sparecores.com/web-ui/prices.md). The [Benchmarks reference](https://docs.sparecores.com/benchmarks.md) describes benchmark workloads used in the results. --- ## Understand prices The [Servers listing](https://docs.sparecores.com/web-ui/listings.md) and the [Advisor](https://docs.sparecores.com/web-ui/advisor.md) provide controls for choosing which price data to use and which currency to display. The displayed price depends on those choices. ### Choose a price category The price selector above the Servers listing sets which prices count as a server's best price, which the **BEST PRICE** column and the price-based scores use. It offers the following categories: - **Any price**: the lowest price of the three categories below. This is the default. - **Ondemand prices**: pay-as-you-go hourly prices, with no commitment. - **Monthly prices**: on-demand prices per month. - **Spot prices**: discounted prices for spare capacity, which the vendor can reclaim at short notice. In the Advisor, select **Price allocation** under **Limit search for matching:** to choose one of the same categories. Without it, the Advisor uses any price. ### Change the display currency Use the currency selector above a listing, in the Advisor, or on a comparison page to show prices in another currency. USD is the default. Score-per-price values, such as \$Core and **$ EFFICIENCY**, stay per USD per hour whichever currency you choose. Check the unit shown with a value before you compare prices or efficiency scores. --- ## Create an account and manage bookmarks A free account lifts the guest limits and lets you bookmark servers, databases, searches, comparisons, and Advisor assessments. Without one, you can still use the [listings](https://docs.sparecores.com/web-ui/listings.md) and the [Advisor](https://docs.sparecores.com/web-ui/advisor.md). Select **Register** or **Log in** in the top-right corner of the site. ### Guest limits As a guest, you can use everything except bookmarks, with the following limits: - Compare up to four servers, and separately up to four databases, at a time. - In the **Region** filter, select one country and up to three regions. You can still open comparison links that others share with you, even when they hold more servers. When you reach a limit, the site offers to register you; registering removes the limits. For more on what registration gives you, see the [Registered users article](https://sparecores.com/article/registered-users). You need an account to save bookmarks. Select **Register** and either enter your name, email address, and password or continue with GitHub. Email registration requires an email verification code. If you select a gated bookmark action as a guest, the site can prompt you to register or sign in; the pending action completes after registration. When signed in, the account menu includes **Bookmarks**, **Edit Profile**, and **Sign Out**. ### Save servers, searches, and comparisons To bookmark a server or database, select its bookmark icon in the listing or on its detail page. The bookmark is saved at once, with no dialog; select the icon again to remove it. To save a search, a comparison, or an Advisor assessment: 1. Select the bookmark icon in the page header of the listing, comparison, or Advisor page. 2. Enter a **Name** of at least three characters. **Notes** are optional. 3. Select **Confirm** to save. ### Find and manage saved items Open **Bookmarks** from the account menu. The page groups saved items by type; its current filters include servers, databases, searches, comparisons, and assessments. Use the name search, category filters, or ordering controls to find an item. The following screenshot shows the Bookmarks page with a saved comparison, a saved search, and two bookmarked servers: ![The Bookmarks page with the name search, the Manual order control, the Servers, Databases, Searches, Comparisons, and Assessments toggles, and cards for a comparison, a search, and two servers, each with its action buttons.](https://docs.sparecores.com/web-ui/bookmarks-page.webp) Each saved item offers the following actions: - **Open** opens the server, database, search, comparison, or assessment. - **View note** shows the item's notes. - **Edit** changes the name and notes of a search, comparison, or assessment. - **Share** copies the item's link. - **Delete** removes the item from your bookmarks. --- ## Spare Cores Navigator API Links: [GitHub repository of sc-keeper](https://github.com/SpareCores/sc-keeper), [OpenAPI specification](https://keeper.sparecores.net/openapi.json). Version 2026.11+gd6a7b3f, served at https://keeper.sparecores.net, described by its [OpenAPI specification](https://keeper.sparecores.net/openapi.json). The Spare Cores Navigator API lets you programmatically explore cloud resources across providers in a standardized format, covering pricing, hardware specifications, benchmark performance, and cost-efficiency metrics. It is designed for FinOps engineers, data scientists, and platform teams, who prefer working with empirical and structured data rather than vendor heuristics. For more details, see [https://sparecores.com/about/navigator](https://sparecores.com/about/navigator). If you prefer to explore the data visually before integrating the API, the web interface exposes the same underlying dataset at [https://sparecores.com/servers](https://sparecores.com/servers). ### Getting Started The base URL of the API is `https://keeper.sparecores.net`, and most endpoints can be called without authentication. For example, list the 5 cheapest servers with at least 8 vCPUs: ```shell curl "https://keeper.sparecores.net/servers?vcpus_min=8&limit=5" ``` The search endpoints, such as `/servers` or `/databases`, share the following query parameters: - `limit` and `page` for pagination (`limit=-1` returns all results) - `order_by` and `order_dir` for sorting, e.g. by `min_price` (the default of `/servers`) - `add_total_count_header=true` to get the number of all matching results in the `X-Total-Count` response header Invalid parameters return a 422 response, listing the problems in its `detail` field. For the 429 and 503 responses, see Rate Limiting below. For more example requests, such as ranking servers by a benchmark or looking up the prices of a server, see [https://docs.sparecores.com/api/examples](https://docs.sparecores.com/api/examples). The fields of most responses follow the database schema, described at [https://docs.sparecores.com/schemas](https://docs.sparecores.com/schemas). ### Open Source & Self-Hosting The entire Navigator stack is open source and designed to be inspectable, reproducible, and self-hostable: - FastAPI implementation of this service: [https://github.com/SpareCores/sc-keeper](https://github.com/SpareCores/sc-keeper) - Database schemas and ETL tooling: [https://github.com/SpareCores/sc-crawler](https://github.com/SpareCores/sc-crawler) - Underlying data on cloud servers, regions, zones, storages and more: [https://github.com/SpareCores/sc-data-dumps](https://github.com/SpareCores/sc-data-dumps) - Raw hardware inspection and performance benchmarking logs: [https://github.com/SpareCores/sc-inspector-data](https://github.com/SpareCores/sc-inspector-data) Source code is licensed under **MPL-2.0**, raw data records under **CC-BY-SA-4.0**, compiled SQLite database under **BSL 1.1**. ### Caching Responses are served via reverse proxy and CDN with a 15-minute to 1-hour cache TTL for most endpoints. For real-time access, lower-latency requirements, or custom caching strategies, feel free to reach out -- we are happy to discuss what works best for your use case. ### Data Versions and Snapshots The data is updated about once or twice an hour. Every response says which version of the database it was built from: - `SC-Data-Hash`: the hash of the database, also returned as `database_hash` by `/healthcheck` - `SC-Data-Published-At`: when that version was published, e.g. `2026-11-07T22:47:08Z` To read several tables from the same version, use the `/snapshot` endpoints (API key required, see Authentication below). They serve each table as a file pinned to a database hash, with tables that reference a vendor split by vendor, e.g. `/snapshot/{hash}/server_price/aws`, with only available records and prices in USD. The responses are columnar JSON (one array per column, with one element per row), sent gzipped: send `Accept-Encoding: gzip` (curl: `--compressed`). `/snapshot/{hash}` lists every file of a hash with a checksum, so you can skip files that didn't change since your last refresh. 1. Take `database_hash` from `/healthcheck`, and fetch every snapshot with it. 2. On a 503 of type `/problems/snapshot-preparing`, the instance is still downloading or building that hash: retry the same request after the `Retry-After` header's seconds, for about a minute at most, then continue with step 3. 3. On a 404 of type `/problems/snapshot-not-available`, switch to the `current` hash in the response body, and fetch again what you already fetched. If that also returns 404, try again later. 4. Any other 404 (type `/problems/not-found`) is an unknown table or vendor, or a malformed id: don't retry. A benchmark without scores gets empty arrays. A hash's snapshots stay available for at least a day after they were first built. ### Rate Limiting Credit-based rate limiting with a 1-minute sliding window: - Default: 300 credits/minute - Cost per request: 1 credit (standard) with some exceptions for heavier queries, e.g. `/servers` (3 credits) or `/server_prices` (5 credits) - Tracking: per authenticated user or IP address - Headers: `X-RateLimit-Limit`, `X-RateLimit-Cost`, `X-RateLimit-Remaining` - Status code returned in case of rate limit exceeded: 429, with a `Retry-After` header indicating the number of seconds to wait. If the cost of a single request is higher than the credit limit, the 429 response has no `Retry-After` (nor `X-RateLimit-Remaining`) header, as retrying will never succeed. Furthermore, the number of concurrent heavy requests per worker might also be limited to avoid overloading the serving cluster or database; in such case, a 503 response will be returned. Temporary errors (such as 429 or 503 status codes) should be retried with exponential backoff, waiting at least the number of seconds in the `Retry-After` header when present. A 429 without `Retry-After` should not be retried. The default limits are intended to support exploration and prototyping. If you are building something larger, we are glad to help you scale access responsibly. ### Authentication Authentication is optional for most exploratory use cases, but required for some endpoints, such as `/snapshot`. Personal API keys are free and self-serve: sign up for an individual account at [https://sparecores.com](https://sparecores.com), then create a long-lived API key in your account settings. Personal keys are covered by the fair use policy below. Organization access, higher rate limits, and commercial use beyond fair use require a separate agreement -- contact us. To authenticate, send your API key in the `Authorization` header of each request: `Authorization: Bearer `. An invalid token returns a 401 response. ### Fair Use & Commercial Use This public API is provided under a fair use policy to ensure availability for all users and to facilitate the evaluation of integrating the Navigator data into your products. Organization accounts, production-grade commercial use, high-volume access, integration partnerships are welcome, under a separate agreement. If you are experimenting, building a prototype, or considering deeper integration, we would love to hear what you are working on and help you find the best setup. --- ## Examples Example requests to the Spare Cores Navigator API, from searching servers to ranking them by a benchmark and looking up one server's prices. Most endpoints need no authentication, so you can run these as they are. The [API reference](https://docs.sparecores.com/api.md) describes every endpoint and parameter, and its built-in API client sends the requests from your browser. ### Search servers The cheapest server types with at least 8 vCPUs and 32 GB of memory, by their on-demand price: ```shell curl -G https://keeper.sparecores.net/servers \ -d vcpus_min=8 \ -d memory_min=32 \ -d best_price_allocation=ONDEMAND_ONLY \ -d limit=3 ``` Each server type comes with its specs, its lowest prices (`min_price`), and its benchmark scores, e.g. its SCore (`score`), the multi-core CPU speed, and its SCore per price (`score_per_price`). The results are sorted by `min_price` by default; set `order_by` and `order_dir` for another order. [`/servers`](https://docs.sparecores.com/api/reference/search-servers-servers-get.md) has filters for almost every column, such as `vendor`, `regions`, `gpu_min` or `price_max`. ### Page through the results `limit` sets the number of results (25 by default, -1 for all), and `page` the page. `add_total_count_header=true` returns the number of all matching results in the `X-Total-Count` header: ```shell curl -G -D - https://keeper.sparecores.net/servers \ -d vcpus_min=8 \ -d memory_min=32 \ -d limit=3 \ -d page=2 \ -d add_total_count_header=true ``` ### Prices: spot or on-demand, and currency `best_price_allocation` sets which prices `min_price` uses: `ANY` (the default), `SPOT_ONLY`, `ONDEMAND_ONLY`, or `MONTHLY` for the monthly on-demand price. Prices are hourly (monthly with `MONTHLY`), in USD by default; `currency` converts them, e.g. the cheapest spot prices in EUR: ```shell curl -G https://keeper.sparecores.net/servers \ -d vcpus_min=8 \ -d memory_min=32 \ -d best_price_allocation=SPOT_ONLY \ -d currency=EUR \ -d limit=3 ``` The API converts the prices of all vendors to the same currency, so you can compare vendors that price in USD and in EUR, which the [SQLite database](https://docs.sparecores.com/sqlite.md) alone can't. ### Rank servers by a benchmark `benchmark_id` selects a benchmark to rank the servers by, instead of the SCore. For example, to look for a fast single core, with PassMark's [CPU Single Threaded Test](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_single_threaded_test), highest score first: ```shell curl -G https://keeper.sparecores.net/servers \ -d vcpus_min=8 \ -d memory_min=32 \ -d best_price_allocation=ONDEMAND_ONLY \ -d benchmark_id=passmark:cpu_single_threaded_test \ -d order_by=selected_benchmark_score \ -d order_dir=desc \ -d limit=3 ``` Each server then has the score of that benchmark in `selected_benchmark_score`, and its score per price in `selected_benchmark_score_per_price`. The [Benchmarks](https://docs.sparecores.com/benchmarks.md) list the IDs of all benchmarks. ### Rank servers by cost-efficiency Some benchmarks have a configuration, e.g. the model of the LLM inference speed benchmark. `benchmark_config` selects one, as JSON that must match the configuration's text exactly, including its spaces and the order of its keys: copy it from the `config` field of [`/benchmark_configs`](https://docs.sparecores.com/api/reference/search-benchmark-configs-benchmark-configs-get.md). For example, the servers that generate text with Llama 3.3 70B at the lowest cost, by the tokens generated per second per hourly price: ```shell curl -G https://keeper.sparecores.net/servers \ -d benchmark_id=llm_speed:text_generation \ --data-urlencode 'benchmark_config={"model": "Llama-3.3-70B-Instruct-Q4_K_M.gguf", "tokens": 128}' \ -d best_price_allocation=ONDEMAND_ONLY \ -d order_by=selected_benchmark_score_per_price \ -d order_dir=desc \ -d limit=10 ``` The [LLM speed](https://docs.sparecores.com/benchmarks/llm_speed.md) benchmark lists the models and token counts measured. ### Look up a server The details of one server type, by its vendor and server ID, e.g. the AWS t4g.2xlarge: ```shell curl https://keeper.sparecores.net/v2/server/aws/t4g.2xlarge ``` Its prices in each region and zone, e.g. only in Germany and in EUR: ```shell curl -G https://keeper.sparecores.net/server/aws/t4g.2xlarge/prices \ -d countries=DE \ -d currency=EUR ``` Its benchmark scores: ```shell curl https://keeper.sparecores.net/server/aws/t4g.2xlarge/benchmarks ``` And the 5 server types most similar to it, here by their SCore per price, also at other vendors: ```shell curl https://keeper.sparecores.net/server/aws/t4g.2xlarge/similar_servers/score_per_price/5 ``` The other methods are `family` (the other sizes of the same series), `specs`, `score`, and `benchmark_score` or `benchmark_score_per_price` with `benchmark_id`. See [Get Similar Servers](https://docs.sparecores.com/api/reference/get-similar-servers-server-vendor-server-similar-servers-by-num-get.md). ### In Python The same search with [Requests](https://requests.readthedocs.io/): ```python repl import requests response = requests.get( "https://keeper.sparecores.net/servers", params={ "vcpus_min": 8, "memory_min": 32, "best_price_allocation": "ONDEMAND_ONLY", "limit": 5, }, timeout=30, ) response.raise_for_status() for server in response.json(): print(server["vendor_id"], server["api_reference"], server["min_price"]) ``` ### Limits The API is free to use under a fair use policy, with rate limits per IP address or user. Retry a 429 or 503 response after the seconds in its `Retry-After` header, when it has one. See [Rate Limiting](https://docs.sparecores.com/api.md#rate-limiting) and [Fair Use & Commercial Use](https://docs.sparecores.com/api.md#fair-use--commercial-use). --- ## SQLite database Links: [Download the Database](https://cdn.sparecores.net/sc-data/latest/sc-data-all.sql.xz), [GitHub repository of sc-data](https://github.com/SpareCores/sc-data), [sparecores-data on PyPI](https://pypi.org/project/sparecores-data/). The whole database of the Spare Cores Navigator is available as a single SQLite file, to download and query with SQL: the servers, managed databases, storage and traffic of all vendors, with their prices and benchmark scores. The [Schemas](https://docs.sparecores.com/schemas.md) describe its tables and columns. ### Get the database #### With the command line The Data Wrapper, the `sparecores-data` Python package, downloads the current version of the database (about 40 MB to download, 1.3 GB once imported): ```shell pip install sparecores-data sc-data download sc-data.db ``` Run `sc-data download` again to get a newer version. #### In Python In Python, the package keeps a copy of the database up to date in its cache, checking for a newer version every 10 minutes in a background thread, and `db.path` gives its path. The [Crawler](https://docs.sparecores.com/crawler.md) (`sparecores-crawler`) defines the tables as [SQLModel](https://sqlmodel.tiangolo.com/) classes, so that you can query them with SQLModel or SQLAlchemy, e.g. the cheapest on-demand prices of server types with at least 8 vCPUs and 32 GiB of memory: ```shell pip install sparecores-data sparecores-crawler ``` ```python repl from sc_data import db from sc_crawler.tables import Server, ServerPrice from sqlmodel import Session, create_engine, func, select db.updated.wait() # the first run downloads the database engine = create_engine(f"sqlite:///{db.path}") with Session(engine) as session: query = ( select(Server.vendor_id, Server.api_reference, func.min(ServerPrice.price).label("hourly_price")) .join(ServerPrice, (ServerPrice.vendor_id == Server.vendor_id) & (ServerPrice.server_id == Server.server_id)) .where(Server.vcpus >= 8, Server.memory_amount >= 32 * 1024) .where(ServerPrice.allocation == "ONDEMAND", ServerPrice.status == "ACTIVE", ServerPrice.currency == "USD") .group_by(Server.vendor_id, Server.server_id) .order_by("hourly_price") .limit(5) ) for row in session.exec(query): print(row) ``` Environment variables set where the package caches the file, how often it checks for updates, or a database path of your own, e.g. `SC_DATA_DB_PATH`; see its [README](https://github.com/SpareCores/sc-data#configuration) for the full list. #### In R In R, the same package keeps the database up to date through [reticulate](https://rstudio.github.io/reticulate/), with `sparecores-data` installed in its Python environment (e.g. by `reticulate::py_install("sparecores-data")`), and [RSQLite](https://rsqlite.r-dbi.org/) queries it, e.g. the number of active server types of each vendor: ```r library(reticulate) library(DBI) sc_data <- import("sc_data") sc_data$db$updated$wait() # the first run downloads the database con <- dbConnect(RSQLite::SQLite(), sc_data$db$path) dbGetQuery(con, " SELECT vendor_id, COUNT(*) AS server_types FROM server WHERE status = 'ACTIVE' GROUP BY vendor_id") dbDisconnect(con) ``` #### As a file The database is also available as an xz-compressed SQL dump, to import with the `sqlite3` command-line tool: ```shell curl -L https://cdn.sparecores.net/sc-data/latest/sc-data-all.sql.xz | xz -d | sqlite3 sc-data.db ``` ### License The database is published under the BSL 1.1 license (see [Licensing](https://docs.sparecores.com/overview.md#licensing)). Each release converts to CC BY-SA 4.0 three years after its publication. The `_metadata` table records the details of the release, such as when it was published, its license, the additional use grant and the date of the change: ```sql repl SELECT * FROM _metadata; ``` ### Get to know the data A few queries to start with, in the `sqlite3` command-line tool. Run `.mode table` first for readable results. The number of server types by their status, e.g. active or retired: ```sql repl SELECT status, COUNT(*) FROM server GROUP BY status; ``` The smallest and largest active server types, by their vCPUs and memory (`memory_amount` is in MiB): ```sql repl SELECT MIN(vcpus), MAX(vcpus), MIN(memory_amount / 1024.0) AS min_memory_gib, MAX(memory_amount / 1024.0) AS max_memory_gib FROM server WHERE status = 'ACTIVE'; ``` Where each vendor offers its servers, by continents, countries, regions and zones: ```sql repl SELECT z.vendor_id, COUNT(DISTINCT continent) AS continents, COUNT(DISTINCT country_id) AS countries, COUNT(DISTINCT z.region_id) AS regions, COUNT(*) AS zones FROM zone AS z JOIN region USING (vendor_id, region_id) JOIN country USING (country_id) GROUP BY 1; ``` Regions are identified by their vendor and region ID together, as two vendors can have regions with the same ID, hence the join on both. How much the price of the same server type varies, e.g. the AWS m8g.2xlarge across regions, zones and allocations (on-demand and spot): ```sql repl SELECT COUNT(*), MIN(price), ROUND(AVG(price), 4) AS avg_price, MAX(price) FROM server_price WHERE vendor_id = 'aws' AND server_id = 'm8g.2xlarge' AND status = 'ACTIVE'; ``` The number of benchmark scores by the category of their benchmark: ```sql repl SELECT b.category, COUNT(*) AS scores FROM benchmark_score AS s JOIN benchmark AS b USING (benchmark_id) WHERE s.status = 'ACTIVE' GROUP BY 1 ORDER BY 2 DESC; ``` ### Example: the cheapest servers for given specs The cheapest on-demand prices of server types with at least 8 vCPUs and 32 GiB of memory: ```sql repl SELECT s.vendor_id, s.api_reference, s.vcpus, s.memory_amount / 1024 AS memory_gib, MIN(p.price) AS hourly_price, p.currency FROM server AS s JOIN server_price AS p USING (vendor_id, server_id) WHERE s.vcpus >= 8 AND s.memory_amount >= 32 * 1024 AND p.allocation = 'ONDEMAND' AND p.status = 'ACTIVE' AND p.currency = 'USD' GROUP BY s.vendor_id, s.server_id ORDER BY hourly_price LIMIT 5; ``` Prices are in the vendor's currency (USD or EUR), hence the filter on `currency` when comparing them (see [Prices in other currencies](#prices-in-other-currencies)). ### Example: the fastest single core The scores of all benchmarks are in the `benchmark_score` table. For example, the same servers ranked by their single-core speed, with PassMark's [CPU Single Threaded Test](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_single_threaded_test): ```sql repl SELECT s.vendor_id, s.api_reference, s.cpu_model, b.score AS single_thread, MIN(p.price) AS hourly_price, p.currency FROM server AS s JOIN benchmark_score AS b ON b.resource_type = 'SERVER' AND b.vendor_id = s.vendor_id AND b.resource_id = s.server_id JOIN server_price AS p USING (vendor_id, server_id) WHERE b.benchmark_id = 'passmark:cpu_single_threaded_test' AND b.status = 'ACTIVE' AND s.vcpus >= 8 AND s.memory_amount >= 32 * 1024 AND p.allocation = 'ONDEMAND' AND p.status = 'ACTIVE' AND p.currency = 'USD' GROUP BY s.vendor_id, s.server_id ORDER BY single_thread DESC LIMIT 5; ``` ### Example: clock speed and single-core speed The clock speed of a CPU (`cpu_speed`, the maximum the vendor lists) tells little about how fast a core is. The server types listed at the same clock speed, with their slowest and fastest single-core speed, by PassMark's [CPU Single Threaded Test](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_single_threaded_test): ```sql repl SELECT s.cpu_speed AS ghz, COUNT(*) AS server_types, ROUND(MIN(b.score)) AS slowest, ROUND(MAX(b.score)) AS fastest, ROUND(MAX(b.score) / MIN(b.score), 1) AS ratio FROM server AS s JOIN benchmark_score AS b ON b.resource_type = 'SERVER' AND b.vendor_id = s.vendor_id AND b.resource_id = s.server_id WHERE b.benchmark_id = 'passmark:cpu_single_threaded_test' AND b.status = 'ACTIVE' AND s.status = 'ACTIVE' AND s.cpu_speed IS NOT NULL GROUP BY s.cpu_speed HAVING COUNT(*) >= 10 ORDER BY ghz; ``` When we ran it in November 2026, the 16 server types listed at 5.0 GHz were all about as fast, but the fastest at 3.9 GHz was faster than any of them, and the fastest listed at 2.0 GHz about as fast. At 4.2 or 4.5 GHz, the fastest server type was 1.5 times as fast as the slowest, and at 2.2 GHz over 14 times. To find fast cores, rank by a benchmark (see [the fastest single core](#example-the-fastest-single-core)), not by the clock speed. ### Example: prices by continent How much more the same server type costs on each continent than on its cheapest one, on average. Comparing a server type with itself, in its own currency, needs no exchange rates: ```sql repl WITH prices AS ( -- the average on-demand price of each server type on each continent SELECT p.vendor_id, p.server_id, c.continent, AVG(p.price) AS price FROM server_price AS p JOIN region AS r USING (vendor_id, region_id) JOIN country AS c USING (country_id) WHERE p.allocation = 'ONDEMAND' AND p.status = 'ACTIVE' GROUP BY p.vendor_id, p.server_id, c.continent ), cheapest AS ( SELECT vendor_id, server_id, MIN(price) AS price FROM prices GROUP BY vendor_id, server_id ) SELECT p.continent, COUNT(*) AS server_types, ROUND(AVG(p.price / c.price - 1) * 100, 1) AS avg_premium_pct FROM prices AS p JOIN cheapest AS c USING (vendor_id, server_id) GROUP BY p.continent ORDER BY avg_premium_pct; ``` When we ran it in November 2026, a server type cost on average about the same in North America as on its cheapest continent, 11 to 12% more in Asia and Europe, 18 to 19% more in Africa and Oceania, and 48% more in South America. For a deeper analysis of the price differences, e.g. by vendor, see the [talks](https://sparecores.com/talks) on sparecores.com. ### Example: the cost of LLM inference Which server generates text with an LLM at the lowest cost? The `llm_speed:text_generation` benchmark measures how many tokens a server generates per second with a given model (see [LLM speed](https://docs.sparecores.com/benchmarks/llm_speed.md)), and the prices tell what an hour of the server costs, so their ratio is the cost of a million generated tokens: ```sql repl WITH prices AS ( -- the cheapest on-demand price of each server type, in USD SELECT vendor_id, server_id, MIN(price) AS price FROM server_price WHERE allocation = 'ONDEMAND' AND status = 'ACTIVE' AND currency = 'USD' GROUP BY vendor_id, server_id ), speed AS ( -- the tokens generated per second with the model SELECT vendor_id, resource_id AS server_id, MAX(score) AS tokens_per_second FROM benchmark_score WHERE resource_type = 'SERVER' AND status = 'ACTIVE' AND benchmark_id = 'llm_speed:text_generation' AND json_extract(config, '$.model') = 'Llama-3.3-70B-Instruct-Q4_K_M.gguf' AND json_extract(config, '$.tokens') = 128 GROUP BY vendor_id, resource_id ) SELECT vendor_id, api_reference, vcpus, memory_amount / 1024 AS memory_gib, accelerator_count AS gpus, accelerator_model AS gpu_model, ROUND(tokens_per_second, 2) AS tokens_per_second, price AS hourly_price, ROUND(price / (tokens_per_second * 3600 / 1e6), 2) AS usd_per_million_tokens FROM server JOIN prices USING (vendor_id, server_id) JOIN speed USING (vendor_id, server_id) ORDER BY usd_per_million_tokens LIMIT 10; ``` Swap the model for another, e.g. `gemma-2b.Q4_K_M.gguf`, to see how the picture changes. The [LLM speed](https://docs.sparecores.com/benchmarks/llm_speed.md) benchmark lists the models and token counts measured. When we ran it in November 2026, the cheapest way to generate text with Llama 3.3 70B was, surprisingly, a CPU-only Azure server ([Standard_F32ams_v6](https://sparecores.com/server/azure/Standard_F32ams_v6)), at about $30 per million tokens, ahead of GPU servers such as the AWS [g7e.4xlarge](https://sparecores.com/server/aws/g7e.4xlarge) with an RTX PRO 6000 at about $36. But the Azure server generated only about 3 tokens per second, against 31 of the GPU server, so the cheapest is not always the right choice. With the small Gemma 2B model, cheap CPU-only servers of Azure and Vultr led, at well under $1 per million tokens. The data changes often, so run the query for the current picture. The ranking also depends on the task: with `llm_speed:prompt_processing`, the speed of reading the prompt, GPU servers led for Llama 3.3 70B, at under $1.50 per million tokens, as reading the prompt needs more compute than generating text. And the cost per token leaves out other costs, such as the storage for the model (over 70 GB for Llama 3.3 70B, see the `storage_price` table) and the egress of the generated text (`traffic_price`). #### Prices in other currencies The query compares USD prices only. Some vendors, such as Hetzner Cloud, OVHcloud and UpCloud, price their servers in EUR, and the database has no exchange rates to convert them, so they are left out. The [API](https://docs.sparecores.com/api.md) converts all prices to USD (or the currency of your choice), so it compares every vendor. For example, the same ranking over the `/servers` endpoint, by the benchmark's score per price (see the [API examples](https://docs.sparecores.com/api/examples.md#rank-servers-by-cost-efficiency) for more): ```shell curl -G https://keeper.sparecores.net/servers \ -d benchmark_id=llm_speed:text_generation \ --data-urlencode 'benchmark_config={"model": "Llama-3.3-70B-Instruct-Q4_K_M.gguf", "tokens": 128}' \ -d best_price_allocation=ONDEMAND_ONLY \ -d order_by=selected_benchmark_score_per_price \ -d order_dir=desc \ -d limit=10 ``` With all vendors in, OVHcloud's GPU servers led this ranking for Llama 3.3 70B, and UpCloud's small CPU-only servers for Gemma 2B, when we ran it. The [server listing](https://sparecores.com/servers) of the [Web UI](https://docs.sparecores.com/web-ui/listings.md) shows the same, without writing code: select the benchmark and its configuration with **Select Benchmark**, and sort by **$ EFFICIENCY**. ### Tips - Filter on `status = 'ACTIVE'` for the current offerings: the database also keeps the server types, prices and scores that are no longer available. - The `config` of a benchmark score is JSON: match its fields with `json_extract`, as it can have other fields too. - Benchmark scores refer to servers or managed databases: `resource_type` tells which, and `resource_id` is the server or database ID. - Prices are in the vendor's currency (`currency`), and per the `unit` of the price, e.g. per hour for servers. --- ## Spare Cores Navigator database schemas Links: [The tables in sc-crawler](https://github.com/SpareCores/sc-crawler/blob/main/src/sc_crawler/tables.py), [Download the Database](https://cdn.sparecores.net/sc-data/latest/sc-data-all.sql.xz). The tables of the [Spare Cores Navigator](https://docs.sparecores.com/overview) database: the servers, managed databases, storage and other cloud resources of the supported vendors, with their prices and benchmark results. These components of the Navigator work with the database: * The [Crawler](https://github.com/SpareCores/sc-crawler) (`sparecores-crawler`) compiles it, e.g. to build your own copy. * The [Data Wrapper](https://github.com/SpareCores/sc-data) (`sparecores-data`) downloads an up-to-date copy. * The [Navigator API](https://github.com/SpareCores/sc-keeper) serves it over HTTP. ### Diagram [Database diagram](https://dbdocs.io/embed/be6534833d70c9056185831475fd92a1/9b8165101be34742881ad75ddbec39ae) Open the [interactive diagram and version history on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler). ### Tables | Table | Description | | --- | --- | | [`archive_rule`](https://docs.sparecores.com/schemas/tables/archive_rule.md) | Rules archiving records that were replaced by another record or deliberately dropped. | | [`benchmark`](https://docs.sparecores.com/schemas/tables/benchmark.md) | Benchmark scenario definitions. | | [`benchmark_score`](https://docs.sparecores.com/schemas/tables/benchmark_score.md) | Results of running Benchmark scenarios on Servers or managed Databases. | | [`compliance_framework`](https://docs.sparecores.com/schemas/tables/compliance_framework.md) | List of Compliance Frameworks, such as HIPAA or SOC 2 Type 1. | | [`country`](https://docs.sparecores.com/schemas/tables/country.md) | Country and continent mapping. | | [`database`](https://docs.sparecores.com/schemas/tables/database.md) | Managed database SKUs. | | [`database_price`](https://docs.sparecores.com/schemas/tables/database_price.md) | Managed database SKU prices per Region. | | [`database_storage`](https://docs.sparecores.com/schemas/tables/database_storage.md) | Managed database storage products. | | [`database_storage_price`](https://docs.sparecores.com/schemas/tables/database_storage_price.md) | Managed database storage prices in each Region. | | [`ipv4_price`](https://docs.sparecores.com/schemas/tables/ipv4_price.md) | Price of an IPv4 address in each Region. | | [`region`](https://docs.sparecores.com/schemas/tables/region.md) | Regions of Vendors. | | [`server`](https://docs.sparecores.com/schemas/tables/server.md) | Server types. | | [`server_description`](https://docs.sparecores.com/schemas/tables/server_description.md) | Variable length, plain English descriptions of Server hardware specs, performance, cost-efficiency, and workflow fit. | | [`server_price`](https://docs.sparecores.com/schemas/tables/server_price.md) | Server type prices per Region and Allocation method. | | [`storage`](https://docs.sparecores.com/schemas/tables/storage.md) | Flexible storage options that can be attached to a Server. | | [`storage_price`](https://docs.sparecores.com/schemas/tables/storage_price.md) | Flexible Storage prices in each Region. | | [`traffic_price`](https://docs.sparecores.com/schemas/tables/traffic_price.md) | Extra Traffic prices in each Region. | | [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) | Compute resource vendors, such as cloud and server providers. | | [`vendor_compliance_link`](https://docs.sparecores.com/schemas/tables/vendor_compliance_link.md) | List of known Compliance Frameworks paired with vendors. | | [`zone`](https://docs.sparecores.com/schemas/tables/zone.md) | Availability zones of Regions. | --- ## archive_rule Rules archiving records that were replaced by another record or deliberately dropped. Primary key: `table_name`, `match`, `successor`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=archive_rule&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `table_name` | `VARCHAR(255)` | PK | | Name of the table of the archived record(s), e.g. `region`. | | `match` | `JSON` | PK | | Primary key of the record to archive, or a subset of its columns to archive all records with those values, e.g. {"region_id": "2", "vendor_id": "hcloud"}. | | `successor` | `JSON` | PK | | New values of the `match` columns identifying the successor of each archived record. Empty when there is no successor, or none that can be given as fixed values (see `reason`). | | `reason` | `VARCHAR(255)` | | | Why the record(s) got archived. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Enums #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | --- ## benchmark Benchmark scenario definitions. Primary key: `benchmark_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=benchmark&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `benchmark_id` | `VARCHAR(255)` | PK | | Unique identifier of a specific Benchmark. | | `category` | `VARCHAR(255)` | | | Category of the resource. | | `subcategory` | `VARCHAR(255)` | | | Subcategory of the benchmark within its category, e.g. the scope of an nvbandwidth test. | | `source` | `JSON` | NOT NULL | | How the benchmark score is produced. A discriminated object keyed by ''kind'': ''measured'' (directly observed), ''extrapolated'' (derived from this server''s own measurements; carries ''derived_from'' + ''note''), or ''compound'' (aggregated across component benchmarks; carries ''aggregation'', ''normalization'', and the ''components'' recipe). | | `name` | `VARCHAR(255)` | NOT NULL | | Human-friendly name. | | `description` | `VARCHAR(255)` | | | Short description. | | `note` | `VARCHAR(255)` | | | Optional caveat/comment on how to interpret the metric, surfaced as a warning/info badge (e.g. limited scaling on high vCPU counts, or independence from vCPU count). Null when there is nothing to flag. | | `framework` | `VARCHAR(255)` | NOT NULL | | The name of the benchmark framework/software/tool used. | | `config_fields` | `JSON` | NOT NULL | | A dictionary of descriptions on the framework-specific config options, e.g. {"bandwidth": "Memory amount to use for compression in MB."}. | | `environment_fields` | `JSON` | NOT NULL | | A dictionary of descriptions on the environment details recorded with the benchmark scores, e.g. {"kernel_version": "Linux kernel version of the server."}. | | `measurement` | `VARCHAR(255)` | | | The name of measurement recorded in the benchmark. | | `unit` | `VARCHAR(255)` | | | Optional unit of measurement for the benchmark score. | | `higher_is_better` | `BOOL` | NOT NULL | | If higher benchmark score means better performance, or vica versa. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Enums #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | ### Referenced by - [`benchmark_score`](https://docs.sparecores.com/schemas/tables/benchmark_score.md) --- ## benchmark_score Results of running Benchmark scenarios on Servers or managed Databases. Primary key: `vendor_id`, `benchmark_id`, `resource_type`, `resource_id`, `config`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=benchmark_score&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `benchmark_id` | `VARCHAR(255)` | PK | [`benchmark.benchmark_id`](https://docs.sparecores.com/schemas/tables/benchmark.md) | Reference to the Benchmark. | | `resource_type` | `ENUM` | PK | | Kind of resource the score refers to. See [ResourceType](#resourcetype) for the possible values. | | `resource_id` | `VARCHAR(255)` | PK | | Reference to the resource (see resource_type). | | `config` | `JSON` | PK | | Dictionary of config parameters of the specific benchmark, e.g. {"bandwidth": 4096} | | `framework_version` | `VARCHAR(255)` | | | The version of the benchmark tool used. | | `environment` | `JSON` | | | Extensible environment details (e.g. kernel_version, database_engine_version). | | `score` | `FLOAT` | NOT NULL | | The resulting score of the benchmark. | | `score_breakdown` | `JSON` | | | Structured derivation of composite scores (e.g. workload profiles): per-component raw values, references, normalized values, weights, and coverage. Null for simple benchmark scores. | | `note` | `VARCHAR(255)` | | | Optional note, comment or context on the benchmark score. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) - `benchmark_id` → [`benchmark`](https://docs.sparecores.com/schemas/tables/benchmark.md) (`benchmark_id`) ### Enums #### ResourceType Kind of resource a benchmark score refers to. | Value | Description | | --- | --- | | `SERVER` | Compute server instance. | | `DATABASE` | Managed database instance. | #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | --- ## compliance_framework List of Compliance Frameworks, such as HIPAA or SOC 2 Type 1. Primary key: `compliance_framework_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=compliance_framework&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `compliance_framework_id` | `VARCHAR(255)` | PK | | Unique identifier. | | `name` | `VARCHAR(255)` | NOT NULL | | Human-friendly name. | | `abbreviation` | `VARCHAR(255)` | | | Short abbreviation of the Framework name. | | `description` | `VARCHAR(255)` | | | Description of the framework in a few paragraphs, outlining key features and characteristics for reference. | | `logo` | `VARCHAR(255)` | | | Publicly accessible URL to the image of the Framework''s logo. | | `homepage` | `VARCHAR(255)` | | | Public homepage with more information on the Framework. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Enums #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | ### Referenced by - [`vendor_compliance_link`](https://docs.sparecores.com/schemas/tables/vendor_compliance_link.md) --- ## country Country and continent mapping. Primary key: `country_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=country&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `country_id` | `VARCHAR(255)` | PK | | Country code by ISO 3166 alpha-2. | | `continent` | `VARCHAR(255)` | NOT NULL | | Continent name. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Enums #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | ### Referenced by - [`region`](https://docs.sparecores.com/schemas/tables/region.md) - [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) --- ## database Managed database SKUs. Primary key: `vendor_id`, `database_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=database&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `database_id` | `VARCHAR(255)` | PK | | Unique identifier, as called at the Vendor. | | `name` | `VARCHAR(255)` | NOT NULL | | Human-friendly name. | | `api_reference` | `VARCHAR(255)` | NOT NULL | | How this resource is referenced in the vendor API calls. This is usually either the id or name of the resource, depending on the vendor and actual API endpoint. | | `api_reference_object` | `JSON` | | | How this resource is referenced in the vendor API calls, including the parameter name(s). | | `display_name` | `VARCHAR(255)` | NOT NULL | | Human-friendly reference (usually the id or name) of the resource. | | `description` | `VARCHAR(255)` | | | Short description. | | `family` | `VARCHAR(255)` | | | Broad workload class of the database in the vendor''s own naming, e.g. General Purpose or Memory Optimized. | | `series` | `VARCHAR(255)` | | | Hardware line and generation of the database, matching the series of the server it runs on, where known. | | `server_id` | `VARCHAR(255)` | | | Reference to the underlying cloud server''s identifier. | | `vcpus` | `INTEGER` | | | Number of virtual CPU cores allocated to the database server instance. | | `memory_amount` | `INTEGER` | | | Amount of RAM (MiB) provisioned for the instance. | | `engine` | `ENUM` | | | Managed database engine running on the instance. See [DatabaseEngine](#databaseengine) for the possible values. | | `wire_protocol` | `ENUM` | | | Network protocol used for client connections. See [DatabaseWireProtocol](#databasewireprotocol) for the possible values. | | `engine_versions` | `JSON` | NOT NULL | | Major database engine versions supported. | | `auto_upgrade_versions` | `BOOL` | | | Auto-upgrade between minor database engine versions. | | `ha` | `JSON` | NOT NULL | | Ordered HA levels supported, highest tier first. | | `ha_strategy` | `JSON` | NOT NULL | | Ordered HA strategies supported, highest tier first. | | `max_read_replicas` | `INTEGER` | | | Maximum number of read-only replica nodes supported to scale read workloads. | | `custom_config` | `BOOL` | | | Whether database engine parameters/flags can be customized. | | `custom_extensions` | `BOOL` | | | Support for custom database engine extensions/plugins. | | `storage_size` | `INTEGER` | | | Bundled storage capacity included in the database (GB). | | `storage_extra_min` | `INTEGER` | | | Minimum custom storage size (in GB) that can be attached to the instance. | | `storage_extra_max` | `INTEGER` | | | Maximum storage limit (in GB) supported by the instance or storage tier. | | `storage_extra_autosize` | `BOOL` | | | Whether storage capacity can automatically expand as disk usage grows. | | `compatible_storage_ids` | `JSON` | | | List of database_storage_ids that can be attached to the database as extra storage. | | `disk_encryption` | `BOOL` | | | Indicates whether underlying storage drives are encrypted at rest. | | `scheduled_backups` | `BOOL` | | | Support for automated snapshot schedules and backup retention management. | | `continuous_backups` | `INTEGER` | | | Maximum point-in-time recovery (PITR) log retention window expressed in days (0 if unsupported). | | `connection_pool` | `BOOL` | | | Managed connection proxy support. | | `system_monitoring` | `BOOL` | | | Availability of host-level CPU, RAM, and disk metrics dashboards. | | `database_monitoring` | `BOOL` | | | Database engine performance insights (slow queries, locks, execution plans). | | `autotuning_advice` | `BOOL` | | | Analyzes workload and generates actionable performance tuning advice. | | `autotuning_apply` | `BOOL` | | | System automatically executes performance fixes (e.g., index creation, parameter tuning) without operator intervention. | | `sla` | `FLOAT` | | | Service level agreement as a percentage, e.g. 99.95. | | `security_features` | `JSON` | NOT NULL | | Security capabilities supported by DBaaS providers. | | `retirement_date` | `DATE` | | | Retirement date announced by the vendor for PLANNED_FOR_RETIREMENT and RETIRED records: the end of support (shutdown) if published, otherwise the end of sale. Empty when not announced or not known. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### DatabaseEngine Managed database engine. | Value | Description | | --- | --- | | `POSTGRESQL` | PostgreSQL. | #### DatabaseWireProtocol Wire protocol for a managed database type. | Value | Description | | --- | --- | | `POSTGRESQL` | PostgreSQL. | #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | ### Referenced by - [`database_price`](https://docs.sparecores.com/schemas/tables/database_price.md) --- ## database_price Managed database SKU prices per Region. Primary key: `vendor_id`, `region_id`, `database_id`, `allocation`, `ha`, `ha_strategy`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=database_price&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `region_id` | `VARCHAR(255)` | PK | [`region.region_id`](https://docs.sparecores.com/schemas/tables/region.md) | Reference to the Region. | | `database_id` | `VARCHAR(255)` | PK | [`database.database_id`](https://docs.sparecores.com/schemas/tables/database.md) | Reference to the Database. | | `allocation` | `ENUM` | PK | | Allocation method, e.g. on-demand or spot. See [Allocation](#allocation) for the possible values. | | `ha` | `ENUM` | PK | | HA level this price applies to. See [DatabaseHaLevel](#databasehalevel) for the possible values. | | `ha_strategy` | `ENUM` | PK | | HA strategy this price applies to. See [DatabaseHaStrategy](#databasehastrategy) for the possible values. | | `unit` | `ENUM` | NOT NULL | | Billing unit of the pricing model. See [PriceUnit](#priceunit) for the possible values. | | `price` | `FLOAT` | NOT NULL | | Actual price of a billing unit. | | `price_upfront` | `FLOAT` | NOT NULL | | Price to be paid when setting up the resource. | | `price_tiered` | `JSON` | NOT NULL | | List of pricing tiers with min/max thresholds and actual prices. | | `currency` | `VARCHAR(255)` | NOT NULL | | Currency of the prices. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id`, `region_id` → [`region`](https://docs.sparecores.com/schemas/tables/region.md) (`vendor_id`, `region_id`) - `vendor_id`, `database_id` → [`database`](https://docs.sparecores.com/schemas/tables/database.md) (`vendor_id`, `database_id`) - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### Allocation Server allocation options. | Value | Description | | --- | --- | | `ONDEMAND` | On-demand server. | | `RESERVED` | Reserved server. | | `SPOT` | Spot/preemptible server. | #### DatabaseHaLevel High availability level for a managed database type. | Value | Description | | --- | --- | | `NONE` | No high availability. | | `SINGLE_ZONE` | Single-zone high availability, meaning multiple databases in the same zone with failover or multi-master. | | `MULTI_ZONE` | Multi-zone high availability, meaning multiple databases in multiple zones of the same region with failover or multi-master. | | `MULTI_REGION` | Multi-region high availability, meaning multiple databases in multiple regions with failover or multi-master. | #### DatabaseHaStrategy High availability replication strategy for a managed database type. | Value | Description | | --- | --- | | `NONE` | No high availability strategy. | | `PASSIVE_STANDBY` | Passive standby for failover, e.g. standard RDS Multi-AZ with block storage replication. | | `READABLE_CLUSTER` | Readable cluster for read scaling and failover, e.g. RDS Multi-AZ Cluster / Aurora with engine replication. | | `MULTI_MASTER` | True multi-master, e.g. CockroachDB / Spanner / DynamoDB Global Tables. | #### PriceUnit Supported units for the price tables. | Value | Description | | --- | --- | | `YEAR` | Price per year. | | `MONTH` | Price per month. | | `HOUR` | Price per hour. | | `GIB` | Price per gibibyte (GiB). | | `GB` | Price per gigabyte (GB). | | `GB_MONTH` | Price per gigabyte (GB)/month. | #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | --- ## database_storage Managed database storage products. Primary key: `vendor_id`, `database_storage_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=database_storage&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `database_storage_id` | `VARCHAR(255)` | PK | | Unique identifier, as called at the Vendor. | | `name` | `VARCHAR(255)` | NOT NULL | | Human-friendly name. | | `description` | `VARCHAR(255)` | | | Short description. | | `scope` | `ENUM` | NOT NULL | | Scope of the storage product, e.g. data or backup. See [DatabaseStorageScope](#databasestoragescope) for the possible values. | | `redundancy` | `VARCHAR(255)` | | | Redundancy model, e.g. LRS or GRS. | | `min_size` | `INTEGER` | | | Minimum required size (GB). | | `max_size` | `INTEGER` | | | Maximum possible size (GB). | | `max_iops` | `INTEGER` | | | Maximum Input/Output Operations Per Second. | | `max_throughput` | `INTEGER` | | | Maximum Throughput (MB/s). | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### DatabaseStorageScope Scope of a managed database storage product. | Value | Description | | --- | --- | | `DATA` | Primary database data storage. | | `BACKUP` | Backup or archive storage. | #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | ### Referenced by - [`database_storage_price`](https://docs.sparecores.com/schemas/tables/database_storage_price.md) --- ## database_storage_price Managed database storage prices in each Region. Primary key: `vendor_id`, `region_id`, `database_storage_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=database_storage_price&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `region_id` | `VARCHAR(255)` | PK | [`region.region_id`](https://docs.sparecores.com/schemas/tables/region.md) | Reference to the Region. | | `database_storage_id` | `VARCHAR(255)` | PK | [`database_storage.database_storage_id`](https://docs.sparecores.com/schemas/tables/database_storage.md) | Reference to the DatabaseStorage. | | `unit` | `ENUM` | NOT NULL | | Billing unit of the pricing model. See [PriceUnit](#priceunit) for the possible values. | | `price` | `FLOAT` | NOT NULL | | Actual price of a billing unit. | | `price_upfront` | `FLOAT` | NOT NULL | | Price to be paid when setting up the resource. | | `price_tiered` | `JSON` | NOT NULL | | List of pricing tiers with min/max thresholds and actual prices. | | `currency` | `VARCHAR(255)` | NOT NULL | | Currency of the prices. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id`, `region_id` → [`region`](https://docs.sparecores.com/schemas/tables/region.md) (`vendor_id`, `region_id`) - `vendor_id`, `database_storage_id` → [`database_storage`](https://docs.sparecores.com/schemas/tables/database_storage.md) (`vendor_id`, `database_storage_id`) - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### PriceUnit Supported units for the price tables. | Value | Description | | --- | --- | | `YEAR` | Price per year. | | `MONTH` | Price per month. | | `HOUR` | Price per hour. | | `GIB` | Price per gibibyte (GiB). | | `GB` | Price per gigabyte (GB). | | `GB_MONTH` | Price per gigabyte (GB)/month. | #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | --- ## ipv4_price Price of an IPv4 address in each Region. Primary key: `vendor_id`, `region_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=ipv4_price&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `region_id` | `VARCHAR(255)` | PK | [`region.region_id`](https://docs.sparecores.com/schemas/tables/region.md) | Reference to the Region. | | `unit` | `ENUM` | NOT NULL | | Billing unit of the pricing model. See [PriceUnit](#priceunit) for the possible values. | | `price` | `FLOAT` | NOT NULL | | Actual price of a billing unit. | | `price_upfront` | `FLOAT` | NOT NULL | | Price to be paid when setting up the resource. | | `price_tiered` | `JSON` | NOT NULL | | List of pricing tiers with min/max thresholds and actual prices. | | `currency` | `VARCHAR(255)` | NOT NULL | | Currency of the prices. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id`, `region_id` → [`region`](https://docs.sparecores.com/schemas/tables/region.md) (`vendor_id`, `region_id`) - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### PriceUnit Supported units for the price tables. | Value | Description | | --- | --- | | `YEAR` | Price per year. | | `MONTH` | Price per month. | | `HOUR` | Price per hour. | | `GIB` | Price per gibibyte (GiB). | | `GB` | Price per gigabyte (GB). | | `GB_MONTH` | Price per gigabyte (GB)/month. | #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | --- ## region Regions of Vendors. Primary key: `vendor_id`, `region_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=region&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `region_id` | `VARCHAR(255)` | PK | | Unique identifier, as called at the Vendor. | | `name` | `VARCHAR(255)` | NOT NULL | | Human-friendly name. | | `api_reference` | `VARCHAR(255)` | NOT NULL | | How this resource is referenced in the vendor API calls. This is usually either the id or name of the resource, depending on the vendor and actual API endpoint. | | `display_name` | `VARCHAR(255)` | NOT NULL | | Human-friendly reference (usually the id or name) of the resource. | | `aliases` | `JSON` | NOT NULL | | List of other commonly used names for the same Region. | | `country_id` | `VARCHAR(255)` | NOT NULL | [`country.country_id`](https://docs.sparecores.com/schemas/tables/country.md) | Reference to the Country, where the Region is located. | | `state` | `VARCHAR(255)` | | | Optional state/administrative area of the Region''s location within the Country. | | `city` | `VARCHAR(255)` | | | Optional city name of the Region''s location. | | `address_line` | `VARCHAR(255)` | | | Optional address line of the Region''s location. | | `zip_code` | `VARCHAR(255)` | | | Optional ZIP code of the Region''s location. | | `lon` | `FLOAT` | | | Longitude coordinate of the Region''s known or approximate location. | | `lat` | `FLOAT` | | | Latitude coordinate of the Region''s known or approximate location. | | `founding_year` | `INTEGER` | | | 4-digit year when the Region was founded. | | `green_energy` | `BOOL` | | | If the Region is 100%% powered by renewable energy. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) - `country_id` → [`country`](https://docs.sparecores.com/schemas/tables/country.md) (`country_id`) ### Enums #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | ### Referenced by - [`database_price`](https://docs.sparecores.com/schemas/tables/database_price.md) - [`database_storage_price`](https://docs.sparecores.com/schemas/tables/database_storage_price.md) - [`ipv4_price`](https://docs.sparecores.com/schemas/tables/ipv4_price.md) - [`server_price`](https://docs.sparecores.com/schemas/tables/server_price.md) - [`storage_price`](https://docs.sparecores.com/schemas/tables/storage_price.md) - [`traffic_price`](https://docs.sparecores.com/schemas/tables/traffic_price.md) - [`zone`](https://docs.sparecores.com/schemas/tables/zone.md) --- ## server Server types. Primary key: `vendor_id`, `server_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=server&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `server_id` | `VARCHAR(255)` | PK | | Unique identifier, as called at the Vendor. | | `name` | `VARCHAR(255)` | NOT NULL | | Human-friendly name. | | `api_reference` | `VARCHAR(255)` | NOT NULL | | How this resource is referenced in the vendor API calls. This is usually either the id or name of the resource, depending on the vendor and actual API endpoint. | | `api_reference_object` | `JSON` | | | How this resource is referenced in the vendor API calls, including the parameter name(s). | | `display_name` | `VARCHAR(255)` | NOT NULL | | Human-friendly reference (usually the id or name) of the resource. | | `description` | `VARCHAR(255)` | NOT NULL | | Short description. | | `family` | `VARCHAR(255)` | | | Broad workload class of the server in the vendor''s own naming, e.g. General Purpose, Compute Optimized or Memory Optimized. | | `series` | `VARCHAR(255)` | | | Hardware line and generation of the server, e.g. m5 (AWS), n2 (GCP) or b3 (OVH). | | `vcpus` | `INTEGER` | NOT NULL | | Default number of virtual CPUs (vCPU) of the server. | | `hypervisor` | `VARCHAR(255)` | | | Hypervisor of the virtual server, e.g. Xen, KVM, Nitro or Dedicated. | | `cpu_allocation` | `ENUM` | NOT NULL | | Allocation of CPU(s) to the server, e.g. shared, burstable or dedicated. See [CpuAllocation](#cpuallocation) for the possible values. | | `cpu_cores` | `INTEGER` | | | Default number of CPU cores of the server. Equals to vCPUs when HyperThreading is disabled. | | `cpu_speed` | `FLOAT` | | | Vendor-reported maximum CPU clock speed (GHz). | | `cpu_architecture` | `ENUM` | NOT NULL | | CPU architecture (arm64, arm64_mac, i386, or x86_64). See [CpuArchitecture](#cpuarchitecture) for the possible values. | | `cpu_manufacturer` | `VARCHAR(255)` | | | The manufacturer of the primary processor, e.g. Intel or AMD. | | `cpu_family` | `VARCHAR(255)` | | | The product line/family of the primary processor, e.g. Xeon, Core i7, Ryzen 9. | | `cpu_model` | `VARCHAR(255)` | | | The model number of the primary processor, e.g. 9750H. | | `cpu_l1d_cache` | `INTEGER` | | | L1 data cache size (KiB). | | `cpu_l1d_cache_total` | `INTEGER` | | | Total L1 data cache size (KiB) across all cores. | | `cpu_l1i_cache` | `INTEGER` | | | L1 instruction cache size (KiB). | | `cpu_l1i_cache_total` | `INTEGER` | | | Total L1 instruction cache size (KiB) across all cores. | | `cpu_l2_cache` | `INTEGER` | | | L2 cache size (KiB). | | `cpu_l2_cache_total` | `INTEGER` | | | Total L2 cache size (KiB) across all cores. | | `cpu_l3_cache` | `INTEGER` | | | L3 cache size (KiB). | | `cpu_l3_cache_total` | `INTEGER` | | | Total L3 cache size (KiB) across all cores. | | `cpu_flags` | `JSON` | NOT NULL | | CPU features/flags. | | `cpus` | `JSON` | NOT NULL | | JSON array of known CPU details, e.g. the manufacturer, family, model; L1/L2/L3 cache size; microcode version; feature flags; bugs etc. | | `ecpus` | `FLOAT` | | | The effective "real-world" core count, calculated by dividing the maximum multi-core SCore by the single-core SCore. | | `scalability` | `FLOAT` | | | Measures how efficiently the server scales from a single core performance to using multiple cores. A score of 100%% means perfect linear scaling with zero performance loss. | | `hw_virt` | `BOOL` | | | If hardware virtualization (e.g. KVM) is supported. | | `memory_amount` | `INTEGER` | NOT NULL | | RAM amount (MiB) reported by the vendor. | | `memory_amount_actual` | `INTEGER` | | | Actual RAM amount (MiB) measured on the instance via lstopo or other tool. This amount might not match the vendor-reported memory due to the BIOS or the hypervisor reserving a small percentage. | | `memory_generation` | `ENUM` | | | Generation of the DDR SDRAM, e.g. DDR4 or DDR5. See [DdrGeneration](#ddrgeneration) for the possible values. | | `memory_speed` | `INTEGER` | | | DDR SDRAM clock rate (Mhz). | | `memory_ecc` | `BOOL` | | | If the DDR SDRAM uses error correction code to detect and correct n-bit data corruption. | | `accelerator_count` | `FLOAT` | NOT NULL | | Number of accelerator(s), e.g. GPUs or NPUs. | | `accelerator_memory_min` | `INTEGER` | | | Memory (MiB) allocated to the lowest-end accelerator. | | `accelerator_memory_total` | `INTEGER` | | | Overall memory (MiB) allocated to all the accelerator(s). | | `accelerator_type` | `ENUM` | | | The type of the primary accelerator, e.g. GPU or NPU. See [AcceleratorType](#acceleratortype) for the possible values. | | `accelerator_manufacturer` | `VARCHAR(255)` | | | The manufacturer of the primary accelerator, e.g. Nvidia or AMD. | | `accelerator_family` | `VARCHAR(255)` | | | The product family of the primary accelerator, e.g. Turing. | | `accelerator_model` | `VARCHAR(255)` | | | The model number of the primary accelerator, e.g. Tesla T4. | | `accelerators` | `JSON` | NOT NULL | | JSON array of accelerator details, including the manufacturer, name, and memory (MiB) of each accelerator. | | `storage_size` | `INTEGER` | NOT NULL | | Overall size (GB) of the disk(s). | | `storage_type` | `ENUM` | | | Primary disk type, e.g. HDD, SSD, or NVMe SSD. See [StorageType](#storagetype) for the possible values. | | `storages` | `JSON` | NOT NULL | | JSON array of disks attached to the server, including the size (GB) and type of each disk. | | `storage_read_iops_max` | `INTEGER` | | | The vendor-published maximum read IOPS of the bundled disk(s), summed over all disks, also of different types (e.g. temp disk and NVMe), so a theoretical total. Per-disk values are in storages. | | `storage_write_iops_max` | `INTEGER` | | | The vendor-published maximum write IOPS of the bundled disk(s), summed over all disks, also of different types (e.g. temp disk and NVMe), so a theoretical total. Per-disk values are in storages. | | `storage_read_throughput_max` | `INTEGER` | | | The vendor-published maximum read throughput (MB/s) of the bundled disk(s), summed over all disks, also of different types (e.g. temp disk and NVMe), so a theoretical total. Per-disk values are in storages. | | `storage_write_throughput_max` | `INTEGER` | | | The vendor-published maximum write throughput (MB/s) of the bundled disk(s), summed over all disks, also of different types (e.g. temp disk and NVMe), so a theoretical total. Per-disk values are in storages. | | `compatible_storage_ids` | `JSON` | | | List of storage_ids that can be attached to the server as extra storage. | | `network_speed_baseline` | `FLOAT` | | | The baseline network performance (Gbps) of the server, aggregated over all network cards. | | `network_speed_max` | `FLOAT` | | | The maximum network performance (Gbps) of the server, aggregated over all network cards. | | `network_storage_speed_baseline` | `FLOAT` | | | The baseline bandwidth performance of network-attached storage (Gbps). | | `network_storage_speed_max` | `FLOAT` | | | The maximum bandwidth performance of network-attached storage (Gbps). | | `inbound_traffic` | `FLOAT` | NOT NULL | | Amount of complimentary inbound traffic (GB) per month. | | `outbound_traffic` | `FLOAT` | NOT NULL | | Amount of complimentary outbound traffic (GB) per month. | | `ipv4` | `INTEGER` | NOT NULL | | Number of complimentary IPv4 address(es). | | `average_time_to_start` | `FLOAT` | | | Average time to start the server (seconds). | | `retirement_date` | `DATE` | | | Retirement date announced by the vendor for PLANNED_FOR_RETIREMENT and RETIRED records: the end of support (shutdown) if published, otherwise the end of sale. Empty when not announced or not known. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### CpuAllocation CPU allocation methods at cloud vendors. | Value | Description | | --- | --- | | `SHARED` | Shared CPU with other virtual server tenants. | | `BURSTABLE` | CPU that can temporarily burst above its baseline performance. | | `DEDICATED` | Dedicated CPU with known performance. | #### CpuArchitecture CPU architectures. | Value | Description | | --- | --- | | `ARM64` | 64-bit ARM architecture. | | `ARM64_MAC` | Apple 64-bit ARM architecture. | | `I386` | 32-bit x86 architecture. | | `X86_64` | 64-bit x86 architecture. | | `X86_64_MAC` | Apple 64-bit x86 architecture. | #### DdrGeneration Generation of the DDR SDRAM. | Value | Description | | --- | --- | | `DDR3` | DDR3 SDRAM. | | `DDR4` | DDR4 SDRAM. | | `DDR5` | DDR5 SDRAM. | #### AcceleratorType Type of a hardware accelerator, e.g. GPU or NPU. | Value | Description | | --- | --- | | `GPU` | Graphics Processing Unit. | | `TPU` | Tensor Processing Unit. Deprecated: Google TPUs are stored as NPU. | | `NPU` | Neural Processing Unit, e.g. Google TPU, AWS Inferentia and Trainium, Habana Gaudi or Qualcomm AI100. | | `FPGA` | Field-Programmable Gate Array, e.g. Xilinx Virtex UltraScale+. | | `VPU` | Video Processing Unit: video transcoding card, e.g. Xilinx U30. | #### StorageType Type of a storage, e.g. HDD or SSD. | Value | Description | | --- | --- | | `HDD` | Magnetic hard disk drive. | | `SSD` | Solid-state drive. | | `NVME_SSD` | NVMe based solid-state drive. | #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | ### Referenced by - [`server_description`](https://docs.sparecores.com/schemas/tables/server_description.md) - [`server_price`](https://docs.sparecores.com/schemas/tables/server_price.md) --- ## server_description Variable length, plain English descriptions of Server hardware specs, performance, cost-efficiency, and workflow fit. Primary key: `vendor_id`, `server_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=server_description&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `page` | `JSON` | NOT NULL | | Detailed server description with up to 500 words total across multiple paragraphs on hardware specs, benchmark-relative performance, qualitative cost efficiency, tradeoffs, and workload fit. | | `description` | `VARCHAR(255)` | NOT NULL | | Dense and technical server description using around 150 words in a single paragraph. | | `og_description` | `VARCHAR(255)` | NOT NULL | | 200 character server description explicitly including vendor and server name. | | `meta_description` | `VARCHAR(255)` | NOT NULL | | 150 character server description explicitly including vendor and server name. | | `tagline` | `VARCHAR(255)` | NOT NULL | | 20-word tagline on server positioning and key differentiators without the vendor or server name. | | `bullet_points` | `JSON` | NOT NULL | | 4-6 concise bullet points highlighting key features and best-fit workloads. | | `categories` | `JSON` | NOT NULL | | One or more workload categories best fitting the server. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `server_id` | `VARCHAR(255)` | PK | [`server.server_id`](https://docs.sparecores.com/schemas/tables/server.md) | Unique identifier, as called at the Vendor. | ### Foreign keys - `vendor_id`, `server_id` → [`server`](https://docs.sparecores.com/schemas/tables/server.md) (`vendor_id`, `server_id`) - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | --- ## server_price Server type prices per Region and Allocation method. Primary key: `vendor_id`, `region_id`, `zone_id`, `server_id`, `allocation`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=server_price&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `region_id` | `VARCHAR(255)` | PK | [`region.region_id`](https://docs.sparecores.com/schemas/tables/region.md) | Reference to the Region. | | `zone_id` | `VARCHAR(255)` | PK | [`zone.zone_id`](https://docs.sparecores.com/schemas/tables/zone.md) | Reference to the Zone. | | `server_id` | `VARCHAR(255)` | PK | [`server.server_id`](https://docs.sparecores.com/schemas/tables/server.md) | Reference to the Server. | | `operating_system` | `VARCHAR(255)` | NOT NULL | | Operating System. | | `allocation` | `ENUM` | PK | | Allocation method, e.g. on-demand or spot. See [Allocation](#allocation) for the possible values. | | `unit` | `ENUM` | NOT NULL | | Billing unit of the pricing model. See [PriceUnit](#priceunit) for the possible values. | | `price` | `FLOAT` | NOT NULL | | Actual price of a billing unit. | | `price_upfront` | `FLOAT` | NOT NULL | | Price to be paid when setting up the resource. | | `price_tiered` | `JSON` | NOT NULL | | List of pricing tiers with min/max thresholds and actual prices. | | `currency` | `VARCHAR(255)` | NOT NULL | | Currency of the prices. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id`, `region_id` → [`region`](https://docs.sparecores.com/schemas/tables/region.md) (`vendor_id`, `region_id`) - `vendor_id`, `region_id`, `zone_id` → [`zone`](https://docs.sparecores.com/schemas/tables/zone.md) (`vendor_id`, `region_id`, `zone_id`) - `vendor_id`, `server_id` → [`server`](https://docs.sparecores.com/schemas/tables/server.md) (`vendor_id`, `server_id`) - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### Allocation Server allocation options. | Value | Description | | --- | --- | | `ONDEMAND` | On-demand server. | | `RESERVED` | Reserved server. | | `SPOT` | Spot/preemptible server. | #### PriceUnit Supported units for the price tables. | Value | Description | | --- | --- | | `YEAR` | Price per year. | | `MONTH` | Price per month. | | `HOUR` | Price per hour. | | `GIB` | Price per gibibyte (GiB). | | `GB` | Price per gigabyte (GB). | | `GB_MONTH` | Price per gigabyte (GB)/month. | #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | --- ## storage Flexible storage options that can be attached to a Server. Primary key: `vendor_id`, `storage_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=storage&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `storage_id` | `VARCHAR(255)` | PK | | Unique identifier, as called at the Vendor. | | `name` | `VARCHAR(255)` | NOT NULL | | Human-friendly name. | | `description` | `VARCHAR(255)` | | | Short description. | | `storage_type` | `ENUM` | NOT NULL | | High-level category of the storage, e.g. HDD or SDD. See [StorageType](#storagetype) for the possible values. | | `max_iops` | `INTEGER` | | | Maximum Input/Output Operations Per Second. | | `max_throughput` | `INTEGER` | | | Maximum Throughput (MB/s). | | `min_size` | `INTEGER` | | | Minimum required size (GB). | | `max_size` | `INTEGER` | | | Maximum possible size (GB). | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### StorageType Type of a storage, e.g. HDD or SSD. | Value | Description | | --- | --- | | `HDD` | Magnetic hard disk drive. | | `SSD` | Solid-state drive. | | `NVME_SSD` | NVMe based solid-state drive. | #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | ### Referenced by - [`storage_price`](https://docs.sparecores.com/schemas/tables/storage_price.md) --- ## storage_price Flexible Storage prices in each Region. Primary key: `vendor_id`, `region_id`, `storage_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=storage_price&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `region_id` | `VARCHAR(255)` | PK | [`region.region_id`](https://docs.sparecores.com/schemas/tables/region.md) | Reference to the Region. | | `storage_id` | `VARCHAR(255)` | PK | [`storage.storage_id`](https://docs.sparecores.com/schemas/tables/storage.md) | Reference to the Storage. | | `unit` | `ENUM` | NOT NULL | | Billing unit of the pricing model. See [PriceUnit](#priceunit) for the possible values. | | `price` | `FLOAT` | NOT NULL | | Actual price of a billing unit. | | `price_upfront` | `FLOAT` | NOT NULL | | Price to be paid when setting up the resource. | | `price_tiered` | `JSON` | NOT NULL | | List of pricing tiers with min/max thresholds and actual prices. | | `currency` | `VARCHAR(255)` | NOT NULL | | Currency of the prices. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id`, `region_id` → [`region`](https://docs.sparecores.com/schemas/tables/region.md) (`vendor_id`, `region_id`) - `vendor_id`, `storage_id` → [`storage`](https://docs.sparecores.com/schemas/tables/storage.md) (`vendor_id`, `storage_id`) - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### PriceUnit Supported units for the price tables. | Value | Description | | --- | --- | | `YEAR` | Price per year. | | `MONTH` | Price per month. | | `HOUR` | Price per hour. | | `GIB` | Price per gibibyte (GiB). | | `GB` | Price per gigabyte (GB). | | `GB_MONTH` | Price per gigabyte (GB)/month. | #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | --- ## traffic_price Extra Traffic prices in each Region. Primary key: `vendor_id`, `region_id`, `direction`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=traffic_price&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `region_id` | `VARCHAR(255)` | PK | [`region.region_id`](https://docs.sparecores.com/schemas/tables/region.md) | Reference to the Region. | | `direction` | `ENUM` | PK | | Direction of the traffic: inbound or outbound. See [TrafficDirection](#trafficdirection) for the possible values. | | `unit` | `ENUM` | NOT NULL | | Billing unit of the pricing model. See [PriceUnit](#priceunit) for the possible values. | | `price` | `FLOAT` | NOT NULL | | Actual price of a billing unit. | | `price_upfront` | `FLOAT` | NOT NULL | | Price to be paid when setting up the resource. | | `price_tiered` | `JSON` | NOT NULL | | List of pricing tiers with min/max thresholds and actual prices. | | `currency` | `VARCHAR(255)` | NOT NULL | | Currency of the prices. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id`, `region_id` → [`region`](https://docs.sparecores.com/schemas/tables/region.md) (`vendor_id`, `region_id`) - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### TrafficDirection Direction of the network traffic. | Value | Description | | --- | --- | | `IN` | Inbound traffic. | | `OUT` | Outbound traffic. | #### PriceUnit Supported units for the price tables. | Value | Description | | --- | --- | | `YEAR` | Price per year. | | `MONTH` | Price per month. | | `HOUR` | Price per hour. | | `GIB` | Price per gibibyte (GiB). | | `GB` | Price per gigabyte (GB). | | `GB_MONTH` | Price per gigabyte (GB)/month. | #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | --- ## vendor Compute resource vendors, such as cloud and server providers. Primary key: `vendor_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=vendor&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | | Unique identifier. | | `name` | `VARCHAR(255)` | NOT NULL | | Human-friendly name. | | `logo` | `VARCHAR(255)` | | | Publicly accessible URL to the image of the Vendor''s logo. | | `homepage` | `VARCHAR(255)` | | | Public homepage of the Vendor. | | `country_id` | `VARCHAR(255)` | NOT NULL | [`country.country_id`](https://docs.sparecores.com/schemas/tables/country.md) | Reference to the Country, where the Vendor''s main headquarter is located. | | `state` | `VARCHAR(255)` | | | Optional state/administrative area of the Vendor''s location within the Country. | | `city` | `VARCHAR(255)` | | | Optional city name of the Vendor''s main location. | | `address_line` | `VARCHAR(255)` | | | Optional address line of the Vendor''s main location. | | `zip_code` | `VARCHAR(255)` | | | Optional ZIP code of the Vendor''s main location. | | `founding_year` | `INTEGER` | NOT NULL | | 4-digit year when the public cloud service of the Vendor was launched. | | `status_page` | `VARCHAR(255)` | | | Public status page of the Vendor. | | `stopped_server_charged` | `BOOL` | | | If the Vendor charges for stopped servers. In case it depends on the instance type or different versions of stopped states, this field reports the worst case. | | `billing_increment_seconds` | `INTEGER` | | | The smallest increment of time for which the Vendor bills for. | | `minimum_billing_seconds` | `INTEGER` | | | The minimum amount of time for which the Vendor bills for. In case it depends on the instance type or other context, this field reports the worst case. | | `billing_comment` | `VARCHAR(255)` | | | Comment on the Vendor''s billing. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `country_id` → [`country`](https://docs.sparecores.com/schemas/tables/country.md) (`country_id`) ### Enums #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | ### Referenced by - [`benchmark_score`](https://docs.sparecores.com/schemas/tables/benchmark_score.md) - [`database`](https://docs.sparecores.com/schemas/tables/database.md) - [`database_price`](https://docs.sparecores.com/schemas/tables/database_price.md) - [`database_storage`](https://docs.sparecores.com/schemas/tables/database_storage.md) - [`database_storage_price`](https://docs.sparecores.com/schemas/tables/database_storage_price.md) - [`ipv4_price`](https://docs.sparecores.com/schemas/tables/ipv4_price.md) - [`region`](https://docs.sparecores.com/schemas/tables/region.md) - [`server`](https://docs.sparecores.com/schemas/tables/server.md) - [`server_description`](https://docs.sparecores.com/schemas/tables/server_description.md) - [`server_price`](https://docs.sparecores.com/schemas/tables/server_price.md) - [`storage`](https://docs.sparecores.com/schemas/tables/storage.md) - [`storage_price`](https://docs.sparecores.com/schemas/tables/storage_price.md) - [`traffic_price`](https://docs.sparecores.com/schemas/tables/traffic_price.md) - [`vendor_compliance_link`](https://docs.sparecores.com/schemas/tables/vendor_compliance_link.md) - [`zone`](https://docs.sparecores.com/schemas/tables/zone.md) --- ## vendor_compliance_link List of known Compliance Frameworks paired with vendors. Primary key: `vendor_id`, `compliance_framework_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=vendor_compliance_link&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `compliance_framework_id` | `VARCHAR(255)` | PK | [`compliance_framework.compliance_framework_id`](https://docs.sparecores.com/schemas/tables/compliance_framework.md) | Reference to the Compliance Framework. | | `comment` | `VARCHAR(255)` | | | Optional references, such as dates, URLs, and additional information/evidence. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) - `compliance_framework_id` → [`compliance_framework`](https://docs.sparecores.com/schemas/tables/compliance_framework.md) (`compliance_framework_id`) ### Enums #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | --- ## zone Availability zones of Regions. Primary key: `vendor_id`, `region_id`, `zone_id`. See the [version history of this table on dbdocs.io](https://dbdocs.io/spare-cores/sc-crawler?table=zone&schema=public&view=table_structure). ### Columns | Column | Type | Constraints | References | Description | | --- | --- | --- | --- | --- | | `vendor_id` | `VARCHAR(255)` | PK | [`vendor.vendor_id`](https://docs.sparecores.com/schemas/tables/vendor.md) | Reference to the Vendor. | | `region_id` | `VARCHAR(255)` | PK | [`region.region_id`](https://docs.sparecores.com/schemas/tables/region.md) | Reference to the Region. | | `zone_id` | `VARCHAR(255)` | PK | | Unique identifier, as called at the Vendor. | | `name` | `VARCHAR(255)` | NOT NULL | | Human-friendly name. | | `api_reference` | `VARCHAR(255)` | NOT NULL | | How this resource is referenced in the vendor API calls. This is usually either the id or name of the resource, depending on the vendor and actual API endpoint. | | `display_name` | `VARCHAR(255)` | NOT NULL | | Human-friendly reference (usually the id or name) of the resource. | | `status` | `ENUM` | NOT NULL | | Status of the resource (active or inactive). See [Status](#status) for the possible values. | | `observed_at` | `DATETIME` | NOT NULL | | Timestamp of the last observation. | ### Foreign keys - `vendor_id`, `region_id` → [`region`](https://docs.sparecores.com/schemas/tables/region.md) (`vendor_id`, `region_id`) - `vendor_id` → [`vendor`](https://docs.sparecores.com/schemas/tables/vendor.md) (`vendor_id`) ### Enums #### Status Last known status of a record. The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set: - `ACTIVE` and `INACTIVE` are valid for all tables. Records returned by the vendor or defined in code are `ACTIVE`. Records no longer returned or defined are set to `INACTIVE` by `pull`, as well as records missing from the source by `sync`. - `PLANNED_FOR_RETIREMENT` and `RETIRED` are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by `pull` when the record is no longer returned by the vendor. - `ARCHIVED` is valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] by `pull` and `sync`, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is `RETIRED`, and records no longer returned by a vendor are `INACTIVE`. | Value | Description | | --- | --- | | `ACTIVE` | Currently available. | | `INACTIVE` | Currently not available, without a known retirement. May become available again. | | `PLANNED_FOR_RETIREMENT` | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. | | `RETIRED` | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. | | `ARCHIVED` | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. | ### Referenced by - [`server_price`](https://docs.sparecores.com/schemas/tables/server_price.md) --- ## Benchmark workloads The benchmark workloads Spare Cores runs on cloud servers, with their units, configuration options and the distribution of their scores. The Inspector runs them in the [benchmark container images](https://docs.sparecores.com/images.md#benchmarks). These pages are generated from the [`/benchmark_score_stats`](https://keeper.sparecores.net/benchmark_score_stats) and [`/table/benchmark`](https://keeper.sparecores.net/table/benchmark) endpoints of the [API](https://docs.sparecores.com/api.md), and the histograms cover all measurements so far. | Framework | Category | Workloads | Server types | | --- | --- | --- | --- | | [bogomips](https://docs.sparecores.com/benchmarks/bogomips.md) | Other | 1 | 3,767 | | [bw_mem](https://docs.sparecores.com/benchmarks/bw_mem.md) | Memory bandwidth | 1 | 3,677 | | [compression_text](https://docs.sparecores.com/benchmarks/compression_text.md) | Compression algos | 3 | 3,665 | | [geekbench](https://docs.sparecores.com/benchmarks/geekbench.md) | Geekbench | 17 | 3,395 | | [llm_speed](https://docs.sparecores.com/benchmarks/llm_speed.md) | LLM inference speed | 2 | 3,476 | | [membench](https://docs.sparecores.com/benchmarks/membench.md) | Memory bandwidth, Memory latency | 4 | 2,434 | | [nvbandwidth](https://docs.sparecores.com/benchmarks/nvbandwidth.md) | GPU bandwidth, GPU latency | 12 | 180 | | [openssl](https://docs.sparecores.com/benchmarks/openssl.md) | Cryptography | 1 | 3,758 | | [passmark](https://docs.sparecores.com/benchmarks/passmark.md) | Passmark | 16 | 3,698 | | [pgbench](https://docs.sparecores.com/benchmarks/pgbench.md) | Database | 3 | 900 | | [redis](https://docs.sparecores.com/benchmarks/redis.md) | Database | 3 | 3,744 | | [static_web](https://docs.sparecores.com/benchmarks/static_web.md) | Static web server | 5 | 3,678 | | [stress_ng](https://docs.sparecores.com/benchmarks/stress_ng.md) | stress-ng | 88 | 3,765 | | [workload_profile](https://docs.sparecores.com/benchmarks/workload_profile.md) | Workload profile | 8 | 3,766 | --- ## bogomips Other ### BogoMips A crude measurement of CPU speed by the Linux kernel. This is NOT usable for performance comparisons among different CPUs, but might be useful to check if a processor is in the range of similar processors. As often quoted, BogoMips measures "the number of million times per second a processor can do absolutely nothing". Benchmark details: - **Benchmark ID:** `bogomips` - **Unit of measurement:** Millions of instructions per second (MIPS) - **Server types evaluated:** 3,767 - **Total measurements:** 3,767 - **Range of measurements:** 50 – 8K MIPS - **Better:** ↑ Higher is better :::warning This is a pseudo-benchmark: BogoMips is a kernel-derived timing calibration value, not a measure of real workload performance. Scores do not correlate with application throughput and are not recommended for comparing instances or CPU generations. ::: Score distribution (3,767 measurements) ![Score distribution of BogoMips](https://docs.sparecores.com/benchmarks/histograms/bogomips.svg) --- ## bw_mem Memory bandwidth ### Memory bandwidth (bw\_mem) bw\_mem allocates twice the specified amount of memory, zeros it, and then times the copying of the first half to the second half. Results are reported in megabytes moved per second (MB/sec). bw\_mem is provided by lmbench. For more details, see the man pages. Benchmark details: - **Benchmark ID:** `bw_mem` - **Unit of measurement:** Megabytes per second (MB/sec) - **Server types evaluated:** 3,677 - **Total measurements:** 121,229 - **Range of measurements:** 100.4 – 39.6M MB/sec - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `size` | Amount of memory to be used in MB | `0.016384` `0.262144` `1` `2` `4` `8` `16` `32` `64` `256` `512` | | `operation` | The type of measurement: 'rd' measures the time to read data into the processor, 'wr' measures the time to write data to memory, and 'rdwr' measures the time to read data into memory and then write data to the same memory location. | `rd` `rdwr` `wr` | Score distribution (121,229 measurements) ![Score distribution of Memory bandwidth (bw\_mem)](https://docs.sparecores.com/benchmarks/histograms/bw_mem.svg) --- ## compression_text Compression algos ### Compression bandwidth Measures the compression bandwidth (bytes/second) on the dickens.txt of the Silesia corpus (10 MB uncompressed) using various algorithms, compression levels and other extra arguments. Benchmark details: - **Benchmark ID:** `compression_text:compress` - **Unit of measurement:** Bytes per second (Bps) - **Server types evaluated:** 3,665 - **Total measurements:** 196,903 - **Range of measurements:** 74.2K – 68G Bps - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `algo` | Compression algorithm, e.g. brotli or bz2. | `brotli` `bzip2` `bzip3` `gzip` `lz4` `lzma` `zpaq` `zstd` | | `cores` | Single-Core or Multi-Core compression tests. | `multi` `single` | | `block_size` | Block size | `65536` `1048576` `4194304` `67108864` | | `compression_level` | Compression level/quality/level. | `0` `1` `3` `4` `5` `6` `7` `8` `9` `11` `12` `14` `16` `22` | Score distribution (196,903 measurements) ![Score distribution of Compression bandwidth](https://docs.sparecores.com/benchmarks/histograms/compression_text-compress.svg) ### Decompression bandwidth Measures the decompression bandwidth (bytes/second) on the compressed dickens.txt of the Silesia corpus (10 MB uncompressed) using various algorithms, compression levels and other extra arguments. Benchmark details: - **Benchmark ID:** `compression_text:decompress` - **Unit of measurement:** Bytes per second (Bps) - **Server types evaluated:** 3,665 - **Total measurements:** 196,903 - **Range of measurements:** 74.1K – 254.2G Bps - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `algo` | Compression algorithm, e.g. brotli or bz2. | `brotli` `bzip2` `bzip3` `gzip` `lz4` `lzma` `zpaq` `zstd` | | `cores` | Single-Core or Multi-Core compression tests. | `multi` `single` | | `block_size` | Block size | `65536` `1048576` `4194304` `67108864` | | `compression_level` | Compression level/quality/level. | `0` `1` `3` `4` `5` `6` `7` `8` `9` `11` `12` `14` `16` `22` | Score distribution (196,903 measurements) ![Score distribution of Decompression bandwidth](https://docs.sparecores.com/benchmarks/histograms/compression_text-decompress.svg) ### Compression ratio Measures the compression ratio while compressing the dickens.txt of the Silesia corpus (10 MB uncompressed) using various algorithms, compression levels and other extra arguments. Benchmark details: - **Benchmark ID:** `compression_text:ratio` - **Unit of measurement:** — - **Server types evaluated:** 3,665 - **Total measurements:** 196,903 - **Range of measurements:** 21 – 63.1 - **Better:** ↓ Lower is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `algo` | Compression algorithm, e.g. brotli or bz2. | `brotli` `bzip2` `bzip3` `gzip` `lz4` `lzma` `zpaq` `zstd` | | `cores` | Single-Core or Multi-Core compression tests. | `multi` `single` | | `block_size` | Block size | `65536` `1048576` `4194304` `67108864` | | `compression_level` | Compression level/quality/level. | `0` `1` `3` `4` `5` `6` `7` `8` `9` `11` `12` `14` `16` `22` | Score distribution (196,903 measurements) ![Score distribution of Compression ratio](https://docs.sparecores.com/benchmarks/histograms/compression_text-ratio.svg) --- ## geekbench Geekbench ### Geekbench: Asset Compression Compresses 16 texture images and geometry files using ASTC, BC7, DXTC, and Draco.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:asset_compression` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 334 – 78.5K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | Score distribution (6,790 measurements) ![Score distribution of Geekbench: Asset Compression](https://docs.sparecores.com/benchmarks/histograms/geekbench-asset_compression.svg) ### Geekbench: Background Blur Separates and blurs the background of 10 frames in a 1080p video, using DeepLabV3+.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:background_blur` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 219 – 25.6K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | :::warning This benchmark does not scale well on instances with more than 32 vCPUs. Empirical data shows measured scores plateau and may even degrade as vCPU count increases, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (6,790 measurements) ![Score distribution of Geekbench: Background Blur](https://docs.sparecores.com/benchmarks/histograms/geekbench-background_blur.svg) ### Geekbench: Clang Compiles files (8 in single-core mode, 96 in multi-core mode) of the Lua interpreter using Clang and the musl libc as the C standard library for the compiled files.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:clang` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 402 – 119.5K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | Score distribution (6,790 measurements) ![Score distribution of Geekbench: Clang](https://docs.sparecores.com/benchmarks/histograms/geekbench-clang.svg) ### Geekbench: File Compression Compresses and decompresses the Ruby 3.1.2 source archive (a 75 MB archive with 9841 files) using LZ4 and ZSTD on an in-memory encrypted file system. It also verifies the files using SHA1.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:file_compression` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 298 – 19.8K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | :::warning This benchmark does not scale well on instances with more than 32 vCPUs. Empirical data shows measured scores plateau and may even degrade as vCPU count increases, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (6,790 measurements) ![Score distribution of Geekbench: File Compression](https://docs.sparecores.com/benchmarks/histograms/geekbench-file_compression.svg) ### Geekbench: HDR Blends six 16MP SDR photos to create a single HDR photo, using a recovery process and radiance map construction (Debevec and Malik 1997), and a tone mapping algorithm (Reinhard and Devlin 2005).The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:hdr` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 375 – 34.7K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | Score distribution (6,790 measurements) ![Score distribution of Geekbench: HDR](https://docs.sparecores.com/benchmarks/histograms/geekbench-hdr.svg) ### Geekbench: Horizon Detection Detects and straightens uneven or crooked horizon lines in a 48MP photo to make it look more realistic, using the Canny edge detector and the Hough transform.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:horizon_detection` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 435 – 57.7K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | Score distribution (6,790 measurements) ![Score distribution of Geekbench: Horizon Detection](https://docs.sparecores.com/benchmarks/histograms/geekbench-horizon_detection.svg) ### Geekbench: HTML5 Browser Opens and renders web pages (8 in single-core mode, 32 in multi-core mode) using a headless web browser.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:html5_browser` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 370 – 47.3K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | :::warning This benchmark does not scale well on instances with more than 32 vCPUs. Empirical data shows measured scores plateau and may even degrade as vCPU count increases, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (6,790 measurements) ![Score distribution of Geekbench: HTML5 Browser](https://docs.sparecores.com/benchmarks/histograms/geekbench-html5_browser.svg) ### Geekbench: Navigation Generates 24 different routes between a sequence of locations on two OpenStreetMap maps (one for a small city, one for a large city) using Dijkstra's algorithm.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:navigation` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 358 – 29K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | :::warning This benchmark does not scale well on instances with more than 32 vCPUs. Empirical data shows measured scores plateau and may even degrade as vCPU count increases, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (6,790 measurements) ![Score distribution of Geekbench: Navigation](https://docs.sparecores.com/benchmarks/histograms/geekbench-navigation.svg) ### Geekbench: Object Detection Detects and classifies objects in 300x300 pixel photos (16 in single-core mode, 64 in multi-core mode) using the MobileNet v1 SSD convolutional neural network.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:object_detection` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 50 – 24.7K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | :::warning This benchmark does not scale well on instances with more than 32 vCPUs. Empirical data shows measured scores plateau and may even degrade as vCPU count increases, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (6,790 measurements) ![Score distribution of Geekbench: Object Detection](https://docs.sparecores.com/benchmarks/histograms/geekbench-object_detection.svg) ### Geekbench: Object Remover Removes an object (using a mask) from a 3MP photo, and fills in the gap left behind using the iterative PatchMatch Inpainting approach (Barnes et al. 2009).The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:object_remover` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 247 – 32.6K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | :::warning This benchmark does not scale well on instances with more than 32 vCPUs. Empirical data shows measured scores plateau and may even degrade as vCPU count increases, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (6,790 measurements) ![Score distribution of Geekbench: Object Remover](https://docs.sparecores.com/benchmarks/histograms/geekbench-object_remover.svg) ### Geekbench: PDF Renderer Opens complex PDF documents (4 in single-core mode, 16 in multi-core mode) of park maps from the American National Park Service (sizes from 897 kB to 1.5 MB) with large vector images, lines and text.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:pdf_renderer` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 364 – 30.2K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | :::warning This benchmark does not scale well on instances with more than 32 vCPUs. Empirical data shows measured scores plateau and may even degrade as vCPU count increases, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (6,790 measurements) ![Score distribution of Geekbench: PDF Renderer](https://docs.sparecores.com/benchmarks/histograms/geekbench-pdf_renderer.svg) ### Geekbench: Photo Filter Applies colour and blur filters, level adjustments, cropping, scaling, and image compositing filters to 10 photos that range in size from 3 MP to 15 MP.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:photo_filter` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 246 – 29.5K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | :::warning This benchmark does not scale well on instances with more than 32 vCPUs. Empirical data shows measured scores plateau and may even degrade as vCPU count increases, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (6,790 measurements) ![Score distribution of Geekbench: Photo Filter](https://docs.sparecores.com/benchmarks/histograms/geekbench-photo_filter.svg) ### Geekbench: Photo Library Categorizes and tags photos (16 in single-core mode, 64 in multi-core mode) based on the objects that they contain. The workload performs JPEG decompression, thumbnail generation, image transformations, image classification (using MobileNet 1.0), and storing data in SQLite.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:photo_library` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 204 – 62.1K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | Score distribution (6,790 measurements) ![Score distribution of Geekbench: Photo Library](https://docs.sparecores.com/benchmarks/histograms/geekbench-photo_library.svg) ### Geekbench: Ray Tracer Renders the Blender BMW scene using a custom ray tracer built with the Intel Embree ray tracing library.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:ray_tracer` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 349 – 269.4K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | Score distribution (6,790 measurements) ![Score distribution of Geekbench: Ray Tracer](https://docs.sparecores.com/benchmarks/histograms/geekbench-ray_tracer.svg) ### Geekbench: Score Composite score using the weighted arithmetic mean of the subsection scores, which are computed using the geometric mean of the related scores.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:score` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 334 – 33.1K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | :::warning This benchmark does not scale well on instances with more than 64 vCPUs. Empirical data shows measured scores plateau and may even degrade as vCPU count increases, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (6,790 measurements) ![Score distribution of Geekbench: Score](https://docs.sparecores.com/benchmarks/histograms/geekbench-score.svg) ### Geekbench: Structure from Motion Generates 3D geometry by constructing the coordinates of the points that are visible in nine 2D images of the same scene.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:structure_from_motion` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 240 – 65.8K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | Score distribution (6,790 measurements) ![Score distribution of Geekbench: Structure from Motion](https://docs.sparecores.com/benchmarks/histograms/geekbench-structure_from_motion.svg) ### Geekbench: Text Processing Loads 190 markdown files, parses the contents using regular expressions, stores metadata in a SQLite database, and exports the content to a different format on an in-memory encrypted file system, using a mix of C++ and Python.The score is calibrated against a baseline score of 2,500 (Dell Precision 3460 with a Core i7-12700 processor) as per the Geekbench 6 Benchmark Internals. Benchmark details: - **Benchmark ID:** `geekbench:text_processing` - **Unit of measurement:** — - **Server types evaluated:** 3,395 - **Total measurements:** 6,790 - **Range of measurements:** 346 – 4.8K - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core performance tests. | `multi` `single` | :::warning This benchmark uses a fixed workload size and does not scale with vCPU count beyond 4 vCPUs, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (6,790 measurements) ![Score distribution of Geekbench: Text Processing](https://docs.sparecores.com/benchmarks/histograms/geekbench-text_processing.svg) --- ## llm_speed LLM inference speed ### LLM inference speed for prompt processing Running llama-bench from llama.cpp using various quantized model files to measure the speed of processing 16 to 16k tokens. Benchmark details: - **Benchmark ID:** `llm_speed:prompt_processing` - **Unit of measurement:** tokens/second (t/s) - **Server types evaluated:** 3,476 - **Total measurements:** 64,251 - **Range of measurements:** 0.539 – 102.9K t/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `model` | Name of the model file used. | `Llama-3.3-70B-Instruct-Q4_K_M.gguf` `SmolLM-135M.Q4_K_M.gguf` `gemma-2b.Q4_K_M.gguf` `llama-7b.Q4_K_M.gguf` `phi-4-q4.gguf` `qwen1_5-0_5b-chat-q4_k_m.gguf` | | `tokens` | Number of tokens processed in one run. | `16` `128` `512` `1024` `4096` `16384` | :::warning Throughput depends on model size and hardware. On CPU, smaller models often top out around 96 vCPUs; larger models hit memory limits sooner. GPUs are much faster than CPUs for this workload. llama.cpp only uses multiple GPUs when one card cannot hold the model weights. Extra GPUs are for fitting the model, not for serving more requests in parallel. These runs target single-user, low-concurrency inference. For high concurrency, use the vLLM benchmarks. ::: Score distribution (64,251 measurements) ![Score distribution of LLM inference speed for prompt processing](https://docs.sparecores.com/benchmarks/histograms/llm_speed-prompt_processing.svg) ### LLM inference speed for text generation Running llama-bench from llama.cpp using various quantized model files to measure the speed of generating 16 to 4k tokens. Benchmark details: - **Benchmark ID:** `llm_speed:text_generation` - **Unit of measurement:** tokens/second (t/s) - **Server types evaluated:** 3,473 - **Total measurements:** 48,866 - **Range of measurements:** 0.377 – 698.3 t/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `model` | Name of the model file used. | `Llama-3.3-70B-Instruct-Q4_K_M.gguf` `SmolLM-135M.Q4_K_M.gguf` `gemma-2b.Q4_K_M.gguf` `llama-7b.Q4_K_M.gguf` `phi-4-q4.gguf` `qwen1_5-0_5b-chat-q4_k_m.gguf` | | `tokens` | Number of tokens processed in one run. | `16` `128` `512` `1024` `4096` | :::warning Throughput depends on model size and hardware. On CPU, smaller models often top out around 96 vCPUs; larger models hit memory limits sooner. GPUs are much faster than CPUs for this workload. llama.cpp only uses multiple GPUs when one card cannot hold the model weights. Extra GPUs are for fitting the model, not for serving more requests in parallel. These runs target single-user, low-concurrency inference. For high concurrency, use the vLLM benchmarks. ::: Score distribution (48,866 measurements) ![Score distribution of LLM inference speed for text generation](https://docs.sparecores.com/benchmarks/histograms/llm_speed-text_generation.svg) --- ## membench Memory bandwidth, Memory latency ### Memory copy bandwidth (sc-membench) Measures aggregate memory copy bandwidth across all threads using OpenMP parallelization. Benchmark details: - **Benchmark ID:** `membench:bandwidth_copy` - **Unit of measurement:** MB/s - **Server types evaluated:** 2,434 - **Total measurements:** 26,076 - **Range of measurements:** 940.8 – 17.1M MB/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `scope` | RAM: working set exceeds total CPU cache (L3, else L2, else L1d). | `RAM` | | `size_kb` | Per-thread buffer size in KiB. | `16` `32` `64` `128` `256` `512` `1024` `2048` `4096` `8192` `16384` `32768` `65536` `131072` `262144` `524288` `1048576` `2097152` | Score distribution (26,076 measurements) ![Score distribution of Memory copy bandwidth (sc-membench)](https://docs.sparecores.com/benchmarks/histograms/membench-bandwidth_copy.svg) ### Memory read bandwidth (sc-membench) Measures aggregate sequential read bandwidth across all threads using OpenMP parallelization. Benchmark details: - **Benchmark ID:** `membench:bandwidth_read` - **Unit of measurement:** MB/s - **Server types evaluated:** 2,434 - **Total measurements:** 26,077 - **Range of measurements:** 1.9K – 37M MB/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `scope` | RAM: working set exceeds total CPU cache (L3, else L2, else L1d). | `RAM` | | `size_kb` | Per-thread buffer size in KiB. | `16` `32` `64` `128` `256` `512` `1024` `2048` `4096` `8192` `16384` `32768` `65536` `131072` `262144` `524288` `1048576` `2097152` | Score distribution (26,077 measurements) ![Score distribution of Memory read bandwidth (sc-membench)](https://docs.sparecores.com/benchmarks/histograms/membench-bandwidth_read.svg) ### Memory write bandwidth (sc-membench) Measures aggregate sequential write bandwidth across all threads using OpenMP parallelization. Benchmark details: - **Benchmark ID:** `membench:bandwidth_write` - **Unit of measurement:** MB/s - **Server types evaluated:** 2,434 - **Total measurements:** 26,077 - **Range of measurements:** 1.7K – 40.6M MB/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `scope` | RAM: working set exceeds total CPU cache (L3, else L2, else L1d). | `RAM` | | `size_kb` | Per-thread buffer size in KiB. | `16` `32` `64` `128` `256` `512` `1024` `2048` `4096` `8192` `16384` `32768` `65536` `131072` `262144` `524288` `1048576` `2097152` | Score distribution (26,077 measurements) ![Score distribution of Memory write bandwidth (sc-membench)](https://docs.sparecores.com/benchmarks/histograms/membench-bandwidth_write.svg) ### Memory latency (sc-membench) Measures median memory latency using pointer chasing with randomized access to defeat hardware prefetching. Benchmark details: - **Benchmark ID:** `membench:latency` - **Unit of measurement:** ns - **Server types evaluated:** 2,434 - **Total measurements:** 26,076 - **Range of measurements:** 0.73 – 860.6 ns - **Better:** ↓ Lower is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `scope` | RAM: working set exceeds total CPU cache (L3, else L2, else L1d). | `RAM` | | `size_kb` | Per-thread buffer size in KiB. | `16` `32` `64` `128` `256` `512` `1024` `2048` `4096` `8192` `16384` `32768` `65536` `131072` `262144` `524288` `1048576` `2097152` | Score distribution (26,076 measurements) ![Score distribution of Memory latency (sc-membench)](https://docs.sparecores.com/benchmarks/histograms/membench-latency.svg) --- ## nvbandwidth (Benchmarks) GPU bandwidth, GPU latency ### Node baseline directional bandwidth (nvbandwidth) Conservative per-direction bandwidth (GB/s) under simultaneous bi-directional saturation utilizing CE (Copy Engine). Benchmark details: - **Benchmark ID:** `nvbandwidth:all:duplex` - **Unit of measurement:** GB/s - **Server types evaluated:** 180 - **Total measurements:** 180 - **Range of measurements:** 5.3 – 178.6 GB/s - **Better:** ↑ Higher is better Score distribution (180 measurements) ![Score distribution of Node baseline directional bandwidth (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-all-duplex.svg) ### Node GPU-to-host bandwidth (nvbandwidth) Total node egress rate (GB/s) when ALL GPUs stream to CPU concurrently utilizing CE (Copy Engine). Benchmark details: - **Benchmark ID:** `nvbandwidth:all:gpu_to_host` - **Unit of measurement:** GB/s - **Server types evaluated:** 180 - **Total measurements:** 180 - **Range of measurements:** 6.6 – 229.3 GB/s - **Better:** ↑ Higher is better Score distribution (180 measurements) ![Score distribution of Node GPU-to-host bandwidth (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-all-gpu_to_host.svg) ### Node host-to-GPU bandwidth (nvbandwidth) Total node ingest rate (GB/s) when CPU streams to ALL GPUs concurrently utilizing CE (Copy Engine). Benchmark details: - **Benchmark ID:** `nvbandwidth:all:host_to_gpu` - **Unit of measurement:** GB/s - **Server types evaluated:** 180 - **Total measurements:** 180 - **Range of measurements:** 6.2 – 228.8 GB/s - **Better:** ↑ Higher is better Score distribution (180 measurements) ![Score distribution of Node host-to-GPU bandwidth (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-all-host_to_gpu.svg) ### SM/CE copy efficiency (nvbandwidth) Ratio (between 0.0 and 1.0) showing compute-core copy efficiency vs. raw DMA Copy Engine capacity, or in other terms, the ratio between CE (Copy Engine) and Streaming Multiprocessor (SM). Benchmark details: - **Benchmark ID:** `nvbandwidth:efficiency:sm_ce_ratio` - **Unit of measurement:** ratio - **Server types evaluated:** 180 - **Total measurements:** 180 - **Range of measurements:** 0.0717 – 1 ratio - **Better:** ↑ Higher is better Score distribution (180 measurements) ![Score distribution of SM/CE copy efficiency (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-efficiency-sm_ce_ratio.svg) ### GPU-to-GPU P2P duplex bandwidth (nvbandwidth) Per-direction NVLink/P2P lane speed (GB/s) during simultaneous transfers in both directions between two GPUs utilizing CE (Copy Engine). Benchmark details: - **Benchmark ID:** `nvbandwidth:p2p:duplex` - **Unit of measurement:** GB/s - **Server types evaluated:** 33 - **Total measurements:** 33 - **Range of measurements:** 4.9 – 770.4 GB/s - **Better:** ↑ Higher is better Score distribution (33 measurements) ![Score distribution of GPU-to-GPU P2P duplex bandwidth (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-p2p-duplex.svg) ### GPU-to-GPU P2P gather bandwidth (nvbandwidth) Intake bandwidth (GB/s) on a single target GPU when all peer GPUs send to it at once utilizing CE (Copy Engine). Benchmark details: - **Benchmark ID:** `nvbandwidth:p2p:gather` - **Unit of measurement:** GB/s - **Server types evaluated:** 33 - **Total measurements:** 33 - **Range of measurements:** 9.4 – 795.3 GB/s - **Better:** ↑ Higher is better Score distribution (33 measurements) ![Score distribution of GPU-to-GPU P2P gather bandwidth (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-p2p-gather.svg) ### GPU-to-GPU P2P latency (nvbandwidth) Direct transit latency (ns) between GPU pairs over NVLink/P2P utilizing SM (Streaming Multiprocessor). Benchmark details: - **Benchmark ID:** `nvbandwidth:p2p:latency` - **Unit of measurement:** ns - **Server types evaluated:** 33 - **Total measurements:** 33 - **Range of measurements:** 394.7 – 1.6K ns - **Better:** ↓ Lower is better Score distribution (33 measurements) ![Score distribution of GPU-to-GPU P2P latency (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-p2p-latency.svg) ### GPU-to-GPU P2P bandwidth (nvbandwidth) Single NVLink/P2P lane write speed (GB/s) between any two GPUs utilizing CE (Copy Engine). Benchmark details: - **Benchmark ID:** `nvbandwidth:p2p:single` - **Unit of measurement:** GB/s - **Server types evaluated:** 33 - **Total measurements:** 33 - **Range of measurements:** 9.9 – 774.7 GB/s - **Better:** ↑ Higher is better Score distribution (33 measurements) ![Score distribution of GPU-to-GPU P2P bandwidth (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-p2p-single.svg) ### Per-GPU GPU-to-host bandwidth (nvbandwidth) Average physical PCIe slot egress speed (GB/s) per single GPU utilizing CE (Copy Engine). Benchmark details: - **Benchmark ID:** `nvbandwidth:slot:gpu_to_host` - **Unit of measurement:** GB/s - **Server types evaluated:** 180 - **Total measurements:** 180 - **Range of measurements:** 6.6 – 57.4 GB/s - **Better:** ↑ Higher is better Score distribution (180 measurements) ![Score distribution of Per-GPU GPU-to-host bandwidth (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-slot-gpu_to_host.svg) ### Per-GPU host-to-GPU bandwidth (nvbandwidth) Average physical PCIe slot ingest speed (GB/s) per single GPU utilizing CE (Copy Engine). Benchmark details: - **Benchmark ID:** `nvbandwidth:slot:host_to_gpu` - **Unit of measurement:** GB/s - **Server types evaluated:** 180 - **Total measurements:** 180 - **Range of measurements:** 6.1 – 57.9 GB/s - **Better:** ↑ Higher is better Score distribution (180 measurements) ![Score distribution of Per-GPU host-to-GPU bandwidth (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-slot-host_to_gpu.svg) ### Per-GPU host-device latency (nvbandwidth) Average round-trip transit time (ns) between CPU and individual GPUs utilizing SM (Streaming Multiprocessor). Benchmark details: - **Benchmark ID:** `nvbandwidth:slot:latency` - **Unit of measurement:** ns - **Server types evaluated:** 180 - **Total measurements:** 180 - **Range of measurements:** 558.8 – 8.6K ns - **Better:** ↓ Lower is better Score distribution (180 measurements) ![Score distribution of Per-GPU host-device latency (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-slot-latency.svg) ### Per-GPU device memory copy bandwidth (nvbandwidth) Average on-GPU memory copy bandwidth (GB/s) per single GPU (device-to-device copy within the same GPU's memory) utilizing CE (Copy Engine). Benchmark details: - **Benchmark ID:** `nvbandwidth:slot:local_copy` - **Unit of measurement:** GB/s - **Server types evaluated:** 83 - **Total measurements:** 83 - **Range of measurements:** 13.1 – 3.2K GB/s - **Better:** ↑ Higher is better :::warning A copy both reads and writes every byte, so the scores are roughly 35-45% of the memory bandwidth listed on GPU datasheets (e.g. ~1,490 vs 3,350 GB/s on H100 SXM), and should not be compared to those figures directly. Time-sliced virtual GPU profiles (e.g. T4-4Q) can report proportionally lower values than the full GPU. Only recorded with nvbandwidth v0.7 and later. ::: Score distribution (83 measurements) ![Score distribution of Per-GPU device memory copy bandwidth (nvbandwidth)](https://docs.sparecores.com/benchmarks/histograms/nvbandwidth-slot-local_copy.svg) --- ## openssl Cryptography ### OpenSSL speed Measures the performance of OpenSSL's selected hash functions and block ciphers with different block sizes of data. Benchmark details: - **Benchmark ID:** `openssl` - **Unit of measurement:** Bytes per second (Bps) - **Server types evaluated:** 3,758 - **Total measurements:** 248,028 - **Range of measurements:** 2.4M – 595.9G Bps - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `algo` | Hash or block cipher algorithm, e.g. sha256 or aes-256-cbc. | `AES-256-CBC` `ARIA-256-CBC` `CAMELLIA-256-CBC` `SM4-CBC` `blake2b512` `sha256` `sha3-256` `sha3-512` `sha512` `shake128` `shake256` | | `block_size` | Block size (byte). | `16` `64` `256` `1024` `8192` `16384` | Score distribution (248,028 measurements) ![Score distribution of OpenSSL speed](https://docs.sparecores.com/benchmarks/histograms/openssl.svg) --- ## passmark Passmark ### PassMark: CPU Compression Test Using Gzip (Crypto++ 8.6) to compress blocks of data with a 4MB memory buffer size per core. Benchmark details: - **Benchmark ID:** `passmark:cpu_compression_test` - **Unit of measurement:** Kilobytes per second (kB/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 2.1K – 7.1M kB/s - **Better:** ↑ Higher is better Score distribution (3,698 measurements) ![Score distribution of PassMark: CPU Compression Test](https://docs.sparecores.com/benchmarks/histograms/passmark-cpu_compression_test.svg) ### PassMark: CPU Encryption Test Encrypting blocks of random data using AES, SHA256 and ECDSA with any available specialized CPU instruction sets and memory buffers totaling about 1MB per core. Benchmark details: - **Benchmark ID:** `passmark:cpu_encryption_test` - **Unit of measurement:** Megabytes per second (MB/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 73.1 – 423.2K MB/s - **Better:** ↑ Higher is better Score distribution (3,698 measurements) ![Score distribution of PassMark: CPU Encryption Test](https://docs.sparecores.com/benchmarks/histograms/passmark-cpu_encryption_test.svg) ### PassMark: CPU Extended Instructions Test Testing how fast the CPU can perform mathematical operations using extended instructions, such as SSE, FMA, AVX, AVX512 and NEON. Benchmark details: - **Benchmark ID:** `passmark:cpu_extended_instructions_test` - **Unit of measurement:** Millions of matrices per second (Mmat/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 138.6 – 485.3K Mmat/s - **Better:** ↑ Higher is better Score distribution (3,698 measurements) ![Score distribution of PassMark: CPU Extended Instructions Test](https://docs.sparecores.com/benchmarks/histograms/passmark-cpu_extended_instructions_test.svg) ### PassMark: CPU Floating Point Maths Test Testing how fast the CPU can perform mathematical floating point operations, using large sets of an equal number of random 32-bit and 64-bit floating point numbers for addition (30% of the time), subtraction (30% of the time), multiplication (30% of the time) and division (10% of the time), with floating point buffers totaling about 240kb per core. Benchmark details: - **Benchmark ID:** `passmark:cpu_floating_point_maths_test` - **Unit of measurement:** Millions of operations per second (Mops/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 355.1 – 1.5M Mops/s - **Better:** ↑ Higher is better Score distribution (3,698 measurements) ![Score distribution of PassMark: CPU Floating Point Maths Test](https://docs.sparecores.com/benchmarks/histograms/passmark-cpu_floating_point_maths_test.svg) ### PassMark: CPU Integer Maths Test Testing how fast the CPU can perform mathematical integer operations, using large sets of an equal number of random 32-bit and 64-bit integers for addition, subtraction, multiplication and division, with integer buffers totaling about 240kb per core. Benchmark details: - **Benchmark ID:** `passmark:cpu_integer_maths_test` - **Unit of measurement:** Millions of operations per second (Mops/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 567.8 – 2M Mops/s - **Better:** ↑ Higher is better Score distribution (3,698 measurements) ![Score distribution of PassMark: CPU Integer Maths Test](https://docs.sparecores.com/benchmarks/histograms/passmark-cpu_integer_maths_test.svg) ### PassMark: CPU Mark A composite average of the Integer, Floating point, Prime and String Sorting test scores, which can be used to compare CPUs from different platforms (even e.g. desktop vs mobile). Benchmark details: - **Benchmark ID:** `passmark:cpu_mark` - **Unit of measurement:** — - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 0 – 192.9K - **Better:** ↑ Higher is better Score distribution (3,698 measurements) ![Score distribution of PassMark: CPU Mark](https://docs.sparecores.com/benchmarks/histograms/passmark-cpu_mark.svg) ### PassMark: CPU Physics Test Simulating the same physics interactions as many times as possible within a timeframe, using the Bullet Physics Engine (version 2.88 for x86, 3.07 for ARM). Benchmark details: - **Benchmark ID:** `passmark:cpu_physics_test` - **Unit of measurement:** Frames per second (fps) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 0 – 64.5K fps - **Better:** ↑ Higher is better Score distribution (3,698 measurements) ![Score distribution of PassMark: CPU Physics Test](https://docs.sparecores.com/benchmarks/histograms/passmark-cpu_physics_test.svg) ### PassMark: CPU Prime Numbers Test Finding prime numbers using the Sieve of Atkin formula (with a limit of 32 million) on 64-bit integers with 4MB of memory per thread. Benchmark details: - **Benchmark ID:** `passmark:cpu_prime_numbers_test` - **Unit of measurement:** Million prime numbers per second (Mnums/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 1.1 – 4.6K Mnums/s - **Better:** ↑ Higher is better Score distribution (3,698 measurements) ![Score distribution of PassMark: CPU Prime Numbers Test](https://docs.sparecores.com/benchmarks/histograms/passmark-cpu_prime_numbers_test.svg) ### PassMark: CPU Single Threaded Test Using a single logical core for a mixture of floating point, string sorting and data compression tests. Benchmark details: - **Benchmark ID:** `passmark:cpu_single_threaded_test` - **Unit of measurement:** Millions of operations per second (Mops/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 161.6 – 4.6K Mops/s - **Better:** ↑ Higher is better :::warning This benchmark measures single-threaded CPU performance only, so scores do not increase with vCPU count beyond one core. ::: Score distribution (3,698 measurements) ![Score distribution of PassMark: CPU Single Threaded Test](https://docs.sparecores.com/benchmarks/histograms/passmark-cpu_single_threaded_test.svg) ### PassMark: CPU String Sorting Test Sorting strings using the Quicksort algorithm with memory buffers totaling about 25MB per core. Benchmark details: - **Benchmark ID:** `passmark:cpu_string_sorting_test` - **Unit of measurement:** Thousands of strings per second (Kstrings/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 276.9 – 963.3K Kstrings/s - **Better:** ↑ Higher is better Score distribution (3,698 measurements) ![Score distribution of PassMark: CPU String Sorting Test](https://docs.sparecores.com/benchmarks/histograms/passmark-cpu_string_sorting_test.svg) ### PassMark: Database Operations Single threaded and multi-threaded CRUD operations, such as INSERT (40%), SELECT (26%), UPDATE (24%), and DELETE (10%) on a relational database with 4 tables and 1k rows per table. Benchmark details: - **Benchmark ID:** `passmark:database_operations` - **Unit of measurement:** Thousands of operations per second (Kops/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 0 – 62.6K Kops/s - **Better:** ↑ Higher is better :::warning This benchmark does not scale well on instances with more than 32 vCPUs. Empirical data shows measured scores plateau and may even degrade as vCPU count increases, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (3,698 measurements) ![Score distribution of PassMark: Database Operations](https://docs.sparecores.com/benchmarks/histograms/passmark-database_operations.svg) ### PassMark: Memory Latency Measuring the time it takes for a single byte of memory to be transferred to the CPU for processing. A 512 MB buffer is allocated and then filled with pointers to other locations in the buffer, looping through a linked list. Benchmark details: - **Benchmark ID:** `passmark:memory_latency` - **Unit of measurement:** Nanoseconds (ns) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 0 – 405.3 ns - **Better:** ↓ Lower is better :::warning This benchmark score is largely independent of vCPU count within an instance family and mainly reflects hardware generation and memory characteristics, not instance size. ::: Score distribution (3,698 measurements) ![Score distribution of PassMark: Memory Latency](https://docs.sparecores.com/benchmarks/histograms/passmark-memory_latency.svg) ### PassMark: Memory Mark A composite score of PassMark's Database and Memory test cases Benchmark details: - **Benchmark ID:** `passmark:memory_mark` - **Unit of measurement:** — - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 0 – 4.7K - **Better:** ↑ Higher is better :::warning This benchmark does not scale well on instances with more than 16 vCPUs. Empirical data shows measured scores plateau and may even degrade as vCPU count increases, so it is not recommended for evaluating larger instance sizes. ::: Score distribution (3,698 measurements) ![Score distribution of PassMark: Memory Mark](https://docs.sparecores.com/benchmarks/histograms/passmark-memory_mark.svg) ### PassMark: Memory Read Cached Read a combination of 32-bit and 64-bit data from memory. Benchmark details: - **Benchmark ID:** `passmark:memory_read_cached` - **Unit of measurement:** Megabytes per second (MB/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 0 – 42K MB/s - **Better:** ↑ Higher is better :::warning This benchmark score is largely independent of vCPU count within an instance family and mainly reflects hardware generation and memory characteristics, not instance size. ::: Score distribution (3,698 measurements) ![Score distribution of PassMark: Memory Read Cached](https://docs.sparecores.com/benchmarks/histograms/passmark-memory_read_cached.svg) ### PassMark: Memory Read Uncached Read a combination of 32-bit and 64-bit data from memory using a 512 MB block size. Benchmark details: - **Benchmark ID:** `passmark:memory_read_uncached` - **Unit of measurement:** Megabytes per second (MB/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 0 – 40.3K MB/s - **Better:** ↑ Higher is better :::warning This benchmark score is largely independent of vCPU count within an instance family and mainly reflects hardware generation and memory characteristics, not instance size. ::: Score distribution (3,698 measurements) ![Score distribution of PassMark: Memory Read Uncached](https://docs.sparecores.com/benchmarks/histograms/passmark-memory_read_uncached.svg) ### PassMark: Memory Write Write a combination of 32-bit and 64-bit data to the memory using a 512 MB block size. Benchmark details: - **Benchmark ID:** `passmark:memory_write` - **Unit of measurement:** Megabytes per second (MB/s) - **Server types evaluated:** 3,698 - **Total measurements:** 3,698 - **Range of measurements:** 0 – 35.9K MB/s - **Better:** ↑ Higher is better :::warning This benchmark score is largely independent of vCPU count within an instance family and mainly reflects hardware generation and memory characteristics, not instance size. ::: Score distribution (3,698 measurements) ![Score distribution of PassMark: Memory Write](https://docs.sparecores.com/benchmarks/histograms/passmark-memory_write.svg) --- ## pgbench Database ### PostgreSQL heavy read-only throughput Measures PostgreSQL throughput with a remote pgbench client against a custom, cache-resident, read-only transaction (joins, aggregates, full-text search, arrays, regex, TOAST) that fits in shared\_buffers, so the score reflects engine CPU and memory behavior rather than disk or network. Server and client run in the same availability zone. Servers use pgtune-style host GUCs, while DBaaS keep the vendor-managed config. Each score is TPM at a given client concurrency; the typical profile is 1, vCPUs/2, vCPUs, and 2\*vCPUs (additional points may be present). This is a synthetic proxy for relative RDBMS performance across server types, not a prediction of any specific application's throughput. Benchmark details: - **Benchmark ID:** `pgbench:heavy_read_only` - **Unit of measurement:** Transactions per minute (TPM) - **Server types evaluated:** 900 - **Total measurements:** 3,438 - **Range of measurements:** 32 – 37.1K TPM - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `concurrency` | Parallel client query count (integer). Typical profile: 1, vCPUs/2, vCPUs, and 2\*vCPUs (may include additional points). | `1` `2` `3` `4` `6` `7` `8` `10` `11` `12` `14` `15` `16` `18` `19` `20` `22` `24` `28` `30` `32` `36` `38` `40` `44` `45` `48` `52` `56` `60` `64` `72` `76` `80` `88` `90` `96` `104` `112` `120` `126` `128` `144` `160` `176` `180` `192` `208` `224` `252` `256` `288` `320` `360` `384` `448` `504` `576` `720` `768` | Score distribution (3,438 measurements) ![Score distribution of PostgreSQL heavy read-only throughput](https://docs.sparecores.com/benchmarks/histograms/pgbench-heavy_read_only.svg) ### PostgreSQL heavy read-only peak throughput Maximum PostgreSQL throughput over the pgbench concurrency profile (typically 1, vCPUs/2, vCPUs, and 2\*vCPUs) with a remote client against a custom, cache-resident, read-only transaction (joins, aggregates, full-text search, arrays, regex, TOAST) that fits in shared\_buffers. Server and client run in the same availability zone. Servers use pgtune-style host GUCs, while DBaaS keep the vendor-managed config. This is a synthetic proxy for relative RDBMS performance across server types, not a prediction of any specific application's throughput. Benchmark details: - **Benchmark ID:** `pgbench:heavy_read_only:peak` - **Unit of measurement:** Transactions per minute (TPM) - **Server types evaluated:** 900 - **Total measurements:** 900 - **Range of measurements:** 45 – 37.1K TPM - **Better:** ↑ Higher is better Score distribution (900 measurements) ![Score distribution of PostgreSQL heavy read-only peak throughput](https://docs.sparecores.com/benchmarks/histograms/pgbench-heavy_read_only-peak.svg) ### PostgreSQL heavy read-only baseline (single connection) Baseline PostgreSQL throughput with a single remote pgbench client connection against a custom, cache-resident, read-only transaction (joins, aggregates, full-text search, arrays, regex, TOAST) that fits in shared\_buffers. Server and client run in the same availability zone. Servers use pgtune-style host GUCs, while DBaaS keep the vendor-managed config. Useful for comparing per-session engine and CPU efficiency across server types and sizes, because the score does not necessarily scale with extra vCPUs the way peak throughput does. This is a synthetic proxy for relative RDBMS performance, not a prediction of any specific application's throughput. Benchmark details: - **Benchmark ID:** `pgbench:heavy_read_only:single` - **Unit of measurement:** Transactions per minute (TPM) - **Server types evaluated:** 900 - **Total measurements:** 900 - **Range of measurements:** 38 – 299 TPM - **Better:** ↑ Higher is better :::warning This benchmark is measured with a single client session, so throughput does not necessarily grow with vCPU count. On the other hand, it is not a purely single-threaded metric, as the server may still engage multiple cores (e.g. parallel request handlers and background processes). Use it as a per-session efficiency baseline rather than a measure of instance capacity. ::: Score distribution (900 measurements) ![Score distribution of PostgreSQL heavy read-only baseline (single connection)](https://docs.sparecores.com/benchmarks/histograms/pgbench-heavy_read_only-single.svg) --- ## redis Database ### Redis latency Running a pair of redis server and benchmarking client (memtier\_benchmark) on each vCPU to evaluate the performance of SET operations, using different number of concurrent pipelined requests. The average latency reported by memtier\_benchmark. Benchmark details: - **Benchmark ID:** `redis:latency` - **Unit of measurement:** Milliseconds (ms) - **Server types evaluated:** 3,744 - **Total measurements:** 22,464 - **Range of measurements:** 0.25 – 750.7 ms - **Better:** ↓ Lower is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `pipeline` | The number of concurrent pipelined requests. | `1` `4` `16` `64` `256` `512` | | `operation` | Type of operation, e.g. SET or GET a key. | `SET` | :::warning Latency is recorded during the redis:rps run, not as a standalone benchmark. As it reflects a characteristic of that throughput measurement, it is not recommended for comparing instances on its own; use it instead as a filter when interpreting the related throughput scores. ::: Score distribution (22,464 measurements) ![Score distribution of Redis latency](https://docs.sparecores.com/benchmarks/histograms/redis-latency.svg) ### Redis server+client speed Running a pair of redis server and benchmarking client (memtier\_benchmark) on each vCPU to evaluate the performance of SET operations, using different number of concurrent pipelined requests. The measured RPS (ops/sec) is the sum of RPS measured in all parallel processes, but is not the maximum expected redis server speed, as the server(s) share CPU with the client(s). Benchmark details: - **Benchmark ID:** `redis:rps` - **Unit of measurement:** Operations per second (ops/sec) - **Server types evaluated:** 3,744 - **Total measurements:** 22,464 - **Range of measurements:** 5K – 254.8M ops/sec - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `pipeline` | The number of concurrent pipelined requests. | `1` `4` `16` `64` `256` `512` | | `operation` | Type of operation, e.g. SET or GET a key. | `SET` | Score distribution (22,464 measurements) ![Score distribution of Redis server+client speed](https://docs.sparecores.com/benchmarks/histograms/redis-rps.svg) ### Redis server (extrapolated) speed Running a pair of redis server and benchmarking client (memtier\_benchmark) on each vCPU to evaluate the performance of SET operations, using different number of concurrent pipelined requests. The extrapolated server speed is based on the measured speed adjusted by the server's and client's time spent executing in user/system mode, so trying to control for the client resource usage. Benchmark details: - **Benchmark ID:** `redis:rps-extrapolated` - **Unit of measurement:** Operations per second (ops/sec) - **Server types evaluated:** 3,744 - **Total measurements:** 22,464 - **Range of measurements:** 10.5K – 555.7M ops/sec - **Better:** ↑ Higher is better Derived from [`redis:rps`](#redis-rps): Measured RPS adjusted by server/client user+system CPU time to control for client resource usage. Configuration options | Field | Description | Example values | | --- | --- | --- | | `pipeline` | The number of concurrent pipelined requests. | `1` `4` `16` `64` `256` `512` | | `operation` | Type of operation, e.g. SET or GET a key. | `SET` | Score distribution (22,464 measurements) ![Score distribution of Redis server (extrapolated) speed](https://docs.sparecores.com/benchmarks/histograms/redis-rps-extrapolated.svg) --- ## static_web Static web server ### Static web server latency Serving smaller (1-64 KiB) and larger (256-512 KiB) files using a static HTTP server (binserve) as a single process, and benchmarking each workload (wrk) using variable number of threads (and keeping the threads with the maximum performance) and connections (recorded after divided by the number of vCPUs to make it comparable with other servers with different vCPU count) on the same server. The average latency reported by wrk. Benchmark details: - **Benchmark ID:** `static_web:latency` - **Unit of measurement:** Seconds (sec) - **Server types evaluated:** 3,678 - **Total measurements:** 102,984 - **Range of measurements:** 0.00000674 – 0.224 sec - **Better:** ↓ Lower is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `size` | Served file size (KiB). | `16k` `1k` `256k` `512k` `64k` | | `connections_per_vcpus` | Open HTTP connections per vCPU(s). | `0.5` `0.8888888888888888` `1` `1.7777777777777777` `2` `3.5555555555555554` `4` `7.111111111111111` `8` `14.222222222222221` `16` `28.444444444444443` `32` | :::warning Latency is recorded during the static\_web:rps run, not as a standalone benchmark. As it reflects a characteristic of that throughput measurement, it is not recommended for comparing instances on its own; use it instead as a filter when interpreting the related throughput scores. ::: Score distribution (102,984 measurements) ![Score distribution of Static web server latency](https://docs.sparecores.com/benchmarks/histograms/static_web-latency.svg) ### Static web server+client speed Serving smaller (1-64 KiB) and larger (256-512 KiB) files using a static HTTP server (binserve) as a single process, and benchmarking each workload (wrk) using variable number of threads (and keeping the threads with the maximum performance) and connections (recorded after divided by the number of vCPUs to make it comparable with other servers with different vCPU count) on the same server. The measured RPS is not the maximum expected server speed, as the server shares CPU with the client. Benchmark details: - **Benchmark ID:** `static_web:rps` - **Unit of measurement:** Requests per second (rps) - **Server types evaluated:** 3,678 - **Total measurements:** 102,984 - **Range of measurements:** 342 – 10M rps - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `size` | Served file size (KiB). | `16k` `1k` `256k` `512k` `64k` | | `connections_per_vcpus` | Open HTTP connections per vCPU(s). | `0.5` `0.8888888888888888` `1` `1.7777777777777777` `2` `3.5555555555555554` `4` `7.111111111111111` `8` `14.222222222222221` `16` `28.444444444444443` `32` | :::warning This benchmark does not scale well on large instances (100+ vCPUs) due to a listener bottleneck in the single-process HTTP server. ::: Score distribution (102,984 measurements) ![Score distribution of Static web server+client speed](https://docs.sparecores.com/benchmarks/histograms/static_web-rps.svg) ### Static web server (extrapolated) speed Serving smaller (1-64 KiB) and larger (256-512 KiB) files using a static HTTP server (binserve) as a single process, and benchmarking each workload (wrk) using variable number of threads (and keeping the threads with the maximum performance) and connections (recorded after divided by the number of vCPUs to make it comparable with other servers with different vCPU count) on the same server. The extrapolated RPS is based on the measured RPS adjusted by the server's and client's time spent executing in user/system mode, so trying to control for the client resource usage. Benchmark details: - **Benchmark ID:** `static_web:rps-extrapolated` - **Unit of measurement:** Requests per second (rps) - **Server types evaluated:** 3,678 - **Total measurements:** 102,984 - **Range of measurements:** 603.9 – 20.1M rps - **Better:** ↑ Higher is better Derived from [`static_web:rps`](#static_web-rps): Measured RPS adjusted by server/client user+system CPU time to control for client resource usage. Configuration options | Field | Description | Example values | | --- | --- | --- | | `size` | Served file size (KiB). | `16k` `1k` `256k` `512k` `64k` | | `connections_per_vcpus` | Open HTTP connections per vCPU(s). | `0.5` `0.8888888888888888` `1` `1.7777777777777777` `2` `3.5555555555555554` `4` `7.111111111111111` `8` `14.222222222222221` `16` `28.444444444444443` `32` | :::warning This benchmark does not scale well on large instances (100+ vCPUs) due to a listener bottleneck in the single-process HTTP server. ::: Score distribution (102,984 measurements) ![Score distribution of Static web server (extrapolated) speed](https://docs.sparecores.com/benchmarks/histograms/static_web-rps-extrapolated.svg) ### Static web server+client throughput Serving smaller (1-64 KiB) and larger (256-512 KiB) files using a static HTTP server (binserve) as a single process, and benchmarking each workload (wrk) using variable number of threads (and keeping the threads with the maximum performance) and connections (recorded after divided by the number of vCPUs to make it comparable with other servers with different vCPU count) on the same server. Throughput is calculated by multiplying the RPS with the served file size. The measured RPS is not the maximum expected server speed, as the server shares CPU with the client. Benchmark details: - **Benchmark ID:** `static_web:throughput` - **Unit of measurement:** Bytes per second (Bps) - **Server types evaluated:** 3,678 - **Total measurements:** 102,984 - **Range of measurements:** 4.6M – 517.5G Bps - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `size` | Served file size (KiB). | `16k` `1k` `256k` `512k` `64k` | | `connections_per_vcpus` | Open HTTP connections per vCPU(s). | `0.5` `0.8888888888888888` `1` `1.7777777777777777` `2` `3.5555555555555554` `4` `7.111111111111111` `8` `14.222222222222221` `16` `28.444444444444443` `32` | :::warning This benchmark does not scale well on large instances (100+ vCPUs) due to a listener bottleneck in the single-process HTTP server. ::: Score distribution (102,984 measurements) ![Score distribution of Static web server+client throughput](https://docs.sparecores.com/benchmarks/histograms/static_web-throughput.svg) ### Static web server (extrapolated) throughput Serving smaller (1-64 KiB) and larger (256-512 KiB) files using a static HTTP server (binserve) as a single process, and benchmarking each workload (wrk) using variable number of threads (and keeping the threads with the maximum performance) and connections (recorded after divided by the number of vCPUs to make it comparable with other servers with different vCPU count) on the same server. Extrapolated throughput is calculated by multiplying the extrapolated RPS with the served file size. The extrapolated RPS is based on the measured RPS adjusted by the server's and client's time spent executing in user/system mode, so trying to control for the client resource usage. Benchmark details: - **Benchmark ID:** `static_web:throughput-extrapolated` - **Unit of measurement:** Bytes per second (Bps) - **Server types evaluated:** 3,678 - **Total measurements:** 102,984 - **Range of measurements:** 10M – 1.1T Bps - **Better:** ↑ Higher is better Derived from [`static_web:throughput`](#static_web-throughput): Measured throughput adjusted by server/client user+system CPU time to control for client resource usage. Configuration options | Field | Description | Example values | | --- | --- | --- | | `size` | Served file size (KiB). | `16k` `1k` `256k` `512k` `64k` | | `connections_per_vcpus` | Open HTTP connections per vCPU(s). | `0.5` `0.8888888888888888` `1` `1.7777777777777777` `2` `3.5555555555555554` `4` `7.111111111111111` `8` `14.222222222222221` `16` `28.444444444444443` `32` | :::warning This benchmark does not scale well on large instances (100+ vCPUs) due to a listener bottleneck in the single-process HTTP server. ::: Score distribution (102,984 measurements) ![Score distribution of Static web server (extrapolated) throughput](https://docs.sparecores.com/benchmarks/histograms/static_web-throughput-extrapolated.svg) --- ## stress_ng stress-ng ### stress-ng atomic Start N workers that exercise various GCC \_\_atomic\_\*() built in operations on 8, 16, 32 and 64 bit integers that are shared among the N workers. This stressor is only available for builds using GCC 4.7.4 or higher. The stressor forces many front end cache stalls and cache references. Note that 32 bit systems do not currently exercise 64 bit integers. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:atomic` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,491 - **Range of measurements:** 7.8 – 1.5K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,491 measurements) ![Score distribution of stress-ng atomic](https://docs.sparecores.com/benchmarks/histograms/stress_ng-atomic.svg) ### stress-ng div16 single-core Stress a single vCPU core with the div16 method of stress-ng, and count the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:best1` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 3,761 - **Total measurements:** 3,761 - **Range of measurements:** 132.9 – 4.6K ops/s - **Better:** ↑ Higher is better :::warning This benchmark measures single-threaded CPU performance only, so scores do not increase with vCPU count beyond one core. ::: Score distribution (3,761 measurements) ![Score distribution of stress-ng div16 single-core](https://docs.sparecores.com/benchmarks/histograms/stress_ng-best1.svg) ### stress-ng div16 multi-core Stress the CPU with the div16 method of stress-ng using a varying number of vCPU cores, and count the measured maximum total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:bestn` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 3,761 - **Total measurements:** 3,761 - **Range of measurements:** 157 – 713.5K ops/s - **Better:** ↑ Higher is better Score distribution (3,761 measurements) ![Score distribution of stress-ng div16 multi-core](https://docs.sparecores.com/benchmarks/histograms/stress_ng-bestn.svg) ### stress-ng bitonicsort Start N workers that sort 32 bit integers using bitonic sort. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:bitonicsort` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 0.8 – 2.5K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng bitonicsort](https://docs.sparecores.com/benchmarks/histograms/stress_ng-bitonicsort.svg) ### stress-ng bitops Start N workers that perform various calculations using 32 bit integer manipulation operations. Many of these are derived from the Standford "Bit Twiddling Hacks" (Sean Eron Anderson) and Hacker's Delight (Henry S. Warren, Jr.). The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:bitops` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 16K – 39M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng bitops](https://docs.sparecores.com/benchmarks/histograms/stress_ng-bitops.svg) ### stress-ng branch Start N workers that randomly branch to 1024 randomly selected locations and hence exercise the CPU branch prediction logic. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:branch` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 19.7K – 67.5M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng branch](https://docs.sparecores.com/benchmarks/histograms/stress_ng-branch.svg) ### stress-ng bsearch Start N workers that binary search a sorted array of 32 bit integers using bsearch. By default, there are 65536 elements in the array. This is a useful method to exercise random access of memory and processor cache. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:bsearch` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 30 – 80.2K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng bsearch](https://docs.sparecores.com/benchmarks/histograms/stress_ng-bsearch.svg) ### stress-ng bubblesort Start N workers that sort 32 bit integers using bubblesort. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:bubblesort` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,249 - **Total measurements:** 4,494 - **Range of measurements:** 0.2 – 268.8 ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,494 measurements) ![Score distribution of stress-ng bubblesort](https://docs.sparecores.com/benchmarks/histograms/stress_ng-bubblesort.svg) ### stress-ng cache Start N workers that perform random wide spread memory read and writes to thrash the CPU cache. The code does not intelligently determine the CPU cache configuration and so it may be sub-optimal in producing hit-miss read/write activity for some processors. Note: to exercise cache misses it is recommended to instead use the matrix-3d stressor using the --matrix-3d-zyx option. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:cache` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,495 - **Range of measurements:** 40.7K – 12.9M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,495 measurements) ![Score distribution of stress-ng cache](https://docs.sparecores.com/benchmarks/histograms/stress_ng-cache.svg) ### stress-ng cachehammer Start N workers that exercise the cache with a randomized mix of memory read/writes and where possible cache prefetches and cache flushes to random addresses in three memory mapped regions, one of which is shared among all the cache stressors and is the size of the L3 cache, one is local to each instance and is 4 times the L3 cache size and one is a single page mapping that cannot be read or written. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:cachehammer` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,495 - **Range of measurements:** 21K – 56.5M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,495 measurements) ![Score distribution of stress-ng cachehammer](https://docs.sparecores.com/benchmarks/histograms/stress_ng-cachehammer.svg) ### stress-ng cacheline Start N workers that exercise reading and writing individual bytes in a shared buffer that is the size of a cache line. Each stressor will run 1 or more processes to exercise bytes that are next to each other. The number of per stressor processes run will be scaled so that at least all N bytes of a N byte cache line are exercised. The intent is to try and trigger cacheline corruption, stalls and misses with shared memory accesses. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:cacheline` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,502 - **Range of measurements:** 0.52 – 6.5K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,502 measurements) ![Score distribution of stress-ng cacheline](https://docs.sparecores.com/benchmarks/histograms/stress_ng-cacheline.svg) ### stress-ng clock Start N workers exercising clocks and POSIX timers. For all known clock types this will exercise clock\_getres, clock\_gettime and clock\_nanosleep. For all known timers it will create a random duration timer and busy poll this until it expires. This stressor will cause frequent context switching. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:clock` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 2.3K – 645K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng clock](https://docs.sparecores.com/benchmarks/histograms/stress_ng-clock.svg) ### stress-ng clone Start N workers that create clones (via the clone and clone3 system calls). This will rapidly try to create a default of 8192 clones that immediately die and wait in a zombie state until they are reaped. Once the maximum number of clones is reached (or clone fails because one has reached the maximum allowed) the oldest clone thread is reaped and a new clone is then created in a first-in first-out manner, and then repeated. A random clone flag is selected for each clone to try to exercise different clone operations. The clone stressor is a Linux only option. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:clone` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 14.9 – 39.7K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng clone](https://docs.sparecores.com/benchmarks/histograms/stress_ng-clone.svg) ### stress-ng context Start N workers that run three threads that use swapcontext to implement the thread-to-thread context switching. This exercises rapid process context saving and restoring and is bandwidth limited by register and memory save and restore rates. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:context` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 403.6 – 1.9M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng context](https://docs.sparecores.com/benchmarks/histograms/stress_ng-context.svg) ### stress-ng CPU all Stress the CPU with all available methods supported by stress-ng, and count the total bogo operations per second (in real time) based on wall clock run time. The stress methods include bit operations, recursive calculations, integer divisions, floating point operations, matrix multiplication, stats, trigonometric, and hash functions. Note that this is to be deprecated in favor of stress\_ng:div16. Benchmark details: - **Benchmark ID:** `stress_ng:cpu_all` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 3,765 - **Total measurements:** 7,409 - **Range of measurements:** 119.9 – 713.5K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Stressing a single core or all cores. | `1` `2` `3` `4` `6` `8` `10` `12` `14` `15` `16` `20` `22` `24` `26` `28` `30` `32` `36` `38` `40` `44` `45` `48` `52` `56` `60` `64` `72` `80` `88` `90` `96` `104` `112` `120` `128` `144` `160` `176` `180` `192` `208` `224` `252` `288` `360` `384` `416` `448` | Score distribution (7,409 measurements) ![Score distribution of stress-ng CPU all](https://docs.sparecores.com/benchmarks/histograms/stress_ng-cpu_all.svg) ### stress-ng cpu-sched Start N workers that exercise the scheduler by moving processes to different CPUs. Each worker starts 16 child processes and repeatedly moves the processes to different CPUs and attempts changes their scheduler policy using SCHED\_OTHER, SCHED\_BATCH, SCHED\_IDLE, SCHED\_EXT, SCHED\_DEADLINE, SCHED\_RR and SCHED\_FIFO policies. The choice of CPU placement is based on 8 different mechanisms and is changed every second to mix process placements on all the available CPUS. The child processes are run with randomizied nice settings to exercise scheduler prioritization. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:cpu_sched` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,237 - **Total measurements:** 4,471 - **Range of measurements:** 5.6 – 22.5K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,471 measurements) ![Score distribution of stress-ng cpu-sched](https://docs.sparecores.com/benchmarks/histograms/stress_ng-cpu_sched.svg) ### stress-ng crypt Start N workers that encrypt a 16 character random password using crypt. The password is encrypted using bcrypt bsdicrypt descrypt gost-yescrypt MD5 NT scrypt SHA-1 SHA-256 SHA-512 SunMD5 and yescrypt encryption methods. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:crypt` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 335.7 – 858.9K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng crypt](https://docs.sparecores.com/benchmarks/histograms/stress_ng-crypt.svg) ### stress-ng div16 Stress the CPU with the div16 method of stress-ng using a varying number of vCPU cores, and count the measured maximum total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:div16` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 3,761 - **Total measurements:** 62,589 - **Range of measurements:** 132.9 – 713.5K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Number of CPU cores stressed. | `1` `2` `3` `4` `5` `6` `7` `8` `9` `10` `11` `12` `13` `14` `15` `16` `17` `18` `19` `20` `21` `22` `23` `24` `25` `26` `27` `28` `29` `30` `31` `32` `34` `36` `38` `40` `42` `44` `45` `46` `48` `50` `52` `54` `56` `58` `60` `62` `64` `66` `68` `70` `72` `74` `76` `78` `80` `82` `84` `86` `88` `90` `92` `96` `98` `100` `102` `104` `108` `110` `112` `114` `116` `120` `124` `126` `128` `130` `132` `136` `138` `140` `144` `150` `154` `156` `160` `162` `168` `170` `174` `176` `180` `182` `186` `192` `196` `198` `204` `208` `210` `216` `220` `224` `228` `234` `238` `240` `242` `252` `260` `264` `266` `270` `276` `280` `286` `288` `294` `300` `308` `312` `322` `324` `330` `336` `338` `348` `350` `352` `360` `364` `372` `378` `384` `390` `392` `406` `416` `420` `434` `448` | Score distribution (62,589 measurements) ![Score distribution of stress-ng div16](https://docs.sparecores.com/benchmarks/histograms/stress_ng-div16.svg) ### stress-ng eigen Start N workers that exercise the Eigen C++ matrix library for 2D matrix addition, multiplication, determinant, inverse and transpose operations on long double, double and float matrices. This currently is only available for gcc/g++ builds. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:eigen` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 1.1K – 4.4M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng eigen](https://docs.sparecores.com/benchmarks/histograms/stress_ng-eigen.svg) ### stress-ng eventfd Start N parent and child worker processes that read and write 8 byte event messages between them via the eventfd mechanism (Linux only). The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:eventfd` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 3.3K – 14.1M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng eventfd](https://docs.sparecores.com/benchmarks/histograms/stress_ng-eventfd.svg) ### stress-ng expmath Start N workers that exercise various exponential functions with input values 0 to 1 in steps of 0.001; the results are sanity checked to ensure no variation occurs after each round of 10000 computations. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:expmath` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 182.3 – 1.1M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng expmath](https://docs.sparecores.com/benchmarks/histograms/stress_ng-expmath.svg) ### stress-ng fault Start N workers that generates minor and major page faults. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:fault` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 855.2 – 483.1K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng fault](https://docs.sparecores.com/benchmarks/histograms/stress_ng-fault.svg) ### stress-ng fibsearch Start N workers that use a search a sorted array of 32 bit integers using a Fibonacci search. A Fibonacci search is similar to a bsearch except that it uses the Fibonacci series to divide the search into unequal sized spaces. It avoids the costly division operator found in bsearches and examines closer elements on each search step so there is a slight compute and cache advantage over bsearch. By default, there are 65536 elements in the array. This is a useful method to exercise random access of memory and processor cache. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:fibsearch` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 35.4 – 83.1K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng fibsearch](https://docs.sparecores.com/benchmarks/histograms/stress_ng-fibsearch.svg) ### stress-ng fma Start N workers that exercise single and double precision floating point multiplication and add operations on arrays of 512 floating point values. More modern processors (Intel Haswell, AMD Bulldozer and Piledriver) and modern C compilers these will be performed by fused-multiply-add (fma3) opcodes. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:fma` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 88.9K – 338.7M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng fma](https://docs.sparecores.com/benchmarks/histograms/stress_ng-fma.svg) ### stress-ng fork Start N workers continually forking children that immediately exit. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:fork` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 339.8 – 162.7K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng fork](https://docs.sparecores.com/benchmarks/histograms/stress_ng-fork.svg) ### stress-ng fp Start N workers that exercise addition, multiplication and division operations on a range of floating point types. For each type, 8 floating point values are operated upon 65536 times in a loop per bogo op. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:fp` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 26.4 – 66.5K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng fp](https://docs.sparecores.com/benchmarks/histograms/stress_ng-fp.svg) ### stress-ng fractal Start N workers that generate 2D fractals. By default a 1024 x 1024 point Mandelbrot set is computed with a maximum of 256 iterations per point in the iterative compute loop. The fractal is computed row by row with multiple rows shared amongst the N fractal stressor instances. Double precision floating point values are used for the points in the complex set of values. Naive computation is used with no special algorithmic shortcuts or interpolation. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:fractal` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 0.8 – 2K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng fractal](https://docs.sparecores.com/benchmarks/histograms/stress_ng-fractal.svg) ### stress-ng funccall Start N workers that call functions of 1 through to 9 arguments. By default all functions with a range of argument types are called, however, this can be changed using the --funccall-method option. This exercises stack function argument passing and re-ordering on the stack and in registers. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:funccall` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 61.1 – 435.4K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng funccall](https://docs.sparecores.com/benchmarks/histograms/stress_ng-funccall.svg) ### stress-ng funcret Start N workers that pass and return by value various small to large data types. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:funcret` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 2K – 7.2M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng funcret](https://docs.sparecores.com/benchmarks/histograms/stress_ng-funcret.svg) ### stress-ng getrandom Start N workers that get 8192 random bytes from the /dev/urandom pool using the getrandom system call (Linux) or getentropy (OpenBSD). The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:getrandom` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 5.2K – 17.5M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng getrandom](https://docs.sparecores.com/benchmarks/histograms/stress_ng-getrandom.svg) ### stress-ng hash Start N workers that exercise various hashing functions. Random strings from 1 to 128 bytes are hashed and the hashing rate and chi squared is calculated from the number of hashes performed over a period of time. The chi squared value is the goodness-of-fit measure, it is the actual distribution of items in hash buckets versus the expected distribution of items. Typically a chi squared value close to 1.0 indicates a good hash distribution. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:hash` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 15.4K – 53.4M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng hash](https://docs.sparecores.com/benchmarks/histograms/stress_ng-hash.svg) ### stress-ng heapsort Start N workers that sort 32 bit integers using the BSD heapsort. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:heapsort` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 1 – 2.9K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng heapsort](https://docs.sparecores.com/benchmarks/histograms/stress_ng-heapsort.svg) ### stress-ng hrtimers Start N workers that exercise high resolution times at a high frequency. Each stressor starts 32 processes that run with random timer intervals of 0..499999 nanoseconds. Running this stressor with appropriate privilege will run these with the SCHED\_RR policy. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:hrtimers` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,251 - **Total measurements:** 4,501 - **Range of measurements:** 8.7K – 30M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,501 measurements) ![Score distribution of stress-ng hrtimers](https://docs.sparecores.com/benchmarks/histograms/stress_ng-hrtimers.svg) ### stress-ng hsearch Start N workers that search a 80% full hash table using hsearch. By default, there are 8192 elements inserted into the hash table. This is a useful method to exercise access of memory and processor cache. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:hsearch` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 843.4 – 2.1M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng hsearch](https://docs.sparecores.com/benchmarks/histograms/stress_ng-hsearch.svg) ### stress-ng hyperbolic Start N workers that exercise sinh, cosh, and tanh libm hyperbolic functions using float, double and long double floating point variants. Each function is exercised 10000 times per bogo-operation. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:hyperbolic` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 180.6 – 1.2M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng hyperbolic](https://docs.sparecores.com/benchmarks/histograms/stress_ng-hyperbolic.svg) ### stress-ng insertionsort Start N workers that sort 32 bit integers using insertion sort. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:insertionsort` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 1 – 2.7K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng insertionsort](https://docs.sparecores.com/benchmarks/histograms/stress_ng-insertionsort.svg) ### stress-ng intmath Start N workers that perform addition, subtraction, multiplication, division and modulo math operations on 128, 64, 32, 16 and 8 bit signed integers. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:intmath` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 6.5K – 16.7M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng intmath](https://docs.sparecores.com/benchmarks/histograms/stress_ng-intmath.svg) ### stress-ng ipsec-mb Start N workers that perform cryptographic processing using the highly optimized Intel Multi-Buffer Crypto for IPsec library. Depending on the features available, SSE, AVX, AVX and AVX512 CPU features will be used on data encrypted by SHA, DES, CMAC, CTR, HMAC MD5, HMAC SHA1 and HMAC SHA512 cryptographic routines. This is only available for x86-64 modern Intel CPUs. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:ipsec_mb` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** — - **Total measurements:** — - **Range of measurements:** — - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | — | ### stress-ng jpeg Start N workers that use jpeg compression on a machine generated plasma field image. The default image is a plasma field, however different image types may be selected. The starting raster line is changed on each compression iteration to cycle around the data. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:jpeg` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 82.6 – 192.7K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng jpeg](https://docs.sparecores.com/benchmarks/histograms/stress_ng-jpeg.svg) ### stress-ng l1cache Start N workers that exercise the CPU level 1 cache with reads and writes. A cache aligned buffer that is twice the level 1 cache size is read and then written in level 1 cache set sized steps over each level 1 cache set. This is designed to exercise cache block evictions. The bogo-op count measures the number of million cache lines touched. Where possible, the level 1 cache geometry is determined from the kernel, however, this is not possible on some architectures or kernels, so one may need to specify these manually. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:l1cache` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,230 - **Total measurements:** 4,457 - **Range of measurements:** 17.7 – 195.5K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,457 measurements) ![Score distribution of stress-ng l1cache](https://docs.sparecores.com/benchmarks/histograms/stress_ng-l1cache.svg) ### stress-ng logmath Start N workers that exercise various libm logarithmic functions with input values 1 to 10000. Results are sanity checked to ensure no variation occurs after each round of 10000 computations. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:logmath` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 229.5 – 1.7M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng logmath](https://docs.sparecores.com/benchmarks/histograms/stress_ng-logmath.svg) ### stress-ng malloc Start N workers continuously calling malloc, calloc, realloc, posix\_memalign, aligned\_alloc, memalign and free. By default, up to 65536 allocations can be active at any point, but this can be altered with the --malloc-max option. Allocation, reallocation and freeing are chosen at random; 50% of the time memory is allocation (via one of malloc, calloc or realloc, posix\_memalign, aligned\_alloc, memalign) and 50% of the time allocations are free'd. Allocation sizes are also random, with the maximum allocation size controlled by the --malloc-bytes option. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:malloc` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,251 - **Total measurements:** 4,500 - **Range of measurements:** 18K – 388.9M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng malloc](https://docs.sparecores.com/benchmarks/histograms/stress_ng-malloc.svg) ### stress-ng matrix Start N workers that perform various matrix operations on floating point values. Testing on 64 bit x86 hardware shows that this provides a good mix of memory, cache and floating point operations and is an excellent way to make a CPU run hot. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:matrix` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 315.9 – 1.5M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng matrix](https://docs.sparecores.com/benchmarks/histograms/stress_ng-matrix.svg) ### stress-ng matrix-3d Start N workers that perform various 3D matrix operations on floating point values. Testing on 64 bit x86 hardware shows that this provides a good mix of memory, cache and floating point operations and is an excellent way to make a CPU run hot. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:matrix_3d` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 48.1 – 50.1K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng matrix-3d](https://docs.sparecores.com/benchmarks/histograms/stress_ng-matrix_3d.svg) ### stress-ng mcontend Start N workers that produce memory contention read/write patterns. Each stressor runs with 5 threads that read and write to two different mappings of the same underlying physical page. Various caching operations are also exercised to cause sub-optimal memory access patterns. The threads also randomly change CPU affinity to exercise CPU and memory migration stress. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:mcontend` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 0.1 – 501.8K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng mcontend](https://docs.sparecores.com/benchmarks/histograms/stress_ng-mcontend.svg) ### stress-ng memcpy Start N workers that copies data to and from a buffer using memcpy and then move the data in the buffer with memmove with 3 different alignments. This will exercise the data cache and memory copying. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:memcpy` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 37.2 – 174.7K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng memcpy](https://docs.sparecores.com/benchmarks/histograms/stress_ng-memcpy.svg) ### stress-ng memrate Start N workers that exercise a buffer with 1024, 512, 256, 128, 64, 32, 16 and 8 bit reads and writes. 1024, 512 and 256 reads and writes are available with compilers that support integer vectors. x86-64 cpus that support uncached (non-temporal "nt") writes also exercise 128, 64 and 32 writes providing higher write rates than the normal cached writes. x86-64 also exercises repeated string stores using 64, 32, 16 and 8 bit writes. CPUs that support prefetching reads also exercise 64 prefetched "pf" reads. This memory stressor allows one to also specify the maximum read and write rates. The stressors will run at maximum speed if no read or write rates are specified. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:memrate` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,213 - **Total measurements:** 4,419 - **Range of measurements:** 0.1 – 135.5 ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,419 measurements) ![Score distribution of stress-ng memrate](https://docs.sparecores.com/benchmarks/histograms/stress_ng-memrate.svg) ### stress-ng memthrash Start N workers that thrash and exercise a 16 MB buffer in various ways to try and trip thermal overrun. Each stressor will start 1 or more threads. The number of threads is chosen so that there will be at least 1 thread per CPU. Note that the optimal choice for N is a value that divides into the number of CPUs. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:memthrash` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,249 - **Total measurements:** 4,487 - **Range of measurements:** 7.7 – 4.1K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,487 measurements) ![Score distribution of stress-ng memthrash](https://docs.sparecores.com/benchmarks/histograms/stress_ng-memthrash.svg) ### stress-ng mergesort Start N workers that sort 32 bit integers using the BSD mergesort. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:mergesort` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 3.5 – 8.7K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng mergesort](https://docs.sparecores.com/benchmarks/histograms/stress_ng-mergesort.svg) ### stress-ng monte-carlo Start N stressors that compute \ and e (Euler's number) using Monte Carlo computational experiments with various random number generators. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:monte_carlo` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 29.5 – 101.4K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng monte-carlo](https://docs.sparecores.com/benchmarks/histograms/stress_ng-monte_carlo.svg) ### stress-ng mpfr Start N workers that exercise multi-precision floating point operations using the GNU Multi-Precision Floating Point Reliable library (mpfr). The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:mpfr` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 156.8 – 418.6K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng mpfr](https://docs.sparecores.com/benchmarks/histograms/stress_ng-mpfr.svg) ### stress-ng mprotect Start N workers that exercise changing page protection settings and access memory after each change. 8 processes per worker contend with each other changing page protection settings on a shared memory region of just a few pages to cause TLB flushes. A read and write to the pages can cause segmentation faults and these are handled by the stressor. All combinations of page protection settings are exercised including invalid combinations. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:mprotect` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 39.4K – 43.2M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng mprotect](https://docs.sparecores.com/benchmarks/histograms/stress_ng-mprotect.svg) ### stress-ng mtx Start N stressors that exercise ISO C mutex locking and unlocking. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:mtx` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,251 - **Total measurements:** 4,501 - **Range of measurements:** 2.1M – 16.2G ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,501 measurements) ![Score distribution of stress-ng mtx](https://docs.sparecores.com/benchmarks/histograms/stress_ng-mtx.svg) ### stress-ng munmap Start N stressors that exercise unmapping of shared non-executable mapped regions of child processes (Linux only). The unmappings map shared memory regions page by page with a prime sized stride that creates many temporary mapping holes. One the unmappings are complete the child will exit and a new one is started. Note that this may trigger segmentation faults in the child process, these are handled where possible by forcing the child process to call \_exit. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:munmap` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,251 - **Total measurements:** 4,501 - **Range of measurements:** 244.4 – 154.3K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,501 measurements) ![Score distribution of stress-ng munmap](https://docs.sparecores.com/benchmarks/histograms/stress_ng-munmap.svg) ### stress-ng nop Start N workers that consume cpu cycles issuing no-op instructions. This stressor is available if the assembler supports the "nop" instruction. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:nop` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 33K – 114.4M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng nop](https://docs.sparecores.com/benchmarks/histograms/stress_ng-nop.svg) ### stress-ng null Start N workers that exercise /dev/null with write, lseek, ioctl, fcntl, fallocate and fdatasync calls. For just /dev/null write benchmarking use the --null-write option. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:null` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 42.5K – 319M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng null](https://docs.sparecores.com/benchmarks/histograms/stress_ng-null.svg) ### stress-ng pipe Start N workers that perform large pipe writes and reads to exercise pipe I/O. This exercises memory write and reads as well as context switching. Each worker has two processes, a reader and a writer. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:pipe` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,251 - **Total measurements:** 4,501 - **Range of measurements:** 67.5K – 266.2M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,501 measurements) ![Score distribution of stress-ng pipe](https://docs.sparecores.com/benchmarks/histograms/stress_ng-pipe.svg) ### stress-ng powmath Start N workers that exercise various libm power functions with input values 0 to 1 in steps of 0.001; the results are sanity checked to ensure no variation occurs after each round of 10000 computations. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:powmath` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 137.8 – 622.6K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng powmath](https://docs.sparecores.com/benchmarks/histograms/stress_ng-powmath.svg) ### stress-ng prime Start N workers that find prime numbers using the GNU Multiple Precision Arithmetic Library for large integers. The GMP mpz\_nextprime function is used to find primes and it uses a probabilistic algorithm to identify primes, but there is a extremely small chance that the values found are non-prime. The search becomes computationally more expensive over time to find larger and larger primes, hence the bogo-op rate will reduce over time. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:prime` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 52.8K – 120.6M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng prime](https://docs.sparecores.com/benchmarks/histograms/stress_ng-prime.svg) ### stress-ng priv-instr Start N workers that exercise various architecture specific privileged instructions that cannot be executed by userspace programs. These instructions will be trapped and processed by SIGSEGV or SIGILL signal handlers. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:priv_instr` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 44.6K – 33.4M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng priv-instr](https://docs.sparecores.com/benchmarks/histograms/stress_ng-priv_instr.svg) ### stress-ng ptr-chase Start N workers that chase memory pointers around page sized nodes of pointers. By default each stressor instance allocates 4096 pages of nodes, each node is an array of pointers that are randomly set to point to other node pages. The stressors follow randomly chosen pointers from each node, chasing around the entire node space. This exercises pointer fetching, pointer dereferencing and is a cache-read exercising stressor. The nodes are allocated with 50% of pages from the heap and 50% from mmap'd memory. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:ptr_chase` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 835K – 3.4G ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng ptr-chase](https://docs.sparecores.com/benchmarks/histograms/stress_ng-ptr_chase.svg) ### stress-ng qsort Start N workers that sort 32 bit integers using qsort. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:qsort` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 2.2 – 6K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng qsort](https://docs.sparecores.com/benchmarks/histograms/stress_ng-qsort.svg) ### stress-ng resched Start N workers that exercise process rescheduling. Each stressor spawns a child process for each of the positive nice levels and iterates over the nice levels from 0 to the lowest priority level (highest nice value). For each of the nice levels 1024 iterations over 3 non-real time scheduling polices SCHED\_OTHER, SCHED\_BATCH and SCHED\_IDLE are set and a sched\_yield occurs to force heavy rescheduling activity. When the -v verbose option is used the distribution of the number of yields across the nice levels is printed for the first stressor out of the N stressors. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:resched` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,251 - **Total measurements:** 4,501 - **Range of measurements:** 13.8K – 107M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,501 measurements) ![Score distribution of stress-ng resched](https://docs.sparecores.com/benchmarks/histograms/stress_ng-resched.svg) ### stress-ng rotate Start N workers that exercise 1 bit rotates left and right of unsigned integer variables. The default will rotate four 8, 16, 32, 64 (and if supported 128) bit values 10000 times in a loop per bogo-op. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:rotate` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 9K – 35.3M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng rotate](https://docs.sparecores.com/benchmarks/histograms/stress_ng-rotate.svg) ### stress-ng skiplist Start N workers that store and then search for integers using a skiplist. By default, 65536 integers are added and searched. This is a useful method to exercise random access of memory and processor cache. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:skiplist` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 704.6 – 2M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng skiplist](https://docs.sparecores.com/benchmarks/histograms/stress_ng-skiplist.svg) ### stress-ng spinmem Start N workers that use a shared memory page to keep two processes synchronized using busy spin loops. One process is a writer that increments a value in memory slot 0 and spin waits for the data to appear in memory slot 1. The other process spin waits for the data to change in slot 0 and copies the changed value into memory slot 1. The stressor benchmarks the time for the transactions to occur between both processes. Note that the optimal number of stressors is half the number of online CPUs in a system. By default 32 bit write/reads are used. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:spinmem` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,249 - **Total measurements:** 4,476 - **Range of measurements:** 0.2 – 180.8K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,476 measurements) ![Score distribution of stress-ng spinmem](https://docs.sparecores.com/benchmarks/histograms/stress_ng-spinmem.svg) ### stress-ng str Start N workers that exercise various libc string functions on random strings. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:str` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 91.6K – 258.2M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng str](https://docs.sparecores.com/benchmarks/histograms/stress_ng-str.svg) ### stress-ng stream Start N workers exercising a memory bandwidth stressor very loosely based on the STREAM "Sustainable Memory Bandwidth in High Performance Computers" benchmarking tool by John D. McCalpin, Ph.D. This stressor allocates 3 buffers that are at the size of the CPU L3 cache and continually performs rounds of computations on large arrays of double precision floating point numbers. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:stream` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,499 - **Range of measurements:** 0.17 – 10M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,499 measurements) ![Score distribution of stress-ng stream](https://docs.sparecores.com/benchmarks/histograms/stress_ng-stream.svg) ### stress-ng switch Start N workers that force context switching between two mutually blocking/unblocking tied processes. By default message passing over a pipe is used, but different methods are available. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:switch` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,251 - **Total measurements:** 4,501 - **Range of measurements:** 10.9K – 120.6M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,501 measurements) ![Score distribution of stress-ng switch](https://docs.sparecores.com/benchmarks/histograms/stress_ng-switch.svg) ### stress-ng timermix Start N workers creating timer and itimer signals at a high rate, this can create a many thousands of timer clock interrupts per second. Each signal that gets handled is counted as a bogo-operation. For timers, the following clocks types (where available) are used: CLOCK\_REALTIME, CLOCK\_MONOTONIC, CLOCK\_PROCESS\_CPUTIME\_ID, CLOCK\_THREAD\_CPUTIME\_ID, CLOCK\_BOOTTIME and CLOCK\_TAI. For itimers, the following interval timer types are used: ITIMER\_REAL, ITIMER\_VIRTUAL and ITIMER\_PROF. Some systems may support none or a subset of these timer or itimer types. The frequency of the itimers is auto-adjusted to try and maximize the timer interrupt rate. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:timermix` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 14K – 197.7M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng timermix](https://docs.sparecores.com/benchmarks/histograms/stress_ng-timermix.svg) ### stress-ng tlb-shootdown Start N workers that force Translation Lookaside Buffer (TLB) shootdowns. This is achieved by creating up to 16 child processes that all share a region of memory and these processes are shared amongst the available CPUs. The processes adjust the page mapping settings causing TLBs to be force flushed on the other processors, causing the TLB shootdowns. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:tlb_shootdown` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,253 - **Total measurements:** 4,506 - **Range of measurements:** 617 – 609.3K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,506 measurements) ![Score distribution of stress-ng tlb-shootdown](https://docs.sparecores.com/benchmarks/histograms/stress_ng-tlb_shootdown.svg) ### stress-ng tree Start N workers that exercise tree data structures. The default is to add, find and remove 250000 64 bit integers into AVL (avl), Red-Black (rb), Splay (splay), btree and binary trees. The intention of this stressor is to exercise memory and cache with the various tree operations. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:tree` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,249 - **Total measurements:** 4,496 - **Range of measurements:** 0.2 – 307 ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,496 measurements) ![Score distribution of stress-ng tree](https://docs.sparecores.com/benchmarks/histograms/stress_ng-tree.svg) ### stress-ng trig Start N workers that exercise sin, cos, sincos (where available) and tan libm trigonometric functions using float, double and long double floating point variants. Each function is exercised 10000 times per bogo-operation. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:trig` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 175.2 – 703.7K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng trig](https://docs.sparecores.com/benchmarks/histograms/stress_ng-trig.svg) ### stress-ng tsc Start N workers that read the Time Stamp Counter (TSC) 256 times per loop iteration (bogo operation). This exercises the tsc instruction for x86, the mftb instruction for ppc64, the rdcycle instruction for RISC-V, the tick instruction on SPARC and the rdtime.d instruction for Loong64. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:tsc` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,036 - **Total measurements:** 4,072 - **Range of measurements:** 80.4K – 372M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,072 measurements) ![Score distribution of stress-ng tsc](https://docs.sparecores.com/benchmarks/histograms/stress_ng-tsc.svg) ### stress-ng usersyscall Start N workers that exercise the Linux prctl userspace system call mechanism. A userspace system call is handled by a SIGSYS signal handler and exercised with the system call disabled (ENOSYS) and enabled (via SIGSYS) using prctl PR\_SET\_SYSCALL\_USER\_DISPATCH. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:usersyscall` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,036 - **Total measurements:** 4,072 - **Range of measurements:** 36.5K – 33.4M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,072 measurements) ![Score distribution of stress-ng usersyscall](https://docs.sparecores.com/benchmarks/histograms/stress_ng-usersyscall.svg) ### stress-ng vdso Start N workers that repeatedly call each of the system call functions in the vDSO (virtual dynamic shared object). The vDSO is a shared library that the kernel maps into the address space of all user-space applications to allow fast access to kernel data to some system calls without the need of performing an expensive system call. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:vdso` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,246 - **Total measurements:** 4,492 - **Range of measurements:** 5.1M – 38.7G ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,492 measurements) ![Score distribution of stress-ng vdso](https://docs.sparecores.com/benchmarks/histograms/stress_ng-vdso.svg) ### stress-ng veccmp Start N workers that perform various unsigned integer math comparison operations on various 128 bit vectors. A mix of integer vector comparison operations are performed on the following vectors: 16 x 8 bits, 8 x 16 bits, 4 x 32 bits, 2 x 64 bits and if supported 1 x 128 bits. The metrics produced by this mix depend on the processor architecture and the vector math optimisations produced by the compiler. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:veccmp` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 1.9K – 5.6M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng veccmp](https://docs.sparecores.com/benchmarks/histograms/stress_ng-veccmp.svg) ### stress-ng vecfp Start N workers that exercise floating point (single and double precision) addition, multiplication, division and negation on vectors of 128, 64, 32, 16 and 8 floating point values. The -v option will show the approximate throughput in millions of floating pointer operations per second for each operation. For x86, the gcc/clang target clones attribute has been used to produced vector optimizations for a range of mmx, sse, avx and processor features. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:vecfp` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 168.6 – 449.7K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng vecfp](https://docs.sparecores.com/benchmarks/histograms/stress_ng-vecfp.svg) ### stress-ng vecmath Start N workers that perform various unsigned integer math operations on various 128 bit vectors. A mix of vector math operations are performed on the following vectors: 16 x 8 bits, 8 x 16 bits, 4 x 32 bits, 2 x 64 bits and where supported 1 x 128 bits. The metrics produced by this mix depend on the processor architecture and the vector math optimisations produced by the compiler. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:vecmath` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 402.6 – 1.1M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng vecmath](https://docs.sparecores.com/benchmarks/histograms/stress_ng-vecmath.svg) ### stress-ng vecshuf Start N workers that shuffle data on various 64 byte vectors comprised of 8, 16, 32, 64 and 128 bit unsigned integers. The integers are shuffled around the vector with 4 shuffle operations per loop, 65536 loops make up one bogo-op of shuffling. The data shuffling rates and shuffle operation rates are logged when using the -v option. This stressor exercises vector load, shuffle/permute, packing/unpacking and store operations. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:vecshuf` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 63 – 839.2K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng vecshuf](https://docs.sparecores.com/benchmarks/histograms/stress_ng-vecshuf.svg) ### stress-ng vecwide Start N workers that perform various 8 bit math operations on vectors of 4, 8, 16, 32, 64, 128, 256, 512, 1024 and 2048 bytes. With the -v option the relative compute performance vs the expected compute performance based on total run time is shown for the first vecwide worker. The vecwide stressor exercises various processor vector instruction mixes and how well the compiler can map the vector operations to the target instruction set. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:vecwide` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,250 - **Total measurements:** 4,500 - **Range of measurements:** 2.8K – 12.9M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng vecwide](https://docs.sparecores.com/benchmarks/histograms/stress_ng-vecwide.svg) ### stress-ng vfork Start N workers continually vforking children that immediately exit. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:vfork` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,251 - **Total measurements:** 4,500 - **Range of measurements:** 1.9K – 630.4K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,500 measurements) ![Score distribution of stress-ng vfork](https://docs.sparecores.com/benchmarks/histograms/stress_ng-vfork.svg) ### stress-ng vm Start N workers continuously calling mmap/munmap and writing to the allocated memory. Note that this can cause systems to trip the kernel OOM killer on Linux systems if not enough physical memory and swap is not available. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:vm` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,246 - **Total measurements:** 4,461 - **Range of measurements:** 293.1 – 7M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,461 measurements) ![Score distribution of stress-ng vm](https://docs.sparecores.com/benchmarks/histograms/stress_ng-vm.svg) ### stress-ng wcs Start N workers that exercise various libc wide character string functions on random strings. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:wcs` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,252 - **Total measurements:** 4,504 - **Range of measurements:** 65K – 153.3M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,504 measurements) ![Score distribution of stress-ng wcs](https://docs.sparecores.com/benchmarks/histograms/stress_ng-wcs.svg) ### stress-ng x86syscall Start N workers that repeatedly exercise the x86-64 syscall instruction to call the getcpu, geteuid, getgid, getpid, gettimeofday and time system calls using the Linux vsyscall handler. Only for Linux. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:x86syscall` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,036 - **Total measurements:** 4,072 - **Range of measurements:** 508.5K – 3.9G ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,072 measurements) ![Score distribution of stress-ng x86syscall](https://docs.sparecores.com/benchmarks/histograms/stress_ng-x86syscall.svg) ### stress-ng yield Start N workers that call sched\_yield. This stressor ensures that at least 2 child processes per CPU exercise sched\_yield no matter how many workers are specified, thus always ensuring rapid context switching. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:yield` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,249 - **Total measurements:** 4,486 - **Range of measurements:** 226.3K – 692.4M ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,486 measurements) ![Score distribution of stress-ng yield](https://docs.sparecores.com/benchmarks/histograms/stress_ng-yield.svg) ### stress-ng zero Start N workers that exercise /dev/zero with read, lseek, ioctl and mmap calls. For just /dev/zero read benchmarking use the --zero-read option. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:zero` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,252 - **Total measurements:** 4,504 - **Range of measurements:** 335K – 2.3G ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,504 measurements) ![Score distribution of stress-ng zero](https://docs.sparecores.com/benchmarks/histograms/stress_ng-zero.svg) ### stress-ng zlib Start N workers compressing and decompressing random data using zlib. Each worker has two processes, one that compresses random data and pipes it to another process that decompresses the data. This stressor exercises CPU, cache and memory. The score is the total bogo operations per second (in real time) based on wall clock run time. Benchmark details: - **Benchmark ID:** `stress_ng:zlib` - **Unit of measurement:** Bogo operations per second (ops/s) - **Server types evaluated:** 2,246 - **Total measurements:** 4,481 - **Range of measurements:** 0.2 – 20.3K ops/s - **Better:** ↑ Higher is better Configuration options | Field | Description | Example values | | --- | --- | --- | | `cores` | Single-Core or Multi-Core stress tests. | `multi` `single` | Score distribution (4,481 measurements) ![Score distribution of stress-ng zlib](https://docs.sparecores.com/benchmarks/histograms/stress_ng-zlib.svg) --- ## workload_profile Workload profile ### Workload profile: Cache Intensive Precomputed compound score for Cache Intensive workloads. A weighted average (geometric mean) of benchmark scores compared to their medians: score = ∏ (x\_i / m\_i)^(w\_i / Σw). The score of 1.0 represents a synthetic baseline server with the median performance of each component benchmark; 0.5 means roughly half the performance; and 2.0 means twice the performance of that reference profile. Component weights: 50% Redis RPS (pipeline=1, SET), 20% Redis RPS (pipeline=16, SET), 10% PassMark Memory Mark (composite), 10% Memory bandwidth (read, 16 MB ~ L3), 10% PassMark single-thread CPU. Rationale for component selection: In-memory key-value store workload, mixing direct Redis performance metrics with memory speed and latency benchmarks, and single-core CPU performance profiles. Benchmark details: - **Benchmark ID:** `workload_profile:cache` - **Unit of measurement:** — - **Server types evaluated:** 3,759 - **Total measurements:** 3,759 - **Range of measurements:** 0.011 – 21 - **Better:** ↑ Higher is better Components | Component | Benchmark | Configuration | Weight | | --- | --- | --- | --- | | Redis RPS (pipeline=1, SET) | [`redis:rps-extrapolated`](https://docs.sparecores.com/benchmarks/redis.md#redis-rps-extrapolated) | `pipeline=1` `operation=SET` | 50% | | Redis RPS (pipeline=16, SET) | [`redis:rps-extrapolated`](https://docs.sparecores.com/benchmarks/redis.md#redis-rps-extrapolated) | `pipeline=16` `operation=SET` | 20% | | PassMark Memory Mark (composite) | [`passmark:memory_mark`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-memory_mark) | — | 10% | | Memory bandwidth (read, 16 MB ~ L3) | [`bw_mem`](https://docs.sparecores.com/benchmarks/bw_mem.md#bw_mem) | `size=16` `operation=rd` | 10% | | PassMark single-thread CPU | [`passmark:cpu_single_threaded_test`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_single_threaded_test) | — | 10% | Score distribution (3,759 measurements) ![Score distribution of Workload profile: Cache Intensive](https://docs.sparecores.com/benchmarks/histograms/workload_profile-cache.svg) ### Workload profile: CI/CD Build Precomputed compound score for CI/CD Build workloads. A weighted average (geometric mean) of benchmark scores compared to their medians: score = ∏ (x\_i / m\_i)^(w\_i / Σw). The score of 1.0 represents a synthetic baseline server with the median performance of each component benchmark; 0.5 means roughly half the performance; and 2.0 means twice the performance of that reference profile. Component weights: 50% Geekbench Clang compilation (multi-core), 10% Geekbench Clang compilation (single-core), 20% stress-ng div16 best-N cores, 5% PassMark integer math, 5% PassMark compression, 5% Brotli compression (multi-core, level 0), 5% PassMark string sorting. Rationale for component selection: Build performance is mainly driven by multi-core compilation throughput, but also bundles single-core compilation speed and general CPU performance, multi-core compression and text/scripting processing. Benchmark details: - **Benchmark ID:** `workload_profile:cicd` - **Unit of measurement:** — - **Server types evaluated:** 3,766 - **Total measurements:** 3,766 - **Range of measurements:** 0.0088 – 19 - **Better:** ↑ Higher is better Components | Component | Benchmark | Configuration | Weight | | --- | --- | --- | --- | | Geekbench Clang compilation (multi-core) | [`geekbench:clang`](https://docs.sparecores.com/benchmarks/geekbench.md#geekbench-clang) | `cores=multi` | 50% | | Geekbench Clang compilation (single-core) | [`geekbench:clang`](https://docs.sparecores.com/benchmarks/geekbench.md#geekbench-clang) | `cores=single` | 10% | | stress-ng div16 best-N cores | [`stress_ng:bestn`](https://docs.sparecores.com/benchmarks/stress_ng.md#stress_ng-bestn) | — | 20% | | PassMark integer math | [`passmark:cpu_integer_maths_test`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_integer_maths_test) | — | 5% | | PassMark compression | [`passmark:cpu_compression_test`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_compression_test) | — | 5% | | Brotli compression (multi-core, level 0) | [`compression_text:compress`](https://docs.sparecores.com/benchmarks/compression_text.md#compression_text-compress) | `algo=brotli` `cores=single` `compression_level=0` | 5% | | PassMark string sorting | [`passmark:cpu_string_sorting_test`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_string_sorting_test) | — | 5% | Score distribution (3,766 measurements) ![Score distribution of Workload profile: CI/CD Build](https://docs.sparecores.com/benchmarks/histograms/workload_profile-cicd.svg) ### Workload profile: Compute Heavy Applications Precomputed compound score for Compute Heavy Applications workloads. A weighted average (geometric mean) of benchmark scores compared to their medians: score = ∏ (x\_i / m\_i)^(w\_i / Σw). The score of 1.0 represents a synthetic baseline server with the median performance of each component benchmark; 0.5 means roughly half the performance; and 2.0 means twice the performance of that reference profile. Component weights: 15% stress-ng div16 best-N cores, 10% stress-ng div16 single core, 20% PassMark CPU Mark (composite), 10% Memory bandwidth (read, 64 MB), 15% PassMark floating point, 15% PassMark AVX/SSE/FMA (SIMD), 10% PassMark integer math, 5% PassMark physics simulation. Rationale for component selection: Number-crunching workload augmenting raw CPU performance stressing, general CPU performance benchmarks, memory bandwidth, and pure math computation speed like floating point, integer, SIMD (AVX/SSE/FMA) operations. Benchmark details: - **Benchmark ID:** `workload_profile:compute` - **Unit of measurement:** — - **Server types evaluated:** 3,766 - **Total measurements:** 3,766 - **Range of measurements:** 0.012 – 16 - **Better:** ↑ Higher is better Components | Component | Benchmark | Configuration | Weight | | --- | --- | --- | --- | | stress-ng div16 best-N cores | [`stress_ng:bestn`](https://docs.sparecores.com/benchmarks/stress_ng.md#stress_ng-bestn) | — | 15% | | stress-ng div16 single core | [`stress_ng:best1`](https://docs.sparecores.com/benchmarks/stress_ng.md#stress_ng-best1) | — | 10% | | PassMark CPU Mark (composite) | [`passmark:cpu_mark`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_mark) | — | 20% | | Memory bandwidth (read, 64 MB) | [`bw_mem`](https://docs.sparecores.com/benchmarks/bw_mem.md#bw_mem) | `size=64` `operation=rd` | 10% | | PassMark floating point | [`passmark:cpu_floating_point_maths_test`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_floating_point_maths_test) | — | 15% | | PassMark AVX/SSE/FMA (SIMD) | [`passmark:cpu_extended_instructions_test`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_extended_instructions_test) | — | 15% | | PassMark integer math | [`passmark:cpu_integer_maths_test`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_integer_maths_test) | — | 10% | | PassMark physics simulation | [`passmark:cpu_physics_test`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_physics_test) | — | 5% | Score distribution (3,766 measurements) ![Score distribution of Workload profile: Compute Heavy Applications](https://docs.sparecores.com/benchmarks/histograms/workload_profile-compute.svg) ### Workload profile: Data Analysis Precomputed compound score for Data Analysis workloads. A weighted average (geometric mean) of benchmark scores compared to their medians: score = ∏ (x\_i / m\_i)^(w\_i / Σw). The score of 1.0 represents a synthetic baseline server with the median performance of each component benchmark; 0.5 means roughly half the performance; and 2.0 means twice the performance of that reference profile. Component weights: 70% PassMark CPU Mark (composite), 10% Gzip compression (single-core, level 5), 10% Memory bandwidth (read, 64 MB), 10% PassMark Memory Mark (composite). Rationale for component selection: Data analysis and ETL workloads are memory-bandwidth-bound and CPU-throughput-driven. The profile combines general CPU performance and memory bandwidth/latency as the primary drivers, supplemented by single-core compression speed as a proxy for serialisation-heavy ETL tasks. Benchmark details: - **Benchmark ID:** `workload_profile:data_analysis` - **Unit of measurement:** — - **Server types evaluated:** 3,734 - **Total measurements:** 3,734 - **Range of measurements:** 0.013 – 6.3 - **Better:** ↑ Higher is better Components | Component | Benchmark | Configuration | Weight | | --- | --- | --- | --- | | PassMark CPU Mark (composite) | [`passmark:cpu_mark`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_mark) | — | 70% | | Gzip compression (single-core, level 5) | [`compression_text:compress`](https://docs.sparecores.com/benchmarks/compression_text.md#compression_text-compress) | `algo=gzip` `cores=single` `compression_level=5` | 10% | | Memory bandwidth (read, 64 MB) | [`bw_mem`](https://docs.sparecores.com/benchmarks/bw_mem.md#bw_mem) | `size=64` `operation=rd` | 10% | | PassMark Memory Mark (composite) | [`passmark:memory_mark`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-memory_mark) | — | 10% | Score distribution (3,734 measurements) ![Score distribution of Workload profile: Data Analysis](https://docs.sparecores.com/benchmarks/histograms/workload_profile-data_analysis.svg) ### Workload profile: Relational Database inactive Precomputed compound score for Relational Database workloads. A weighted average of normalised scores, each normalised to \[0, 1\] across all servers in the dataset. Component weights: 35% PassMark in-memory DB operations, 30% PassMark memory latency (512 MB), 20% PassMark Memory Mark (composite), 15% PassMark single-thread CPU. Rationale for component selection: Relational database workload (PostgreSQL, MySQL, transactional OLTP). Direct DB operation throughput is the primary driver, followed by memory latency for index lookups and buffer pool access, memory subsystem performance for working-set throughput, and single-thread CPU for query execution. Benchmark details: - **Benchmark ID:** `workload_profile:database` - **Unit of measurement:** — - **Server types evaluated:** — - **Total measurements:** — - **Range of measurements:** — - **Better:** ↑ Higher is better ### Workload profile: LLM Inference Precomputed compound score for LLM Inference workloads. A weighted average (geometric mean) of benchmark scores compared to their medians: score = ∏ (x\_i / m\_i)^(w\_i / Σw). The score of 1.0 represents a synthetic baseline server with the median performance of each component benchmark; 0.5 means roughly half the performance; and 2.0 means twice the performance of that reference profile. Component weights: 15% LLM text generation (SmolLM-135M, 128 tok), 15% LLM prompt processing (SmolLM-135M, 512 tok), 15% LLM text generation (Llama 7B, 128 tok), 15% LLM prompt processing (Llama 7B, 512 tok), 15% LLM text generation (Llama-3.3 70B, 128 tok), 15% LLM prompt processing (Llama-3.3 70B, 512 tok), 5% Memory bandwidth (read, 256 MB), 2% PassMark AVX/SSE/FMA (SIMD), 2% PassMark floating point. Rationale for component selection: VRAM and memory-bandwidth-bound LLM inference workload, using direct LLM speed benchmarks at three model sizes, and supplementing with raw memory bandwidth and SIMD performance benchmarks. Benchmark details: - **Benchmark ID:** `workload_profile:llm` - **Unit of measurement:** — - **Server types evaluated:** 3,439 - **Total measurements:** 3,439 - **Range of measurements:** 0.0045 – 19 - **Better:** ↑ Higher is better Components | Component | Benchmark | Configuration | Weight | | --- | --- | --- | --- | | LLM text generation (SmolLM-135M, 128 tok) | [`llm_speed:text_generation`](https://docs.sparecores.com/benchmarks/llm_speed.md#llm_speed-text_generation) | `model=SmolLM-135M.Q4_K_M.gguf` `tokens=128` | 15% | | LLM prompt processing (SmolLM-135M, 512 tok) | [`llm_speed:prompt_processing`](https://docs.sparecores.com/benchmarks/llm_speed.md#llm_speed-prompt_processing) | `model=SmolLM-135M.Q4_K_M.gguf` `tokens=512` | 15% | | LLM text generation (Llama 7B, 128 tok) | [`llm_speed:text_generation`](https://docs.sparecores.com/benchmarks/llm_speed.md#llm_speed-text_generation) | `model=llama-7b.Q4_K_M.gguf` `tokens=128` | 15% | | LLM prompt processing (Llama 7B, 512 tok) | [`llm_speed:prompt_processing`](https://docs.sparecores.com/benchmarks/llm_speed.md#llm_speed-prompt_processing) | `model=llama-7b.Q4_K_M.gguf` `tokens=512` | 15% | | LLM text generation (Llama-3.3 70B, 128 tok) | [`llm_speed:text_generation`](https://docs.sparecores.com/benchmarks/llm_speed.md#llm_speed-text_generation) | `model=Llama-3.3-70B-Instruct-Q4_K_M.gguf` `tokens=128` | 15% | | LLM prompt processing (Llama-3.3 70B, 512 tok) | [`llm_speed:prompt_processing`](https://docs.sparecores.com/benchmarks/llm_speed.md#llm_speed-prompt_processing) | `model=Llama-3.3-70B-Instruct-Q4_K_M.gguf` `tokens=512` | 15% | | Memory bandwidth (read, 256 MB) | [`bw_mem`](https://docs.sparecores.com/benchmarks/bw_mem.md#bw_mem) | `size=256` `operation=rd` | 5% | | PassMark AVX/SSE/FMA (SIMD) | [`passmark:cpu_extended_instructions_test`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_extended_instructions_test) | — | 3% | | PassMark floating point | [`passmark:cpu_floating_point_maths_test`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_floating_point_maths_test) | — | 3% | Score distribution (3,439 measurements) ![Score distribution of Workload profile: LLM Inference](https://docs.sparecores.com/benchmarks/histograms/workload_profile-llm.svg) ### Workload profile: ML inference inactive Precomputed compound score for CPU-based machine-learning inference workloads. A weighted average of normalised scores, each normalised to \[0, 1\] across all servers in the dataset. Component weights: 20% LLM text generation (llama-7b, 128 tokens), 15% memory bandwidth read (256 MB, bw\_mem), 10% LLM prompt processing (llama-7b, 512 tokens), 10% LLM text generation (gemma-2b, 128 tokens), 10% PassMark Memory Mark (composite), 10% PassMark AVX/SSE/FMA (SIMD), 10% Geekbench object detection (multi-core), 5% PassMark floating point, 5% Geekbench background blur (multi-core), 5% Geekbench structure-from-motion (multi-core). Benchmark details: - **Benchmark ID:** `workload_profile:ml` - **Unit of measurement:** — - **Server types evaluated:** — - **Total measurements:** — - **Range of measurements:** — - **Better:** ↑ Higher is better ### Workload profile: Web Server Precomputed compound score for Web Server workloads. A weighted average (geometric mean) of benchmark scores compared to their medians: score = ∏ (x\_i / m\_i)^(w\_i / Σw). The score of 1.0 represents a synthetic baseline server with the median performance of each component benchmark; 0.5 means roughly half the performance; and 2.0 means twice the performance of that reference profile. Component weights: 30% Static web RPS (1 KiB, 8 conn/vCPU), 20% Static web RPS (64 KiB, 8 conn/vCPU), 20% Static web throughput (256 KiB, 8 conn/vCPU), 20% OpenSSL AES-256-CBC (16 kB blocks), 5% Gzip compression (multi-core, level 5), 5% PassMark string sorting. Rationale for component selection: Primary workloads drivers are single-process static HTTP serving speed and throughput, text processing, TLS termination, and asset compression. Benchmark details: - **Benchmark ID:** `workload_profile:web` - **Unit of measurement:** — - **Server types evaluated:** 3,762 - **Total measurements:** 3,762 - **Range of measurements:** 0.011 – 13 - **Better:** ↑ Higher is better Components | Component | Benchmark | Configuration | Weight | | --- | --- | --- | --- | | Static web RPS (1 KiB, 8 conn/vCPU) | [`static_web:rps-extrapolated`](https://docs.sparecores.com/benchmarks/static_web.md#static_web-rps-extrapolated) | `size=1k` `connections_per_vcpus=8` | 30% | | Static web RPS (64 KiB, 8 conn/vCPU) | [`static_web:rps-extrapolated`](https://docs.sparecores.com/benchmarks/static_web.md#static_web-rps-extrapolated) | `size=64k` `connections_per_vcpus=8` | 20% | | Static web throughput (256 KiB, 8 conn/vCPU) | [`static_web:throughput-extrapolated`](https://docs.sparecores.com/benchmarks/static_web.md#static_web-throughput-extrapolated) | `size=256k` `connections_per_vcpus=8` | 20% | | OpenSSL AES-256-CBC (16 kB blocks) | [`openssl`](https://docs.sparecores.com/benchmarks/openssl.md#openssl) | `algo=AES-256-CBC` `block_size=16384` | 20% | | Gzip compression (multi-core, level 5) | [`compression_text:compress`](https://docs.sparecores.com/benchmarks/compression_text.md#compression_text-compress) | `algo=gzip` `cores=multi` `compression_level=5` | 5% | | PassMark string sorting | [`passmark:cpu_string_sorting_test`](https://docs.sparecores.com/benchmarks/passmark.md#passmark-cpu_string_sorting_test) | — | 5% | Score distribution (3,762 measurements) ![Score distribution of Workload profile: Web Server](https://docs.sparecores.com/benchmarks/histograms/workload_profile-web.svg) --- ## Under the hood How the Spare Cores Navigator collects its data and publishes it, and the components doing it. For the data itself and the ways to access it, see [Data](https://docs.sparecores.com/data.md). For the methods behind the data, e.g. the benchmarks, explained in conference talks with recordings and slides, see the [talks](https://sparecores.com/talks) on sparecores.com. ### Components The Navigator consists of several well-scoped, interconnected components: | Component | Source license | References | Description | | --- | --- | --- | --- | | Runner | MPL 2.0 | [GitHub repository of sc-runner](https://github.com/SpareCores/sc-runner) [sparecores-runner on PyPI](https://pypi.org/project/sparecores-runner/) | Pulumi wrapper to launch instances across clouds. | | [Images](https://docs.sparecores.com/images.md) | MPL 2.0 | [GitHub repository of sc-images](https://github.com/SpareCores/sc-images) [Container images on the GitHub Container Registry](https://github.com/orgs/SpareCores/packages?repo_name=sc-images) | Container images for hardware discovery and benchmark workloads. | | Inspector | MPL 2.0 | [GitHub repository of sc-inspector](https://github.com/SpareCores/sc-inspector) | Python tools to inspect and benchmark cloud servers. | | [Inspector Data](https://docs.sparecores.com/data.md) | CC BY-SA 4.0 | [GitHub repository of sc-inspector-data](https://github.com/SpareCores/sc-inspector-data) | Raw hardware information and benchmark results. | | [Crawler](https://docs.sparecores.com/crawler.md) | MPL 2.0 | [GitHub repository of sc-crawler](https://github.com/SpareCores/sc-crawler) [sparecores-crawler on PyPI](https://pypi.org/project/sparecores-crawler/) | Cloud vendor API and Inspector Data integrations. | | [Crawler Data](https://docs.sparecores.com/data.md) | CC BY-SA 4.0 | [GitHub repository of sc-data-dumps](https://github.com/SpareCores/sc-data-dumps) | JSON dumps of collected cloud resource information. | | [Database](https://docs.sparecores.com/sqlite.md) | BSL 1.1 | [Download the Database](https://cdn.sparecores.net/sc-data/latest/sc-data-all.sql.xz) [Documentation of the Database schemas](https://docs.sparecores.com/schemas.md) | SQLite database dump of current cloud resource information. | | [Data Wrapper](https://docs.sparecores.com/sqlite.md) | MPL 2.0 | [GitHub repository of sc-data](https://github.com/SpareCores/sc-data) [sparecores-data on PyPI](https://pypi.org/project/sparecores-data/) | Python package for easy integration of the Database. | | [HTTP API](https://docs.sparecores.com/api.md) | MPL 2.0 | [GitHub repository of sc-keeper](https://github.com/SpareCores/sc-keeper) [API endpoint of the HTTP API](https://keeper.sparecores.net/openapi.json) | Programmatic access to the Database. | | [Web UI](https://docs.sparecores.com/web-ui.md) | MPL 2.0 | [GitHub repository of sc-www](https://github.com/SpareCores/sc-www) [Homepage of the Web UI](https://sparecores.com/servers) | Web frontend for human access to the Database. | To make the Spare Cores Navigator available to the community, our software components are licensed under MPL 2.0 and all raw collected data under CC BY-SA 4.0. For deep production integrations and enterprise reliability, we offer commercial API and database access, expert support, and consulting services. ### How it works 1. The **Crawler** pulls the products (SKUs) and prices of the supported cloud vendors from their APIs, enriches with manually curated mappings, standardizes them, and publishes them as JSON dumps and as an SQLite database. See the [Crawler](https://docs.sparecores.com/crawler.md) docs, and the [Schemas](https://docs.sparecores.com/schemas.md) section for the structure of the database. 2. The **Inspector** selects the servers to be inspected based on the database, any task blocking reason codes, and previous runs, and starts them with the **Runner**, and runs hardware discovery and benchmark tasks on each, collecting the raw results. The tasks run the container images described in the [Images](https://docs.sparecores.com/images.md) section. 3. The Crawler parses the inspection results into the database, so that the hardware details and benchmark scores are stored along with the prices. 4. The database is available as a file download and via the **Data Wrapper** Python package (see [SQLite](https://docs.sparecores.com/sqlite.md)), via the **HTTP API** (see the [API](https://docs.sparecores.com/api.md) docs), and on the **Web UI** at [sparecores.com](https://sparecores.com/servers) (see its [user guide](https://docs.sparecores.com/web-ui.md)). ```mermaid flowchart TD %% colors of the Spare Cores design: external services gray, data amber, %% Python components green, runtime environments panel blue classDef external fill:#374151,stroke:#9ca3af,color:#e5e7eb; classDef data fill:#78350f,stroke:#f59e0b,color:#fef3c7; classDef python fill:#065f46,stroke:#34d399,color:#ffffff; classDef env fill:#06263a,stroke:#0369a1,color:#e5e7eb; classDef default fill:#0c4a6e,stroke:#0369a1,color:#e5e7eb; vendor(Vendor APIs) -- SKUs--> crawler class vendor external inspector_data[inspector-data] -- Prior runs --> inspector_outside[inspector] class inspector_outside python class inspector_data data inspector_outside -- Select servers --> runner class runner python runner -- Start/stop servers--> server subgraph crawler_gha[GHA: data-dumps] crawler end class crawler_gha env subgraph inspector_gha[GHA: inspector-data] inspector_outside runner end class inspector_gha env subgraph server[Cloud server] inspector <--> tasks@{ shape: processes, label: "Tasks" } class inspector python end class server env inspector -- stdout, stderr, metadata--> inspector_data crawler -- JSON --> data_dumps class crawler python class data_dumps data crawler -- SQLite --> s3[(Object store)] class s3 data s3 --> cdn[CDN] --> data[sc-data] class cdn external class data python data -- Server list --> inspector_outside inspector_data -- Parse results --> crawler subgraph keeper_gha[GHA: keeper] keeper_repo[keeper] --> docker_keeper[Docker build] class keeper_repo python end class keeper_gha env subgraph keeper_ecs[Service: keeper] keeper@{ shape: processes, label: "Tasks" } end class keeper_ecs env ECR[(Docker registry)] --> keeper class ECR data docker_keeper[Docker build] --> ECR data --> keeper subgraph www_gha[GHA: www] www_repo[www] --> docker_www[Docker build] class www_repo python end class www_gha env subgraph www_ecs[Service: www] www@{ shape: processes, label: "Tasks" } end class www_ecs env ECR --> www docker_www[Docker build] --> ECR keeper_cs -- SSR --> www subgraph ECS keeper_ecs www_ecs end class ECS env keeper --> alb[ALB] www --> alb alb --> keeper_cs[Cloudfront: keeper.sparecores.net] alb --> www_cs[Cloudfront: sparecores.com] keeper_cs -- Task list --> inspector_outside ssm[Secrets] --> www ssm --> keeper class ssm external redis[(Cache)] <--> keeper class redis data clerk[Auth provider] <--> www clerk --> keeper class clerk external %% nested in ECS, so their class is not applied style keeper_ecs fill:#082f49,stroke:#0369a1 style www_ecs fill:#082f49,stroke:#0369a1 ``` ### Standardizing the vendors' data The vendors' APIs and catalogs differ in what they list, how, and how completely, so the Crawler and the Inspector don't just copy them: - **Prices:** few vendors list one price per server type. Google Cloud, for example, prices most server types by their vCPUs and memory, as SKUs whose descriptions name the server family, with exceptions, e.g. its C2 family is "Compute optimized", and M2 is priced as a premium on top of M1. The Crawler matches these into one price per server type, region, zone and allocation. - **Specs:** what the vendors' APIs don't list, the Crawler takes from their docs or from hand-written mappings. - **Inspection:** the Inspector reads the hardware of each server directly, e.g. with `dmidecode`, `lscpu`, `lstopo` and `lshw`, which fills in or corrects specs such as the number of cores, the CPU caches, or the memory actually available. Specs that neither the vendor nor the inspection provides stay empty (see [Data](https://docs.sparecores.com/data.md#things-to-know)). The raw outputs of every inspection, with their stdout, stderr and metadata, are public in [`sc-inspector-data`](https://github.com/SpareCores/sc-inspector-data), so that any spec or score can be checked against what was measured. --- ## Spare Cores Crawler Links: [GitHub repository of sc-crawler](https://github.com/SpareCores/sc-crawler), [sparecores-crawler on PyPI](https://pypi.org/project/sparecores-crawler/). The Crawler of [Spare Cores Navigator](https://docs.sparecores.com/overview) is a Python package (`sparecores-crawler`) to pull and standardize data on cloud compute resources, with tooling to help organize and update the collected data into databases. ### Database schemas The database schemas and relationships are visualized and documented at [https://dbdocs.io/spare-cores/sc-crawler](https://dbdocs.io/spare-cores/sc-crawler). ### Usage The package provides a CLI tool: ```shell sc-crawler --help ``` #### Collect data Note that you need specific IAM permissions to be able to run `sc-crawler` at the below vendors: **Amazon Web Services (AWS)** AWS supports different options for [Authentication and access](https://docs.aws.amazon.com/sdkref/latest/guide/access.html) for interacting with their APIs. This is usually an AWS access key stored in `~/.aws/credentials` or in environment variables, or an attached IAM role. The related user or role requires the below minimum IAM policy: ```json { "Version": "2012-10-17", "Statement": [ { "Sid": "AllowCrawler", "Effect": "Allow", "Action": [ "pricing:ListPriceLists", "pricing:GetPriceListFileUrl", "pricing:GetProducts", "ec2:DescribeRegions", "ec2:DescribeAvailabilityZones", "ec2:DescribeInstanceTypes", "ec2:DescribeSpotPriceHistory", "ec2:DescribeInstanceTypeOfferings", "rds:DescribeOrderableDBInstanceOptions", "rds:DescribeDBMajorEngineVersions" ], "Resource": "*" } ] } ``` **Google Cloud Platform (GCP)** Using the [Application Default Credentials](https://cloud.google.com/docs/authentication/application-default-credentials) for interacting with GCP APIs. This is usually the path to a credential configuration file (created at [https://developers.google.com/workspace/guides/create-credentials#service-account](https://developers.google.com/workspace/guides/create-credentials#service-account)) stored in the `GOOGLE_APPLICATION_CREDENTIALS` environment variable, but could be an attached service account, Workload Identity Federation etc. The related user or service account requires the below minimum roles: - Commerce Price Management Viewer - Compute Viewer List of APIs required to be enabled in the project: - [Cloud Billing API](https://console.cloud.google.com/apis/library/cloudbilling.googleapis.com) - [Compute Engine API](https://console.developers.google.com/apis/api/compute.googleapis.com/overview) - [Cloud SQL Admin API](https://console.cloud.google.com/apis/library/sqladmin.googleapis.com) **Hetzner Cloud** Generate token at your Hetzner Cloud project and store it in the `HCLOUD_TOKEN` environment variable. **Microsoft Azure** Authentication is handled via the `DefaultAzureCredential`, so you can use either secrets or certificates. The following environment variables are required: - `AZURE_CLIENT_ID` (application client ID) - `AZURE_TENANT_ID` To authenticate with secret: - `AZURE_CLIENT_SECRET` (secret value) To authenticate with certificate: - `AZURE_CLIENT_CERTIFICATE_PATH` - `AZURE_CLIENT_CERTIFICATE_PASSWORD` (optional) For further options, consult the [`EnvironmentCredential` docs](https://learn.microsoft.com/en-us/python/api/azure-identity/azure.identity.environmentcredential?view=azure-python). Optionally, you can also specify the Subscription (otherwise the first one found in the account will be used): - `AZURE_SUBSCRIPTION_ID` The related Service Principal requires either the global "Reader" role, or the following list of (more restrictive) permissions: - `Microsoft.Resources/subscriptions/locations/read` To create the Service Principal, go to [App registrations](https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade), and then assign the role at the Subscription's Access control page. **UpCloud** Create a user (subaccount) in the UpCloud control panel with "API connections" permission enabled. Then configure the following environment variables: - `UPCLOUD_USERNAME` - `UPCLOUD_PASSWORD` **OVHcloud** You need to create a cloud project, optionally enable all regions, then create and configure a service account as described in the [Managing OVHcloud service accounts via the API](https://help.ovhcloud.com/csm/en-ie-manage-service-account?id=kb_article_view&sysparm_article=KB0059346) document. In short: 1. Create a service account via a `POST` API query to `/me/api/oauth2/client`. 2. Get its `arn` via a `GET` to `/me/api/oauth2/client/{client_id}` (using the `client_id` from above). 3. Set minimum permissions for the `arn` via a `POST` to `/iam/policy`, e.g.: ```json { "description": "Minimum permissions for sc-data", "identities": ["{your_urn}"], "name": "sc-data", "permissions": { "allow": [ { "action": "account:apiovh:me/get" }, { "action": "publicCloudProject:apiovh:get" }, { "action": "publicCloudProject:apiovh:region/get" }, { "action": "publicCloudProject:apiovh:region/volumeType/get" }, { "action": "publicCloudProject:apiovh:flavor/get" }, { "action": "publicCloudProject:apiovh:database/capabilities/get" }, { "action": "publicCloudProject:apiovh:database/availability/get" } ] }, "resources": [ { "urn": "urn:v1:eu:resource:account:{your_account_id}-ovh" } ] } ``` Then configure the following environment variables: - `OVH_ENDPOINT` (e.g. "ovh-eu") - `OVH_CLIENT_ID` - `OVH_CLIENT_SECRET` By default, the first project found in the account will be used. Optionally, you can also specify the project ID to override that behavior via the `OVH_PROJECT_ID` environment variable. For the price catalog, we default to using the `IE` (Ireland) OVH subsidiary, which can be overridden via the `OVH_SUBSIDIARY` environment variable. This choice affects the currency used for prices. **Oracle Cloud Infrastructure** Create a user (preferably in a dedicated group, e.g. `sc-crawler`) with an [API signing key](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm), and allow the group to list the regions, availability domains and compute shapes of the tenancy with the following policy statements: ```text Allow group sc-crawler to inspect tenancies in tenancy Allow group sc-crawler to inspect compartments in tenancy Allow group sc-crawler to inspect instance-family in tenancy ``` Then configure the following environment variables: - `OCI_USER_OCID` - `OCI_TENANCY_OCID` - `OCI_FINGERPRINT` - `OCI_REGION`: the home region of the tenancy (e.g. `eu-frankfurt-1`) - `OCI_PRIVATE_KEY` (the content of the PEM file) or `OCI_PRIVATE_KEY_PATH` Without the `OCI_TENANCY_OCID` environment variable, the standard `~/.oci/config` file is used, with the profile optionally set in `OCI_CONFIG_PROFILE`. No further policy is needed for the managed PostgreSQL databases: any authenticated user can list the shapes of the OCI Database with PostgreSQL service, and its default configurations are also listed with the above policy. The collected data depends on the tenancy: - Availability domains, compute and database shapes can be listed only in the regions the tenancy is subscribed to, so the other regions are stored as inactive, without zones, servers and databases. Note that a region subscription cannot be removed. - Only the compute shapes that can be launched in the tenancy are listed, e.g. GPU, HPC and VM Dense I/O shapes might be missing without the related service limits. The prices are from the public price list, which does not require authentication. **Vultr** Regions, servers and their prices are collected from the public endpoints of the Vultr API without authentication. Listing the managed PostgreSQL database plans and versions requires an API key, which can be created in the API settings of the Vultr customer portal, and is to be stored in the following environment variable: - `VULTR_API_KEY` **Alibaba Cloud** Create a RAM user with the `AliyunBSSReadOnlyAccess`, `AliyunECSReadOnlyAccess` and `AliyunRDSReadOnlyAccess` system policies (or a custom policy with at least the `bss:DescribeProduct` and `ecs:DescribePrice` permissions), then configure the following environment variables: - `ALIBABA_CLOUD_ACCESS_KEY_ID` - `ALIBABA_CLOUD_ACCESS_KEY_SECRET` Optionally, you can also specify the default region to use via the `ALIBABA_CLOUD_REGION_ID` environment variable, otherwise the default region (`eu-central-1`) will be used. Fetch and standardize datacenter, zone, servers, traffic, storage etc data from AWS into a single SQLite file: ```shell sc-crawler pull --connection-string sqlite:///sc-data-all.db --include-vendor aws ``` If you need to run this many times, set the `SC_CRAWLER_INSPECTOR_DATA_PATH` environment variable to a directory for caching the inspector data, so that it won't be downloaded multiple times. Such an up-to-date SQLite database is managed by the Spare Cores team in the [`sc-data`](https://github.com/SpareCores/sc-data) repository, or you can also find it at [https://cdn.sparecores.net/sc-data/latest/sc-data-all.sql.xz](https://cdn.sparecores.net/sc-data/latest/sc-data-all.sql.xz). Example run: #### Hash data Database content can be hashed via the `sc-crawler hash` command. It will provide a single SHA1 hash value based on all records of all Crawler tables, which is useful to track if database content has changed. ```shell $ sc-crawler hash --connection-string sqlite:///sc-data-all.db b13b9b06cfb917b591851d18c824037914564418 ``` For advanced usage, check [sc_crawler.utils.hash_database](https://docs.sparecores.com/crawler/reference/utils.md#hash_database) to hash tables or rows. #### Copy and sync data To copy data from a database to another one or sync data between two databases, you can use the `copy` and `sync` subcommands, which also support feeding SCD tables. #### Database migrations To generate `CREATE TABLE` statements using the current version of the Crawler schemas, e.g. for a MySQL database: ```shell sc-crawler schemas create --dialect mysql ``` See `sc-crawler schemas create --help` for all supported database engines (mainly thanks to SQLAlchemy), and other options. `sc-crawler schemas` also supports many other subcommands based on Alembic, e.g. `upgrade` or `downgrade` schemas in a database (either just printing the related SQL commands via the `--sql` flag), printing the current version, setting a database version to a specific revision, or auto-generating migration scripts (for Crawler developers). ### ORM The Crawler uses [SQLModel](https://sqlmodel.tiangolo.com/) / [SQLAlchemy](https://docs.sqlalchemy.org/) as the ORM to interact with the underlying database, and you can also use the defined schemas and models to actually read/filter a previously pulled DB. Quick examples: {/* fmt:off */} ```{ .py .repl hl_lines="6" } from sc_crawler.tables import Server from sqlmodel import create_engine, Session, select engine = create_engine("sqlite:///sc-data-all.db") # (1)! session = Session(engine) # (2)! server = session.exec(select(Server).where(Server.server_id == 'trn1.32xlarge')).one() # (3)! from rich import print as pp # (4)! pp(server) pp(server.vendor) # (5)! ``` {/* fmt:on */} 1. Creating a [connection (pool)](https://docs.sqlalchemy.org/en/20/core/engines.html#sqlalchemy.create_engine) to the SQLite database. 2. Define an [in-memory representation of the database](https://docs.sqlalchemy.org/en/20/orm/session_api.html#sqlalchemy.orm.Session) for the ORM objects. 3. Query the database for the [Server](https://docs.sparecores.com/crawler/reference/tables.md#server) with the `trn1.32xlarge` id. 4. Use `rich` to pretty-print the objects. 5. The `vendor` is a [Vendor](https://docs.sparecores.com/crawler/reference/tables.md#vendor) relationship of the [Server](https://docs.sparecores.com/crawler/reference/tables.md#server), in this case being [aws](https://docs.sparecores.com/crawler/reference/vendors/vendors-module.md#aws). --- ## Vendor support Each file in the [`src/sc_crawler/vendors`](https://github.com/SpareCores/sc-crawler/tree/main/src/sc_crawler/vendors) folder provides the required helpers for a given [Vendor](https://docs.sparecores.com/crawler/reference/tables.md#vendor), named as the `id` of the vendor prefixed with an underscore. For example, [`_aws.py`](https://github.com/SpareCores/sc-crawler/tree/main/src/sc_crawler/vendors/_aws.py) provides functions to be used by its [Vendor](https://docs.sparecores.com/crawler/reference/tables.md#vendor) instance, called [`aws`](https://docs.sparecores.com/crawler/reference/vendors/vendors-module.md#aws). ### First steps 1. Define the new [Vendor](https://docs.sparecores.com/crawler/reference/tables.md#vendor) instance in `src/sc_crawler/vendors/vendors.py`. 2. Copy the below [template file](#template-file-for-new-vendors) as a starting point to `src/sc_crawler/vendors/_.py`. 3. Update `src/sc_crawler/vendors/__init__.py` to include the new vendor. 4. If the vendor's SDK is needed, add it as an optional dependency named after the vendor id in `pyproject.toml`, and list that in the `vendors` extra. 5. Update the "Collect data" section of `docs/index.md` with the credential and permission requirements for the new vendor. 6. Implement the `inventory` methods. 7. Make sure that the country of the vendor and of all its regions is listed in `country_continent_mapping` in `src/sc_crawler/lookup.py`, as the related `Country` rows are created from that. 8. Add unit tests in `tests/test_.py` with mocked API responses. 9. Add the official pages to cross-check the collected data to `audit/sources.yaml`, and describe the new vendor in `CHANGELOG.md`. 10. Preferably also implement the related cloud-discovery tool in the `resource-tracker` package. 11. Add the new vendor to `_boot_from_attached_network_drive` in `_find_storage_disks_from_lsblk` ([`src/sc_crawler/inspector.py`](https://github.com/SpareCores/sc-crawler/blob/main/src/sc_crawler/inspector.py)). The value (`True` or `False`) must match whether the vendor's Pulumi provisioning script in the [sc-runner](https://github.com/SpareCores/sc-runner) repo attaches a network block volume as the boot drive: check `src/sc_runner/resources/.py`. ### Inventory methods Each vendor module should provide the below functions: - `inventory_compliance_frameworks`: Define [`VendorComplianceLink`](https://docs.sparecores.com/crawler/reference/tables.md#vendorcompliancelink) instances to describe which frameworks the vendor complies with. Optionally include references in the `comment` field. To avoid duplicating [`ComplianceFramework`](https://docs.sparecores.com/crawler/reference/tables.md#complianceframework) instances, easiest is to use the `compliance_framework_id` field instead of the `compliance_framework` relationship, preferably via [sc_crawler.lookup.map_compliance_frameworks_to_vendor](https://docs.sparecores.com/crawler/reference/lookup.md#map_compliance_frameworks_to_vendor). - `inventory_regions`: Define [`Region`](https://docs.sparecores.com/crawler/reference/tables.md#region) instances with location, energy source etc for each region the vendor has. - `inventory_zones`: Define a [`Zone`](https://docs.sparecores.com/crawler/reference/tables.md#zone) instance for each availability zone of the vendor in each region. - `inventory_servers`: Define [`Server`](https://docs.sparecores.com/crawler/reference/tables.md#server) instances for the vendor's server/instance types. - `inventory_server_prices`: Define the [`ServerPrice`](https://docs.sparecores.com/crawler/reference/tables.md#serverprice) instances for the standard/ondemand (or optionally also for the reserved) pricing of the instance types per region and zone. When applicable, include the monthly cap for tiered pricing in the `price_tiered` field. - `inventory_server_prices_spot`: Similar to the above, define [`ServerPrice`](https://docs.sparecores.com/crawler/reference/tables.md#serverprice) instances but the `allocation` field set to [`Allocation.SPOT`](https://docs.sparecores.com/crawler/reference/table_fields.md#allocation). Very likely to see different spot prices per region/zone. - `inventory_storages`: Define [`Storage`](https://docs.sparecores.com/crawler/reference/tables.md#storage) instances to describe the available storage options that can be attached to the servers. - `inventory_storage_prices`: Define [`StoragePrice`](https://docs.sparecores.com/crawler/reference/tables.md#storageprice) instances for the pricing of the storage options per region. - `inventory_databases`: Define [`Database`](https://docs.sparecores.com/crawler/reference/tables.md#database) instances for managed database instances (e.g. PostgreSQL). - `inventory_database_prices`: Define [`DatabasePrice`](https://docs.sparecores.com/crawler/reference/tables.md#databaseprice) instances for compute pricing per region. `ha` and `ha_strategy` are scalar primary-key fields (one price row per HA deployment). Use hourly `price` with optional monthly cap in `price_tiered`. - `inventory_database_storages`: Define [`DatabaseStorage`](https://docs.sparecores.com/crawler/reference/tables.md#databasestorage) instances for decoupled or add-on storage products. - `inventory_database_storage_prices`: Define [`DatabaseStoragePrice`](https://docs.sparecores.com/crawler/reference/tables.md#databasestorageprice) instances for storage pricing per region. - `inventory_traffic_prices`: Define [`TrafficPrice`](https://docs.sparecores.com/crawler/reference/tables.md#trafficprice) instances to describe the pricing of ingress/egress traffic. - `inventory_ipv4_prices`: Define [`Ipv4Price`](https://docs.sparecores.com/crawler/reference/tables.md#ipv4price) instances on the price of an IPv4 address. Each function will be picked up as the related [Vendor](https://docs.sparecores.com/crawler/reference/tables.md#vendor) instance's instance methods, so each function should take a single argument, that is the [Vendor](https://docs.sparecores.com/crawler/reference/tables.md#vendor) instance. E.g. [sc_crawler.vendors._aws.inventory_regions](https://docs.sparecores.com/crawler/reference/vendors/aws.md#inventory_regions) is called by [sc_crawler.tables.Vendor.inventory_regions](https://docs.sparecores.com/crawler/reference/tables.md#vendorinventory_regions). The functions should return an array of dict representing the related objects. The vendor's `inventory` method will pass the array to [sc_crawler.insert.insert_items](https://docs.sparecores.com/crawler/reference/insert.md#insert_items) along with the table object. Other functions and variables must be prefixed with an underscore to suggest those are internal tools. ### Status and retirement checks Set `status` on every `Server` and `Database` row. Possible values: `ACTIVE`, `INACTIVE`, `PLANNED_FOR_RETIREMENT`, `RETIRED`. See [Status](https://docs.sparecores.com/crawler/reference/table_fields.md#status) for the definition of each. - Map the vendor's lifecycle API fields to these four states. Document the mapping in the `inventory_servers` / `inventory_databases` docstring. - Use only explicit API or documentation signals for `PLANNED_FOR_RETIREMENT` and `RETIRED`. Do not infer retirement from naming patterns like "previous generation" unless there is a confirmed mapping. - If multiple signals exist (e.g. per-region availability), pick the best: `ACTIVE` > `PLANNED_FOR_RETIREMENT` > `INACTIVE` > `RETIRED`. - Set `retirement_date` on the `PLANNED_FOR_RETIREMENT` and `RETIRED` rows when the vendor publishes a retirement date: the end of support (shutdown) if published, otherwise the end of sale or orderability (take the latest one when dates are published per region), and leave it empty otherwise. Prefer an API field (e.g. Hetzner's `deprecation.unavailable_after`). When the date is only in the docs, list it in a `__RETIREMENT_RULES` tuple of `(compiled regex on the SKU name, date)` pairs with the source URL of each, matched by [retirement_date_from_rules](https://docs.sparecores.com/crawler/reference/vendor_helpers.md#retirement_date_from_rules). If the date is the only lifecycle signal (e.g. Azure), derive `status` from it with [status_from_retirement_date](https://docs.sparecores.com/crawler/reference/vendor_helpers.md#status_from_retirement_date). SKUs no longer returned by the vendor keep their stored status and date, as these are not set to `INACTIVE` by `pull`. - The `status` of the other records is optional (defaults to `ACTIVE`), and can be set when needed: e.g. `INACTIVE` for a region that is listed by the vendor but cannot be queried with the credentials (like the regions an Oracle Cloud Infrastructure tenancy is not subscribed to), or for the price of a server that is sold out in a region. - Never set `ARCHIVED` in a vendor module. It is not a vendor signal: it marks records that we replaced by another record (e.g. after changing how the ids of a vendor's regions are generated) or dropped on purpose, and it is set only from the rules in [sc_crawler.archive_rules](https://docs.sparecores.com/crawler/reference/archive_rules.md). When changing the id of existing records, add a rule there for each old → new pair instead of leaving the old records behind as `INACTIVE`. ### Progress bars To create progress bars, you can use the [Vendor](https://docs.sparecores.com/crawler/reference/tables.md#vendor)'s [progress_tracker](https://docs.sparecores.com/crawler/reference/tables.md#vendorprogress_tracker) attribute with the below methods: * [start_task](https://docs.sparecores.com/crawler/reference/logger.md#vendorprogresstrackerstart_task) * [advance_task](https://docs.sparecores.com/crawler/reference/logger.md#vendorprogresstrackeradvance_task) * [hide_task](https://docs.sparecores.com/crawler/reference/logger.md#vendorprogresstrackerhide_task) The [start_task](https://docs.sparecores.com/crawler/reference/logger.md#vendorprogresstrackerstart_task) will register a task in the "Current tasks" progress bar list with the provided name automatically prefixed by the vendor name, and the provided number of expected steps. You should call [advance_task](https://docs.sparecores.com/crawler/reference/logger.md#vendorprogresstrackeradvance_task) after each step finished, which will by default update the most recently created task's progress bar. If making updates in parallel, store the `TaskID` returned by [start_task](https://docs.sparecores.com/crawler/reference/logger.md#vendorprogresstrackerstart_task) and pass to [advance_task](https://docs.sparecores.com/crawler/reference/logger.md#vendorprogresstrackeradvance_task) and [hide_task](https://docs.sparecores.com/crawler/reference/logger.md#vendorprogresstrackerhide_task) explicitly. Make sure to call `hide_task` when the progress bar is not to be shown anymore. It's a good practice to log the number of fetched/synced objects afterwards with `logger.info`. See the manual of [`VendorProgressTracker`](https://docs.sparecores.com/crawler/reference/logger.md#vendorprogresstracker) for more details. Basic example: ```python def inventory_zones(vendor): zones = range(5) vendor.progress_tracker.start_task(name="Searching zones", total=len(zones)) for zone in zones: # do something vendor.progress_tracker.advance_task() vendor.progress_tracker.hide_task() return zones ``` ### Template file for new vendors ```python def inventory_compliance_frameworks(vendor): return map_compliance_frameworks_to_vendor( vendor.vendor_id, [ # "hipaa", # "soc2t2", # "iso27001", ], ) def inventory_regions(vendor): items = [] # for region in []: # items.append( # { # "vendor_id": vendor.vendor_id, # "region_id": "", # "name": "", # "api_reference": "", # "display_name": "", # "aliases": [], # "country_id": "", # "state": None, # "city": None, # "address_line": None, # "zip_code": None, # "lon": None, # "lat": None, # "founding_year": None, # "green_energy": None, # } # ) return items def inventory_zones(vendor): items = [] # for zone in []: # items.append({ # "vendor_id": vendor.vendor_id, # "region_id": "", # "zone_id": "", # "name": "", # "api_reference": "", # "display_name": "", # }) return items def inventory_servers(vendor): items = [] # for server in []: # items.append( # { # "vendor_id": vendor.vendor_id, # "server_id": , # "name": , # "api_reference": , # "api_reference_object": None, # "display_name": , # "description": None, # "family": None, # "series": None, # "vcpus": , # "hypervisor": None, # "cpu_allocation": CpuAllocation...., # "cpu_cores": None, # "cpu_speed": None, # "cpu_architecture": CpuArchitecture...., # "cpu_manufacturer": None, # "cpu_family": None, # "cpu_model": None, # "cpu_l1d_cache": None, # "cpu_l1d_cache_total": None, # "cpu_l1i_cache": None, # "cpu_l1i_cache_total": None, # "cpu_l2_cache": None, # "cpu_l2_cache_total": None, # "cpu_l3_cache": None, # "cpu_l3_cache_total": None, # "cpu_flags": [], # "cpus": [], # "memory_amount": , # "memory_generation": None, # "memory_speed": None, # "memory_ecc": None, # "accelerator_count": 0, # "accelerator_memory_min": None, # "accelerator_memory_total": None, # "accelerator_type": None, # "accelerator_manufacturer": None, # "accelerator_family": None, # "accelerator_model": None, # "accelerators": [], # "storage_size": 0, # "storage_type": None, # "storages": [], # "storage_read_iops_max": None, # "storage_write_iops_max": None, # "storage_read_throughput_max": None, # MB/s # "storage_write_throughput_max": None, # MB/s # "compatible_storage_ids": None, # [] if none can be attached # "network_speed_baseline": None, # Gbps # "network_speed_max": None, # Gbps # "network_storage_speed_baseline": None, # Gbps # "network_storage_speed_max": None, # Gbps # "inbound_traffic": 0, # "outbound_traffic": 0, # "ipv4": 0, # "status": Status.ACTIVE, # } # ) return items def inventory_server_prices(vendor): items = [] # for server in []: # items.append({ # "vendor_id": , # "region_id": , # "zone_id": , # "server_id": , # "operating_system": , # "allocation": Allocation...., # "unit": PriceUnit.HOUR, # "price": , # "price_upfront": 0, # "price_tiered": [ # {"lower": 0, "upper": monthly_cap, "price": hourly_price}, # {"lower": monthly_cap + 1, "upper": "Infinity", "price": 0}, # ], # "currency": "USD", # }) return items def inventory_server_prices_spot(vendor): return [] def inventory_storages(vendor): items = [] # for storage in []: # items.append( # { # "storage_id": , # "vendor_id": vendor.vendor_id, # "name": , # "description": None, # "storage_type": StorageType...., # "max_iops": None, # "max_throughput": None, # "min_size": None, # "max_size": None, # } # ) return items def inventory_storage_prices(vendor): items = [] # for price in []: # items.append( # { # "vendor_id": vendor.vendor_id, # "region_id": , # "storage_id": , # "unit": PriceUnit.GB_MONTH, # "price": , # "currency": "USD", # } # ) return items def inventory_traffic_prices(vendor): items = [] # for price in []: # items.append( # { # "vendor_id": vendor.vendor_id, # "region_id": , # "price": , # "price_tiered": [], # "currency": "USD", # "unit": PriceUnit.GB_MONTH, # "direction": TrafficDirection...., # } # ) return items def inventory_ipv4_prices(vendor): items = [] # for price in []: # items.append( # { # "vendor_id": vendor.vendor_id, # "region_id": , # "price": , # "currency": "USD", # "unit": PriceUnit.MONTH, # } # ) return items def inventory_databases(vendor): items = [] # for database in []: # items.append( # { # "vendor_id": vendor.vendor_id, # "database_id": , # "name": , # "api_reference": , # # Named API args for provisioning (e.g. Pulumi/Terraform). # "api_reference_object": None, # "display_name": , # "description": None, # "family": None, # "series": None, # "server_id": None, # "vcpus": None, # "memory_amount": None, # MiB # "engine": DatabaseEngine.POSTGRESQL, # "wire_protocol": DatabaseWireProtocol.POSTGRESQL, # "engine_versions": ["16", "17"], # "auto_upgrade_versions": None, # # Ordered JSON lists (highest tier first); defaults to [NONE]. # "ha": [DatabaseHaLevel.NONE], # "ha_strategy": [DatabaseHaStrategy.NONE], # "max_read_replicas": None, # "custom_config": None, # "custom_extensions": None, # "storage_size": None, # bundled GB # "storage_extra_min": None, # GB # "storage_extra_max": None, # GB # "storage_extra_autosize": None, # "compatible_storage_ids": None, # [] if none can be attached # "disk_encryption": None, # "scheduled_backups": None, # "continuous_backups": None, # max PITR retention (days) # "connection_pool": None, # "system_monitoring": None, # "database_monitoring": None, # "autotuning_advice": None, # "autotuning_apply": None, # "sla": None, # e.g. 99.95 # # Supported security capabilities for this db instance. # "security_features": [ # # DatabaseSecurityFeature.IP_FILTERING, # # DatabaseSecurityFeature.PRIVATE_NETWORK, # # DatabaseSecurityFeature.NETWORK_PEERING, # # DatabaseSecurityFeature.IDENTITY_BASED_AUTH, # # DatabaseSecurityFeature.CLIENT_CERT_AUTH, # # DatabaseSecurityFeature.ENFORCED_TLS, # # DatabaseSecurityFeature.CUSTOMER_MANAGED_KEYS, # # DatabaseSecurityFeature.AUDIT_LOGGING, # ], # "status": Status.ACTIVE, # } # ) return items def inventory_database_prices(vendor): items = [] # for price in []: # items.append( # { # "vendor_id": vendor.vendor_id, # "region_id": , # "database_id": , # "allocation": Allocation.ONDEMAND, # # Scalar PK fields: one row per HA deployment (e.g. Single-AZ vs Multi-AZ). # "ha": DatabaseHaLevel.NONE, # "ha_strategy": DatabaseHaStrategy.NONE, # "unit": PriceUnit.HOUR, # "price": , # "price_upfront": 0, # "price_tiered": [], # "currency": "USD", # } # ) return items def inventory_database_storages(vendor): items = [] # for storage in []: # items.append( # { # "vendor_id": vendor.vendor_id, # "database_storage_id": , # "name": , # "description": None, # "scope": DatabaseStorageScope.DATA, # "redundancy": None, # "min_size": None, # "max_size": None, # "max_iops": None, # "max_throughput": None, # } # ) return items def inventory_database_storage_prices(vendor): items = [] # for price in []: # items.append( # { # "vendor_id": vendor.vendor_id, # "region_id": , # "database_storage_id": , # "unit": PriceUnit.GB_MONTH, # "price": , # "currency": "USD", # } # ) return items ``` --- ## `sc_crawler` ## `sc_crawler` The Crawler of Spare Cores Navigator: collect and standardize cloud server offerings data. **Modules:** - [**alembic_helpers**](https://docs.sparecores.com/crawler/reference/alembic_helpers.md) – Helpers functions for the Alembic database migrations. - [**archive_rules**](https://docs.sparecores.com/crawler/reference/archive_rules.md) – Archive rules: the records replaced by another record or deliberately dropped. - [**cli**](https://docs.sparecores.com/crawler/reference/cli.md) – The `sc-crawler` CLI functions. - [**description_ingestor**](https://docs.sparecores.com/crawler/reference/description_ingestor.md) – Load the LLM-generated descriptions of the servers from the sc-navigator-descriptions repository. - [**insert**](https://docs.sparecores.com/crawler/reference/insert.md) – Helpers to validate and bulk insert per-vendor records into the database. - [**inspector**](https://docs.sparecores.com/crawler/reference/inspector.md) – Helpers to load the hardware discovery and benchmarking data from the sc-inspector-data repository. - [**inspector_helpers**](https://docs.sparecores.com/crawler/reference/inspector_helpers.md) – Helpers to parse the hardware details of servers from the sc-inspector-data repository. - [**inspector_rules**](https://docs.sparecores.com/crawler/reference/inspector_rules.md) – Rules for which servers and managed databases the Inspector runs its tasks on. - [**logger**](https://docs.sparecores.com/crawler/reference/logger.md) – Logging and progress bar helpers. - [**lookup**](https://docs.sparecores.com/crawler/reference/lookup.md) – Static lookup data: countries, compliance frameworks and benchmark definitions. - [**sentry**](https://docs.sparecores.com/crawler/reference/sentry.md) – Report errors to Sentry when the `SENTRY_DSN` environment variable is set. - [**str_utils**](https://docs.sparecores.com/crawler/reference/str_utils.md) – String helpers, e.g. for wrapping, pluralizing and converting to snake case. - [**table_bases**](https://docs.sparecores.com/crawler/reference/table_bases.md) – Tiny helper classes for the most commonly used fields to be inherited by [sc_crawler.tables](https://docs.sparecores.com/crawler/reference/tables.md). - [**table_fields**](https://docs.sparecores.com/crawler/reference/table_fields.md) – Enumerations, JSON nested data objects & other helper classes used in [sc_crawler.tables](https://docs.sparecores.com/crawler/reference/tables.md). - [**tables**](https://docs.sparecores.com/crawler/reference/tables.md) – Table definitions for vendors, regions, zones, and other cloud resources. - [**tables_scd**](https://docs.sparecores.com/crawler/reference/tables_scd.md) – SCD version of the table definitions in [sc_crawler.tables](https://docs.sparecores.com/crawler/reference/tables.md). - [**utils**](https://docs.sparecores.com/crawler/reference/utils.md) – Utility functions, e.g. for hashing, database engines, and looking up tables and rows. - [**vendor_helpers**](https://docs.sparecores.com/crawler/reference/vendor_helpers.md) – Helpers shared by the vendor modules of [sc_crawler.vendors](https://docs.sparecores.com/crawler/reference/vendors.md), e.g. fetching the servers of all regions in parallel. - [**vendors**](https://docs.sparecores.com/crawler/reference/vendors.md) – Helper methods for each cloud compute resource provider. - [**workload_profile_scores**](https://docs.sparecores.com/crawler/reference/workload_profile_scores.md) – Workload profile score computation and database persistence. - [**workload_profiles**](https://docs.sparecores.com/crawler/reference/workload_profiles.md) – Workload profile definitions for compound benchmark scoring. --- ## `sc_crawler.cli` ## `sc_crawler.cli` The `sc-crawler` CLI functions. Check `sc-crawler --help` for more details. **Functions:** - [**create**](#create) – Print the database schema in a SQL dialect. - [**current**](#current) – Show current database revision. - [**upgrade**](#upgrade) – Upgrade the database schema to a given (default: most recent) revision. - [**downgrade**](#downgrade) – Downgrade the database schema to a given (default: previous) revision. - [**stamp**](#stamp) – Set the migration revision mark in the database to a specified revision. Set to "heads" if the database schema is up-to-date. - [**autogenerate**](#autogenerate) – Autogenerate a migrations script based on the current state of a database. - [**metadata_set**](#metadata_set) – Write metadata key/value pairs into the database. - [**metadata_get**](#metadata_get) – Print all metadata key/value pairs stored in the database. - [**metadata_delete**](#metadata_delete) – Delete one or more metadata entries by key. - [**hash_command**](#hash_command) – Print the hash of the content of a database. - [**copy**](#copy) – Copy the standard Crawler tables of a database into a blank database. - [**sync**](#sync) – Sync a database to another one. - [**dump**](#dump) – Export database records to JSON files organized by primary keys. - [**pull**](#pull) – Pull data from available vendor APIs and store in a database. - [**archived_by_command**](#archived_by_command) – List the archive rules that archive a record. ### func create [cli.py:131–170](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L131-L170) ```python create(connection_string=None, dialect=None, scd=False) ``` Print the database schema in a SQL dialect. Either `connection_string` or `dialect` is to be provided to decide what SQL dialect to use to generate the CREATE TABLE (and related) SQL statements. ### func current [cli.py:173–183](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L173-L183) ```python current(connection_string='sqlite:///sc-data-all.db', scd=False) ``` Show current database revision. ### func upgrade [cli.py:186–198](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L186-L198) ```python upgrade(connection_string='sqlite:///sc-data-all.db', revision='heads', scd=False, sql=False) ``` Upgrade the database schema to a given (default: most recent) revision. ### func downgrade [cli.py:201–213](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L201-L213) ```python downgrade(connection_string='sqlite:///sc-data-all.db', revision='-1', scd=False, sql=False) ``` Downgrade the database schema to a given (default: previous) revision. ### func stamp [cli.py:216–228](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L216-L228) ```python stamp(connection_string='sqlite:///sc-data-all.db', revision='heads', scd=False, sql=False) ``` Set the migration revision mark in the database to a specified revision. Set to "heads" if the database schema is up-to-date. ### func autogenerate [cli.py:231–248](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L231-L248) ```python autogenerate(connection_string='sqlite:///sc-data-all.db', message='empty message') ``` Autogenerate a migrations script based on the current state of a database. ### func metadata_set [cli.py:251–288](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L251-L288) ```python metadata_set(entries=None, connection_string='sqlite:///sc-data-all.db') ``` Write metadata key/value pairs into the database. Always sets `sc_crawler_version` and `published_at`. When running in a GitHub Actions workflow, also sets `published_by` to the GitHub Actions run URL. Additional key/value pairs can be passed as positional arguments. ### func metadata_get [cli.py:299–311](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L299-L311) ```python metadata_get(connection_string='sqlite:///sc-data-all.db') ``` Print all metadata key/value pairs stored in the database. ### func metadata_delete [cli.py:314–328](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L314-L328) ```python metadata_delete(keys, connection_string='sqlite:///sc-data-all.db') ``` Delete one or more metadata entries by key. ### func hash_command [cli.py:331–336](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L331-L336) ```python hash_command(connection_string='sqlite:///sc-data-all.db') ``` Print the hash of the content of a database. ### func copy [cli.py:339–416](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L339-L416) ```python copy(source, target, exclude_status=[]) ``` Copy the standard Crawler tables of a database into a blank database. All rows are copied by default. Use `--exclude-status` to leave out rows, e.g. the archived records that are kept only for history. Rows referencing a left out row (e.g. the zones of an excluded region) are also left out. ### func sync [cli.py:419–674](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L419-L674) ```python sync(source, target, dry_run=False, scd=False, sync_tables=table_names, log_changes_path=None, log_changes_tables=table_names) ``` Sync a database to another one. Hashing both the `source` and the `target` databases, then comparing hashes and marking for syncing the following records: - new (rows with primary keys found in `source`, but not found in `target`) - update (rows with different values in `source` and in `target`). - inactive (rows with primary keys found in `target`, but not found in `source`). Rows already archived in `target` are left unchanged, and rows matching an archive rule are marked as archived instead of inactive. The archive rules (see `sc_crawler.archive_rules`) are also checked: the rules of the synced tables referring to records found in neither database are reported. The records marked for syncing are written to the `target` database's standard or SCD tables. When updating the SCD tables, the hashing still happens on the standard tables/views, which are probably based on the most recent records of the SCD tables. ### func dump [cli.py:677–833](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L677-L833) ```python dump(connection_string, output_directory=Path('.'), dump_tables=None, ignored=['observed_at']) ``` Export database records to JSON files organized by primary keys. Each record is written as a pretty-printed JSON file in a folder hierarchy based on the primary key values. For example, a server record with vendor_id='aws' and server_id='t3.small' would be written to: `output_directory/server/aws/t3.small.json` ### func pull [cli.py:836–1040](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L836-L1040) ```python pull(connection_string='sqlite:///sc-data-all.db', include_vendor=[v.vendor_id for v in supported_vendors], exclude_vendor=[], include_records=supported_records, exclude_records=[], log_level=LogLevels.INFO, cache=False, cache_ttl=60 * 24) ``` Pull data from available vendor APIs and store in a database. As the last step, the archive rules (see `sc_crawler.archive_rules`) are stored in the database, and the records they match are marked as archived. Vendor API calls are optionally cached as Pickle objects in `~/.cachier`. ### func archived_by_command [cli.py:1043–1104](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/cli.py#L1043-L1104) ```python archived_by_command(table_name, primary_key, connection_string='sqlite:///sc-data-all.db') ``` List the archive rules that archive a record. Looks up the rules stored in the `archive_rule` table of the database, including the removed (inactive) rules and the rules on the parent tables of the record (e.g. the region of a server price). The first observation of each rule is read from the `archive_rule_scd` table, if that exists: compare it with the first archived version of the record to tell when it was archived. --- ## `sc_crawler.lookup` ## `sc_crawler.lookup` Static lookup data: countries, compliance frameworks and benchmark definitions. **Functions:** - [**map_compliance_frameworks_to_vendor**](#map_compliance_frameworks_to_vendor) – Map compliance frameworks to vendors in a dict. - [**stress_ng_benchmark_id**](#stress_ng_benchmark_id) – Return the benchmark id for a warehoused stress-ng stressor. **Attributes:** - [**countries**](#countries) ([`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)) – Dictionary of [sc_crawler.tables.Country](https://docs.sparecores.com/crawler/reference/tables.md#country) instances keyed by the `country_id`. - [**compliance_frameworks**](#compliance_frameworks) ([`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)) – Dictionary of [sc_crawler.tables.ComplianceFramework](https://docs.sparecores.com/crawler/reference/tables.md#complianceframework) instances keyed by the `compliance_framework_id`. ### attr countries [lookup.py:65–67](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/lookup.py#L65-L67) ```python countries: dict = {k: Country(country_id=k, continent=v) for k, v in country_continent_mapping.items()} ``` Dictionary of [sc_crawler.tables.Country](https://docs.sparecores.com/crawler/reference/tables.md#country) instances keyed by the `country_id`. ### attr compliance_frameworks [lookup.py:73–95](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/lookup.py#L73-L95) ```python compliance_frameworks: dict = {'hipaa': ComplianceFramework(compliance_framework_id='hipaa', name='The Health Insurance Portability and Accountability Act', abbreviation='HIPAA', description="HIPAA (Health Insurance Portability and Accountability Act) is a U.S. federal law designed to safeguard the privacy and security of individuals' health information, establishing standards for its protection and regulating its use in the healthcare industry.", homepage='https://www.cdc.gov/phlp/publications/topic/hipaa.html'), 'soc2t2': ComplianceFramework(compliance_framework_id='soc2t2', name='System and Organization Controls Level 2 Type 2', abbreviation='SOC 2 Type 2', description="SOC 2 Type 2 is a framework for assessing and certifying the effectiveness of a service organization's information security policies and procedures over time, emphasizing the operational aspects and ongoing monitoring of controls.", homepage='https://www.aicpa-cima.com/topic/audit-assurance/audit-and-assurance-greater-than-soc-2'), 'iso27001': ComplianceFramework(compliance_framework_id='iso27001', name='ISO/IEC 27001', abbreviation='ISO 27001', description='ISO 27001 is a standard for information security management systems.', homepage='https://www.iso.org/standard/27001')} ``` Dictionary of [sc_crawler.tables.ComplianceFramework](https://docs.sparecores.com/crawler/reference/tables.md#complianceframework) instances keyed by the `compliance_framework_id`. ### func map_compliance_frameworks_to_vendor [lookup.py:99–119](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/lookup.py#L99-L119) ```python map_compliance_frameworks_to_vendor(vendor_id, compliance_framework_ids) ``` Map compliance frameworks to vendors in a dict. **Parameters:** - **vendor_id** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – identifier of a [Vendor](https://docs.sparecores.com/crawler/reference/tables.md#vendor) - **compliance_framework_ids** ([`List`](https://docs.python.org/3/library/typing.html#typing.List)`[`[`str`](https://docs.python.org/3/builtins/stdtypes.html#str)`]`) – identifier(s) of [`ComplianceFramework`](https://docs.sparecores.com/crawler/reference/tables.md#complianceframework) **Returns:** - [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict) – Array of dictionaries that can be passed to [sc_crawler.insert.insert_items](https://docs.sparecores.com/crawler/reference/insert.md#insert_items). ### func stress_ng_benchmark_id [lookup.py:636–638](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/lookup.py#L636-L638) ```python stress_ng_benchmark_id(method) ``` Return the benchmark id for a warehoused stress-ng stressor. --- ## `sc_crawler.table_bases` ## `sc_crawler.table_bases` Tiny helper classes for the most commonly used fields to be inherited by [sc_crawler.tables](https://docs.sparecores.com/crawler/reference/tables.md). **Classes:** - [**ScMetaModel**](#scmetamodel) – Custom class factory to auto-update table models. - [**ScModel**](#scmodel) – Custom extensions to SQLModel objects and tables. - [**MetaColumns**](#metacolumns) – Helper class to add the `status` and `observed_at` columns. - [**HasPriceFieldsBase**](#haspricefieldsbase) – - [**ServerFields**](#serverfields) – - [**BenchmarkFields**](#benchmarkfields) – - [**ResourceIdComparator**](#resourceidcomparator) – Compile server_id/database_id to CASE + typed filter. - [**BenchmarkScoreFields**](#benchmarkscorefields) – - [**BenchmarkScoreBase**](#benchmarkscorebase) – - [**ArchiveRuleFields**](#archiverulefields) – ### class ScMetaModel [table_bases.py:57–129](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L57-L129) Bases: `__class__` Custom class factory to auto-update table models. - Reuse description of the table and its fields as SQL comment. Checking if the table and its fields have explicit comment set to be shown in the `CREATE TABLE` statements, and if not, reuse the optional table and field descriptions. Table docstrings are truncated to first line. - Reuse description of the fields to dynamically append to the docstring in the Attributes section. - Set `__validator__` to the parent Pydantic model without `table=True`, which is useful for running validations. The Pydantic model is found by the parent class' name ending in "Base". - Auto-generate SCD table docs from the non-SCD table docs. ### class ScModel [table_bases.py:132–398](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L132-L398) Bases: `SQLModel` Custom extensions to SQLModel objects and tables. Extra features: - auto-generated table names using [snake_case](https://docs.sparecores.com/crawler/reference/str_utils.md#snake_case), - support for hashing table rows, - reuse description field of tables/columns as SQL comment, - reuse description field of columns to extend the `Attributes` section of the docstring. **Functions:** - [**get_columns**](#scmodelget_columns) – Return the table's column names in a dict for all, primary keys, and attributes. - [**get_table_name**](#scmodelget_table_name) – Return the SQLModel object's table name. - [**get_validator**](#scmodelget_validator) – Return the parent Base Pydantic model (without a table definition). - [**get_scd**](#scmodelget_scd) – Return the SCD version of the SQLModel table. - [**get_parent_tables**](#scmodelget_parent_tables) – Names of the tables that the records of this table belong to. - [**get_key_filters**](#scmodelget_key_filters) – Translate the `match` or `successor` of an archive rule into column filters on the table. - [**get_filters_condition**](#scmodelget_filters_condition) – SQL condition selecting the rows of the table with the given column values. - [**matches_rule**](#scmodelmatches_rule) – Check if an archive rule archives the record with the given primary key. - [**is_archived**](#scmodelis_archived) – Check if any of the archive rules archives the record with the given primary key. - [**archive_condition**](#scmodelarchive_condition) – SQL condition selecting the rows of the table archived by the rules. - [**archived_by**](#scmodelarchived_by) – List the archive rules archiving a record, including the rules on its parent tables. - [**pk_key**](#scmodelpk_key) – JSON dump of the primary key columns of a row, as used in [hash](#scmodelhash). - [**hash**](#scmodelhash) – Hash the content of the rows. #### meth ScModel.get_columns [table_bases.py:148–154](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L148-L154) ```python get_columns() ``` Return the table's column names in a dict for all, primary keys, and attributes. #### meth ScModel.get_table_name [table_bases.py:156–159](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L156-L159) ```python get_table_name() ``` Return the SQLModel object's table name. #### meth ScModel.get_validator [table_bases.py:161–166](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L161-L166) ```python get_validator() ``` Return the parent Base Pydantic model (without a table definition). #### meth ScModel.get_scd [table_bases.py:168–179](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L168-L179) ```python get_scd() ``` Return the SCD version of the SQLModel table. #### meth ScModel.get_parent_tables [table_bases.py:181–205](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L181-L205) ```python get_parent_tables() ``` Names of the tables that the records of this table belong to. These are the tables referenced by a foreign key made up of primary key columns of this table, and (recursively) the parents of those tables. So a record cannot exist without its parent records, e.g. a server price without its vendor, region, zone and server. **Examples:** ```pycon >>> from sc_crawler.tables import Zone >>> sorted(Zone.get_parent_tables()) ['region', 'vendor'] ``` #### meth ScModel.get_key_filters [table_bases.py:207–228](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L207-L228) ```python get_key_filters(rule_table_name, keys) ``` Translate the `match` or `successor` of an archive rule into column filters on the table. This defines which records an [ArchiveRule](https://docs.sparecores.com/crawler/reference/tables.md#archiverule) refers to, for both the SQL conditions and matching primary keys in Python. Tables referencing a parent without a foreign key override it. **Parameters:** - **rule_table_name** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – The `table_name` of the rule. - **keys** ([`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)) – The `match` or `successor` of the rule. **Returns:** - [`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)`[`[`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)`]` – Dict of column names and values of the table, or `None` if the rule does not apply to the table. #### meth ScModel.get_filters_condition [table_bases.py:230–235](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L230-L235) ```python get_filters_condition(filters) ``` SQL condition selecting the rows of the table with the given column values. #### meth ScModel.matches_rule [table_bases.py:237–251](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L237-L251) ```python matches_rule(rule, primary_key) ``` Check if an archive rule archives the record with the given primary key. **Parameters:** - **rule** ([`ArchiveRule`](https://docs.sparecores.com/crawler/reference/tables.md#archiverule)) – An [ArchiveRule](https://docs.sparecores.com/crawler/reference/tables.md#archiverule). - **primary_key** ([`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)) – Primary key columns of the record with their values. #### meth ScModel.is_archived [table_bases.py:253–263](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L253-L263) ```python is_archived(primary_key, rules=None) ``` Check if any of the archive rules archives the record with the given primary key. **Parameters:** - **primary_key** ([`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)) – Primary key columns of the record with their values. - **rules** ([`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)`[`[`list`](https://docs.python.org/3/builtins/stdtypes.html#list)`]`) – [ArchiveRule](https://docs.sparecores.com/crawler/reference/tables.md#archiverule)s to check. Defaults to all current rules. #### meth ScModel.archive_condition [table_bases.py:265–286](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L265-L286) ```python archive_condition(rules=None) ``` SQL condition selecting the rows of the table archived by the rules. Child records are selected by the key columns of the rules instead of looking up their parents, so it also finds the child records of parents that are not in the database. **Parameters:** - **rules** ([`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)`[`[`list`](https://docs.python.org/3/builtins/stdtypes.html#list)`]`) – [ArchiveRule](https://docs.sparecores.com/crawler/reference/tables.md#archiverule)s to apply. Defaults to all current rules. **Returns:** - [`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)`[ColumnElement]` – SQLAlchemy condition, or `None` if no rule applies to the table. #### meth ScModel.archived_by [table_bases.py:288–335](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L288-L335) ```python archived_by(session, primary_key) ``` List the archive rules archiving a record, including the rules on its parent tables. Reads the rules from the `archive_rule` table of the database, so it also returns the rules that were removed from the code since (stored with `INACTIVE` status), and uses the same matching as `pull` and `sync`. It does not look up the record itself. **Parameters:** - **session** (`Session`) – Database connection. - **primary_key** ([`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)) – All primary key columns of the record with their values. Other keys (e.g. `observed_at` of an SCD record) are ignored. **Returns:** - [`list`](https://docs.python.org/3/builtins/stdtypes.html#list) – The matching [ArchiveRule](https://docs.sparecores.com/crawler/reference/tables.md#archiverule)s, ordered by table name, `match` and `successor`. #### meth ScModel.pk_key [table_bases.py:337–341](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L337-L341) ```python pk_key(values) ``` JSON dump of the primary key columns of a row, as used in [hash](#scmodelhash). #### meth ScModel.hash [table_bases.py:343–398](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L343-L398) ```python hash(session, ignored=['observed_at'], progress=None) ``` Hash the content of the rows. **Parameters:** - **session** (`Session`) – Database connection to use for object lookups. - **ignored** ([`List`](https://docs.python.org/3/library/typing.html#typing.List)`[`[`str`](https://docs.python.org/3/builtins/stdtypes.html#str)`]`) – List of column names to exclude from hashing. - **progress** ([`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)`[`[`Progress`](https://rich.readthedocs.io/en/stable/reference/progress.html#rich.progress.Progress)`]`) – Optional progress bar to track the status of the hashing. **Returns:** - [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict) – Dictionary of the row hashes keyed by the JSON dump of primary keys. ### class MetaColumns [table_bases.py:401–422](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L401-L422) Bases: [`ScModel`](#scmodel) Helper class to add the `status` and `observed_at` columns. ### class HasPriceFieldsBase [table_bases.py:579–612](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L579-L612) Bases: [`ScModel`](#scmodel) ### class ServerFields [table_bases.py:819–1129](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L819-L1129) Bases: `HasDisplayName`, `HasApiReferenceObject`, `HasApiReference`, `HasName`, `HasServerIdPK`, `HasVendorPKFK` ### class BenchmarkFields [table_bases.py:1460–1535](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L1460-L1535) Bases: `HasBenchmarkIdPK` ### class ResourceIdComparator [table_bases.py:1658–1676](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L1658-L1676) Bases: [`Comparator`](https://docs.sqlalchemy.org/en/20/orm/extensions/hybrid.html#sqlalchemy.ext.hybrid.Comparator) Compile server_id/database_id to CASE + typed filter. ### class BenchmarkScoreFields [table_bases.py:1679–1789](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L1679-L1789) Bases: `HasBenchmarkPKFK`, `HasVendorPKFK` **Functions:** - [**update_config_to_hashable**](#benchmarkscorefieldsupdate_config_to_hashable) – Accept ``server_id`` / ``database_id`` keys; hashably sort config. #### meth BenchmarkScoreFields.update_config_to_hashable [table_bases.py:1694–1708](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L1694-L1708) ```python update_config_to_hashable(values) ``` Accept ``server_id`` / ``database_id`` keys; hashably sort config. ### class BenchmarkScoreBase [table_bases.py:1792–1816](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L1792-L1816) Bases: [`MetaColumns`](#metacolumns), [`BenchmarkScoreFields`](#benchmarkscorefields) **Functions:** - [**get_parent_tables**](#benchmarkscorebaseget_parent_tables) – Parent tables of the scores, including the resources they refer to. - [**get_key_filters**](#benchmarkscorebaseget_key_filters) – Map a rule on a resource onto `resource_type` and `resource_id`. #### meth BenchmarkScoreBase.get_parent_tables [table_bases.py:1796–1800](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L1796-L1800) ```python get_parent_tables() ``` Parent tables of the scores, including the resources they refer to. #### meth BenchmarkScoreBase.get_key_filters [table_bases.py:1802–1816](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L1802-L1816) ```python get_key_filters(rule_table_name, keys) ``` Map a rule on a resource onto `resource_type` and `resource_id`. ### class ArchiveRuleFields [table_bases.py:1819–1859](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/table_bases.py#L1819-L1859) Bases: [`ScModel`](#scmodel) --- ## Container images Links: [GitHub repository of sc-images](https://github.com/SpareCores/sc-images), [Container images on the GitHub Container Registry](https://github.com/orgs/SpareCores/packages?repo_name=sc-images). Spare Cores container images collect details about cloud server hardware and benchmark server performance for the [Spare Cores Navigator](https://docs.sparecores.com/overview). The Navigator's [Inspector](https://github.com/SpareCores/sc-inspector) runs these images on cloud servers and publishes the results in the Navigator, which lists more than 5,000 cloud server types. Each image is built for `amd64` and `arm64` unless its docs say otherwise. The docs of each image can be found linked from the [image list](#images), published at `https://docs.sparecores.com/images//`. ### Usage Run an image via Docker: ```shell docker run --rm ghcr.io/sparecores/:main ``` Some images have no default command. Append a command after the image name. For example, run `benchmark` with a script such as `openssl.sh`. The `stress-ng` image uses `sh` as its entrypoint, so pass the stressor with `-c 'stress-ng --cpu 1'`. Other images need extra parameters, such as environment variables or Docker options. See the production commands and parameters in [`inspector/tasks.py`](https://github.com/SpareCores/sc-inspector/blob/main/inspector/tasks.py) in the `sc-inspector` repository. Where an image has docs, its main page lists its settings, its output, and any extra Docker options it needs; otherwise, see its `Dockerfile`. Some images need the following extra Docker options: - **GPUs:** `--gpus all` for `benchmark-vllm-gpu`, `nvbandwidth`, and `llama.cpp`, and for the GPU runs of `benchmark-llm` and `benchmark-ffmpeg`. - **Shared memory:** `--shm-size=4g` for benchmarks of the [vLLM family](https://docs.sparecores.com/images/vllm-common.md), which fail with Docker's default 64 MiB `/dev/shm`. - **Privileged mode:** `--privileged` for `dmidecode`, `hwinfo`, and `virtualization`, and for the images that raise their priority with `nice -n -20`: `benchmark`, `benchmark-passmark`, `benchmark-pgbench-postgres`, `benchmark-postgres-server`, `benchmark-redis`, and `benchmark-web`. Without it, the `nice` images run at normal priority. - **Production conditions:** k8s-inspector runs the benchmark Pods privileged, with host networking (`benchmark-redis` and `benchmark-web` use their own Pod network namespace instead, because the host's netfilter rules slow loopback traffic), and leaves the kernel's CPU vulnerability mitigations on, as the earlier VM-based inspector did. Booting with `mitigations=off` would raise loopback- and syscall-heavy results by about 10-19 %, but then no result would be comparable with the earlier ones. The measurements are in the [k8s-inspector node profile](https://github.com/SpareCores/k8s-inspector/blob/main/docs/explanation/node-profile.md#measurement-conditions). - **Disk access:** `--privileged --pid=host` for `benchmark-storage`. It unmounts and overwrites every disk it may write to, so do not run it on a machine with data you need. Benchmark images run their workload under [`resource-tracker`](https://github.com/SpareCores/resource-tracker-rs), which samples CPU, memory, disk, network, and GPU usage once per second. ### Images The following tables list the images by their `CATEGORY`. Where an image has docs, its main page covers what the image measures, how to run it, and how to read its output. #### Benchmarks | Image | Description | Docs | | ----- | ----------- | ---- | | [`benchmark`](https://docs.sparecores.com/images/benchmark.md) | General CPU, memory, and compression benchmarks, including Geekbench 6, OpenSSL, and LMbench. | [Docs](https://docs.sparecores.com/images/benchmark/) | | [`benchmark-ffmpeg`](https://docs.sparecores.com/images/benchmark-ffmpeg.md) | Measures FFmpeg video and audio transcoding speed on CPUs and NVIDIA GPUs. | [Docs](https://docs.sparecores.com/images/benchmark-ffmpeg/) | | [`benchmark-llm`](https://docs.sparecores.com/images/benchmark-llm.md) | Measures low-concurrency LLM inference speed with llama.cpp on CPUs and NVIDIA GPUs. | [Docs](https://docs.sparecores.com/images/benchmark-llm/) | | [`benchmark-passmark`](https://docs.sparecores.com/images/benchmark-passmark.md) | Measures CPU and memory performance with PassMark PerformanceTest. | [Docs](https://docs.sparecores.com/images/benchmark-passmark/) | | [`benchmark-pgbench-postgres`](https://docs.sparecores.com/images/benchmark-pgbench-postgres.md) | PostgreSQL benchmark with pgbench that measures read-only transaction speed and latency on a local or remote server. | [Docs](https://docs.sparecores.com/images/benchmark-pgbench-postgres/) | | [`benchmark-redis`](https://docs.sparecores.com/images/benchmark-redis.md) | Measures Redis throughput and latency with memtier_benchmark, one server and client pair per CPU. | [Docs](https://docs.sparecores.com/images/benchmark-redis/) | | [`benchmark-storage`](https://docs.sparecores.com/images/benchmark-storage.md) | Measures raw disk speed and latency with fio, for single disks and groups of identical disks. | [Docs](https://docs.sparecores.com/images/benchmark-storage/) | | [`benchmark-vllm-cpu`](https://docs.sparecores.com/images/benchmark-vllm-cpu.md) | Measures LLM serving speed and latency with vLLM on Arm64 CPUs and on AMD64 CPUs with AVX-512. | [Docs](https://docs.sparecores.com/images/benchmark-vllm-cpu/) | | [`benchmark-vllm-cpu-avx2`](https://docs.sparecores.com/images/benchmark-vllm-cpu-avx2.md) | Measures LLM serving speed and latency with vLLM on AMD64 CPUs with AVX2 but without AVX-512. | [Docs](https://docs.sparecores.com/images/benchmark-vllm-cpu-avx2/) | | [`benchmark-vllm-gpu`](https://docs.sparecores.com/images/benchmark-vllm-gpu.md) | Measures LLM serving speed and latency with vLLM on NVIDIA GPUs. | [Docs](https://docs.sparecores.com/images/benchmark-vllm-gpu/) | | [`benchmark-web`](https://docs.sparecores.com/images/benchmark-web.md) | Static web server benchmark, serving files with binserve and measuring throughput and latency with wrk. | [Docs](https://docs.sparecores.com/images/benchmark-web/) | | [`membench`](https://github.com/SpareCores/sc-membench) | Measures memory bandwidth and latency with the Spare Cores membench tool. | [Docs](https://github.com/SpareCores/sc-membench#readme) | | [`nvbandwidth`](https://docs.sparecores.com/images/nvbandwidth.md) | Measures memory copy bandwidth and latency between CPUs and NVIDIA GPUs, and between GPUs, with nvbandwidth. | [Docs](https://docs.sparecores.com/images/nvbandwidth/) | | [`stress-ng`](https://docs.sparecores.com/images/stress-ng.md) | Measures CPU, memory, and kernel performance with stress-ng, from one worker up to all CPUs. | [Docs](https://docs.sparecores.com/images/stress-ng/) | | [`stress-ng-longrun`](https://docs.sparecores.com/images/stress-ng-longrun.md) | Measures how sustained CPU throughput changes over 24 hours with stress-ng, under a CPU load that rises during the run. | [Docs](https://docs.sparecores.com/images/stress-ng-longrun/) | #### Hardware Discovery | Image | Description | Docs | | ----- | ----------- | ---- | | [`dmidecode`](https://docs.sparecores.com/images/dmidecode.md) | Reports a server's hardware details, such as memory devices and firmware, with dmidecode. | [Docs](https://docs.sparecores.com/images/dmidecode/) | | [`hwinfo`](https://docs.sparecores.com/images/hwinfo.md) | Reports a server's CPU, memory, disk, and topology details with lshw, lscpu, and other hardware tools. | [Docs](https://docs.sparecores.com/images/hwinfo/) | | [`virtualization`](https://docs.sparecores.com/images/virtualization.md) | Checks with kvm-ok whether a server supports KVM hardware virtualization. | [Docs](https://docs.sparecores.com/images/virtualization/) | #### Services | Image | Description | Docs | | ----- | ----------- | ---- | | [`benchmark-postgres-server`](https://docs.sparecores.com/images/benchmark-postgres-server.md) | PostgreSQL 18 server with default settings, used as the remote target of the pgbench PostgreSQL benchmark. | [Docs](https://docs.sparecores.com/images/benchmark-postgres-server/) | #### Base Images | Image | Description | Docs | | ----- | ----------- | ---- | | [`llama.cpp`](https://docs.sparecores.com/images/llama.cpp.md) | Runs llama.cpp's server on NVIDIA GPUs, built from source. | [Docs](https://docs.sparecores.com/images/llama.cpp/) | | [`resource-tracker`](https://docs.sparecores.com/images/resource-tracker.md) | Provides the Resource Tracker binary, which other images copy and run their workloads under. | [Docs](https://docs.sparecores.com/images/resource-tracker/) | | [`vllm-cpu-base-avx2`](https://docs.sparecores.com/images/vllm-cpu-base-avx2.md) | Provides a vLLM build for AMD64 CPUs with AVX2 but without AVX-512, for benchmark-vllm-cpu-avx2 to use as a base. | [Docs](https://docs.sparecores.com/images/vllm-cpu-base-avx2/) | The following docs cover more than one image. Where a covered image has a main page of its own, that page describes only what differs: - The [vLLM family manual](https://docs.sparecores.com/images/vllm-common.md) in `vllm-common/`, which is not a published image, covers the vLLM family's benchmarks. - The `benchmark-pgbench-postgres` docs cover `benchmark-postgres-server`. - The `stress-ng` docs cover `stress-ng-longrun`. ### Contributing See the following pages for maintaining and extending the [`sc-images`](https://github.com/SpareCores/sc-images) repository: - [Adding an Image](https://docs.sparecores.com/images/contributors.md): the folder layout, the metadata files that control each image's build, and how dependencies are ordered. - [CI and Build Internals](https://docs.sparecores.com/images/ci.md): how CI builds, caches, tracks, and publishes the images. ### License The `sc-images` repository is licensed under the [Mozilla Public License 2.0](https://github.com/SpareCores/sc-images/blob/main/LICENSE). --- ## Legacy Benchmarks Source: [`images/benchmark/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark). This image bundles four independent benchmarking tools that measure general CPU and memory performance: OpenSSL's `openssl speed`, LMbench's `bw_mem` (memory bandwidth tool), a set of Python compression libraries, and Geekbench 6. Each tool has its own script, and each run of the image runs one script. These are the legacy benchmarks: the first ones Spare Cores collected, before each new benchmark got an image of its own. The tools report the following: - **OpenSSL speed:** Throughput in bytes per second per algorithm and block size. - **`bw_mem`:** Memory bandwidth in MB/s per operation and buffer size. - **Compression:** Ratio and throughput per compressor, level, and thread count. - **Geekbench:** Single-Core and Multi-Core scores. ### Purpose [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes empirical performance measurements for more than 5,000 cloud server types. This image provides several of the Navigator's general-purpose measurements: OpenSSL speed, memory bandwidth, compression algorithms, and Geekbench scores. Each script is a separate production task that the Navigator's Inspector runs on its own, so a result from one script does not depend on the others. ### Limitations These results compare CPU and memory performance on fixed, synthetic workloads, not disk, network, or application throughput. The main limitations are the following: - **Disk and Network:** The scripts measure CPU and memory, not disk or network performance. The compression benchmark reads its input into memory before it starts timing. - **Application Performance:** Each script runs a fixed, synthetic workload: one hash or cipher at a time, one memory access pattern, one compressor on one file, or Geekbench's fixed suite. The results compare server types on these workloads; they do not predict the throughput of a specific application. - **[Compression Input](https://docs.sparecores.com/images/benchmark/compression.md#compression-input):** The compression benchmark uses one text file of the Silesia corpus, not the whole corpus, so its results describe text only. - **[Parallelism](https://docs.sparecores.com/images/benchmark/compression.md#cpu-count):** OpenSSL speed and `bw_mem` run one process per logical CPU, while the compression benchmark runs at most one process per physical core. - **[Geekbench Server Range](https://docs.sparecores.com/images/benchmark/geekbench.md#server-range):** Production runs Geekbench only on servers with up to 32 vCPUs and at least 2.1 GiB of memory. The image enforces neither. - **[Tool Versions](https://docs.sparecores.com/images/benchmark/compression.md#library-versions):** The image builds OpenSSL 3.4.0 with many algorithms disabled and installs the Python compression libraries unpinned, so library versions can change between builds. See also [OpenSSL Build](https://docs.sparecores.com/images/benchmark/openssl.md#openssl-build). ### Usage Run the image via Docker with one script as the command; the image has no default command. To run the OpenSSL speed benchmark: ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main openssl.sh ``` To run the memory bandwidth benchmark: ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main bw_mem.sh ``` To run the compression benchmark: ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main python /usr/local/bin/compress.py ``` To run Geekbench: ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main geekbench.sh ``` The `openssl.sh` and `bw_mem.sh` scripts run their tools at high priority with `nice -n -20`, which requires `--privileged`. Production also runs `compress.py` and `geekbench.sh` at high priority. See [Production Setup](https://docs.sparecores.com/images/benchmark/usage.md#production-setup) before comparing results with the Navigator's. The `geekbench.sh` script does not upload results to the Geekbench Browser: it captures Geekbench's upload on a local HTTPS server inside the container. See [Upload Capture](https://docs.sparecores.com/images/benchmark/geekbench.md#upload-capture) for how the capture works. In production, the median run takes the following time: - `openssl.sh`: \~4 minutes - `bw_mem.sh`: \~4 minutes - `geekbench.sh`: \~6 minutes - `compress.py`: \~11 minutes See [Run Duration](https://docs.sparecores.com/images/benchmark/usage.md#run-duration) for the measured medians. #### Settings The scripts take no arguments; their benchmark settings are fixed in the scripts. The only optional setting is `BENCHMARK_SECRETS_PASSPHRASE`. It decrypts a Geekbench license shipped in the image. Geekbench runs without a license if the variable is unset. According to Geekbench, the license does not affect the scores. See the [environment-variable reference](https://docs.sparecores.com/images/benchmark/usage.md#environment-variables) for all variables. #### Results Each script prints its results to stdout in its own format: - [`openssl.sh`](https://docs.sparecores.com/images/benchmark/openssl.md#output) prints raw `openssl speed -mr` output for each algorithm, after a delimiter line `ALGO: ---...`. - [`bw_mem.sh`](https://docs.sparecores.com/images/benchmark/bw-mem.md#output) prints one line per successful run, ` `, with the buffer size in MB and the bandwidth in MB/s summed over all processes. - [`compress.py`](https://docs.sparecores.com/images/benchmark/compression.md#output) prints one JSON object with `ratio`, `compress`, and `decompress` per compressor, level, thread count, and extra arguments. - [`geekbench.sh`](https://docs.sparecores.com/images/benchmark/geekbench.md#output) prints Geekbench's console report to stdout, and the full result document as JSON to stderr. Each link leads to the fields and units of that format. ### Workloads The image runs the following benchmarks, one per script, each with its own page: - **[OpenSSL Speed](https://docs.sparecores.com/images/benchmark/openssl.md) (`openssl.sh`):** Measures the throughput of 11 hash and cipher algorithms with one process per logical CPU. - **[Memory Bandwidth](https://docs.sparecores.com/images/benchmark/bw-mem.md) (`bw_mem.sh`):** Measures read, write, and read-write bandwidth over 11 buffer sizes from `16k` to `512M`, with one process per logical CPU. - **[Compression](https://docs.sparecores.com/images/benchmark/compression.md) (`compress.py`):** Measures eight compressors at several levels on one thread and with at most one process per physical core. - **[Geekbench](https://docs.sparecores.com/images/benchmark/geekbench.md) (`geekbench.sh`):** Runs Geekbench 6.7.1's own Single-Core and Multi-Core suites. ### Design History The way production collects Geekbench results changed several times, without affecting the scores: 1. Production first used Geekbench Pro, which can save results locally in a machine-readable format, for easy data ingestion. 2. Geekbench Pro does not support the Arm preview build, so production uploaded the results to the Geekbench Browser and parsed them from the result page, first on Arm, then on all servers. 3. When the Geekbench Browser added Cloudflare bot detection, production switched to parsing the results Geekbench prints locally, as a backfill for results it could not parse. 4. The image now captures the upload on a local HTTPS server inside the container; see [Upload Capture](https://docs.sparecores.com/images/benchmark/geekbench.md#upload-capture). Production still runs the `x86_64` build with the Pro license, and the Arm preview build without a license. ### References This image's [Glossary](https://docs.sparecores.com/images/benchmark/glossary.md) defines its own terms. --- ## Usage (Legacy Benchmarks) ### Running a Script The image has no default command. Pass one script as the command; the scripts are in `/usr/local/bin`, which is on `PATH`. To run the OpenSSL speed benchmark: ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main openssl.sh ``` To run the memory bandwidth benchmark: ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main bw_mem.sh ``` To run the compression benchmark: ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main python /usr/local/bin/compress.py ``` To run Geekbench: ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main geekbench.sh ``` The scripts take no arguments; all benchmark settings are fixed in the scripts. Each script has its own page, with what it runs and what it prints: - [OpenSSL Speed](https://docs.sparecores.com/images/benchmark/openssl.md): `openssl.sh` - [Memory Bandwidth](https://docs.sparecores.com/images/benchmark/bw-mem.md): `bw_mem.sh` - [Compression](https://docs.sparecores.com/images/benchmark/compression.md): `compress.py` - [Geekbench](https://docs.sparecores.com/images/benchmark/geekbench.md): `geekbench.sh` The container entrypoint runs every command under Resource Tracker (`resource-tracker`), which samples the container's resource usage. Its metrics are not published. ### Production Setup The [Inspector](https://docs.sparecores.com/overview#how-it-works) of Spare Cores Navigator runs each script as a separate task. A plain `docker run` differs from it as noted below. #### Container Settings All four tasks run privileged with host networking, and each has a 1 hour timeout. Production runs `compress.py` and `geekbench.sh` under `nice -n -20` from its own command line; `openssl.sh` and `bw_mem.sh` set it themselves. Raising the priority needs `docker run --privileged`. The `geekbench` task also sets the following: - a memory limit, including swap, of 85% of available memory - swappiness 0 #### Server Coverage Production runs every task on every server type except the following: - `geekbench`: servers with more than 32 vCPUs or less than 2.1 GiB of memory - `compression_text` (`compress.py`): servers with less than 1 GiB of memory - `bw_mem`: the OVH `a10-180` and `l4-360` server types, where it crashes or hangs The image enforces none of these limits. #### Run Duration The median production run, across \~3400-3800 runs per task, takes the following time: | Script | Production task | Median duration (minutes) | | --- | --- | --- | | `openssl.sh` | `openssl` | \~3.8 | | `bw_mem.sh` | `bw_mem` | \~4.0 | | `geekbench.sh` | `geekbench` | \~5.8 | | `compress.py` | `compression_text` | \~10.7 | ### Environment Variables | Variable | Meaning | Default | | --- | --- | --- | | `BENCHMARK_SECRETS_PASSPHRASE` | Passphrase that decrypts the Geekbench license shipped in the image. Optional: without it, Geekbench runs without a license. | Unset | | `TRACKER_QUIET` | Quiet mode for Resource Tracker. | `true` | --- ## OpenSSL Speed ### Running the Script ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main openssl.sh ``` In production, the median run takes \~3.8 minutes. See [Run Duration](https://docs.sparecores.com/images/benchmark/usage.md#run-duration) for how it was measured, and [Production Setup](https://docs.sparecores.com/images/benchmark/usage.md#production-setup) for how production runs differ from a plain `docker run`. ### Workload [`openssl.sh`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark/openssl.sh) runs `openssl speed` once for each of the following 11 algorithms, one algorithm at a time: - hashes: `blake2b512`, `sha256`, `sha512`, `sha3-256`, `sha3-512`, `shake128`, and `shake256` - ciphers: `aes-256-cbc`, `aria-256-cbc`, `camellia-256-cbc`, and `sm4-cbc` Each run uses the following options: - `-multi $(nproc)`: one forked process per logical CPU, all in parallel - `-mr`: machine-readable output - `-mlock`: memory locking - `-elapsed`: wall-clock timing The script runs `openssl speed` under `nice -n -20` and sets no duration, so `openssl speed` measures each block size for its default duration (3 seconds in production output). The `openssl speed` command also picks the block sizes itself; production output shows 16, 64, 256, 1024, 8192, and 16384 bytes. ### OpenSSL Build The `openssl` binary is a custom OpenSSL 3.4.0 build in `/opt/openssl`, configured with many algorithms and features disabled to shorten the build. Only the 11 algorithms in [Workload](#workload) are measured. The script puts the build first on `PATH`. Ubuntu's system OpenSSL stays on the image-wide `PATH`; the Geekbench capture server uses it to create its certificate. ### Output For each algorithm, `openssl.sh` prints a delimiter line, `ALGO: ----------------------------------------`, then the raw `openssl speed -mr` output, including `openssl speed`'s stderr. The `+H:` line lists the block sizes in bytes, and the `+F:` line the matching speeds in bytes per second. Production parses this output into a list of `algo`, `block_size`, and `speed` entries, and [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes `speed` in bytes per second. --- ## Memory Bandwidth ### Running the Script ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main bw_mem.sh ``` In production, the median run takes \~4.0 minutes. See [Run Duration](https://docs.sparecores.com/images/benchmark/usage.md#run-duration) for how it was measured, and [Production Setup](https://docs.sparecores.com/images/benchmark/usage.md#production-setup) for how production runs differ from a plain `docker run`. ### Workload [`bw_mem.sh`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark/bw_mem.sh) runs LMbench's `bw_mem`, from Ubuntu's `lmbench` package, in three of its modes: - `rd` reads data into the processor, computing the sum of an array. - `wr` writes data to memory, assigning a constant value to each element. - `rdwr` reads and then writes the same location, adding the current value to a running sum before assigning a new constant value. Each mode accesses every fourth word of an array of integers. The script runs each mode over the following 11 sizes, 33 runs in sequence: `16k`, `256k`, `1M`, `2M`, `4M`, `8M`, `16M`, `32M`, `64M`, `256M`, and `512M`. Each run is `nice -n -20 bw_mem -P $(nproc) `. With `-P`, each of the `nproc` processes allocates its own buffer of the given size, and the reported bandwidth is the total across all processes. The [`bw_mem` manual](https://github.com/intel/lmbench/blob/master/doc/bw_mem.8) opens by describing a buffer twice the given size that is copied from one half to the other. That description applies to the copy modes, which the image does not run; `rd`, `wr`, and `rdwr` allocate one buffer of the given size. ### `bw_mem` Version The `bw_mem` program comes from Ubuntu 24.04's `lmbench` package, whose version may differ from the upstream LMbench source. ### Output The `bw_mem.sh` script prints one line per successful run, ` `, such as `rd 0.016384 147885.61`: - `` is `rd`, `wr`, or `rdwr`. - `` is the per-process buffer size in MB of 10^6 bytes, so `16k` prints as `0.016384`. - `` is the total MB/s across all processes. A size that fails or prints unexpected output is skipped without an error, so a run can have fewer than 33 lines. --- ## Compression ### Running the Script ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main python /usr/local/bin/compress.py ``` In production, the median run takes \~10.7 minutes. See [Run Duration](https://docs.sparecores.com/images/benchmark/usage.md#run-duration) for how it was measured, and [Production Setup](https://docs.sparecores.com/images/benchmark/usage.md#production-setup) for how production runs differ from a plain `docker run`. ### Workload [`compress.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark/compress.py) measures how well and how fast Python compression libraries handle one input: `dickens`, a text file of \~10 MB from the Silesia corpus. The script reads it into memory once. It runs every compressor at the following levels and extra arguments: | Compressor | Python library | Levels | Extra arguments | | --- | --- | --- | --- | | `brotli` | `brotli` | 0, 4, 8, 11 | None | | `gzip` | `gzip` | 1, 5, 9 | None | | `bzip2` | `bz2` | 1, 5, 9 | None | | `lzma` (Lempel-Ziv-Markov chain Algorithm) | `lzma` | 1, 5, 9 | None | | `zstd` (Zstandard) | `pyzstd` | 1, 7, 14, 22 | None | | `bzip3` | `bz3` | No level | `block_size` 1 MiB (default) and 64 MiB | | `zpaq` | `pyzpaq` | 1, 3, 5 | None | | `lz4` | `lz4.frame` | 1, 6, 12, 16 | `block_size` 64 KiB (default), 1 MiB, and 4 MiB | Each combination runs with one thread and with `NUMCPUS` threads, where `NUMCPUS` is the smaller of the physical core count and the number of CPUs the process may run on. On a server with one core, only the single-thread case runs. ### How a Measurement Works Each combination runs in its own worker process, so the kernel's out-of-memory killer stops only that measurement. A measurement works as follows: 1. Compresses the input once on one thread to compute the ratio, then decompresses it and checks that the result matches the input byte for byte. 2. Starts one process per thread, each compressing the full input independently. The processes wait for a shared start signal, sent after 1 second. 3. Takes the mean of the per-process times as the elapsed time, and computes throughput as (input size × thread count) / elapsed time. 4. Repeats steps 2 and 3 once more and keeps the faster run. 5. Measures decompression the same way. "Threads" here means parallel, independent processes that each compress the same data, not one multithreaded compressor working on shared data. ### Output The `compress.py` script prints one indented JSON object, `{: {: [, ...]}}`. Levels are string keys, and `bzip3`, which has no level, uses the key `"null"`. Each result has the following fields: - `threads`: the number of parallel processes. - `extra_args`: the extra arguments, such as `block_size` in bytes for `bzip3` and `lz4`. - `ratio`: compressed size divided by original size, as a percentage; lower is better. - `compress` and `decompress`: bytes of uncompressed data per second, summed over all processes. A measurement that fails, for example because its worker process was killed, has `ratio`, `compress`, and `decompress` set to `null`, and its traceback goes to stderr. Production runs on small servers show such failures. ### Compression Input The compression benchmark uses only `dickens`, a text file of the Silesia corpus, although the image ships the whole corpus. We needed one large-enough, common text file to compare the algorithms, and there are no plans to add other corpus files. The results show how the compressors handle text, not other data types. ### CPU Count The multi-thread case starts one process per physical core, not per logical CPU (see [Workload](#workload)). On a server with SMT (Simultaneous Multithreading), its results therefore do not use every logical CPU. ### Library Versions The Python compression libraries are installed unpinned from PyPI (Python Package Index) at build time, except `pyzpaq`, which is pinned to one commit. A rebuilt image can measure newer library versions. --- ## Geekbench(Benchmark) ### Running the Script ```shell docker run --rm --privileged ghcr.io/sparecores/benchmark:main geekbench.sh ``` In production, the median run takes \~5.8 minutes. See [Run Duration](https://docs.sparecores.com/images/benchmark/usage.md#run-duration) for how it was measured, and [Production Setup](https://docs.sparecores.com/images/benchmark/usage.md#production-setup) for how production runs differ from a plain `docker run`. ### Workload [`geekbench.sh`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark/geekbench.sh) runs Geekbench 6.7.1 once with its default settings. Geekbench runs its own Single-Core and Multi-Core suites, each made up of several workloads; the image configures no workload, iteration count, or duration. The image ships both the `x86_64` build and the Arm preview build for `aarch64`, and the script picks one by the machine architecture. Geekbench runs with `--upload`, but the result never reaches the Geekbench Browser. See [Upload Capture](#upload-capture) for how the script captures the upload inside the container. ### Upload Capture [`geekbench.sh`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark/geekbench.sh) keeps Geekbench's results inside the container. It works as follows: 1. Decrypts the Geekbench license shipped in the image, if `BENCHMARK_SECRETS_PASSPHRASE` is set. Without the variable, decryption fails, the script continues, and Geekbench runs without a license. Production sets the variable, so the `x86_64` build runs with the Pro license; the Arm preview build does not support a license. According to the Geekbench documentation, this makes no difference to the scores. 2. Points `browser.geekbench.com` at `127.0.0.1` in `/etc/hosts`. 3. Starts [`geekbench_capture.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark/geekbench_capture.py), a local HTTPS server on `127.0.0.1:443`, with a self-signed certificate for `browser.geekbench.com` that it installs as trusted. The script exits with status 1 if the server does not start within \~10 seconds. 4. Runs Geekbench with `--upload`. The capture server saves the uploaded result document and answers as the Geekbench Browser would, so Geekbench reports a successful upload. Nothing is sent to the real Geekbench Browser. 5. Prints the captured document to stderr and stops the capture server. The script edits `/etc/hosts`, installs a certificate, and binds port 443, so it must run as root, the image's default user. With host networking, as in production, port 443 on the host's loopback interface must be free. The script's exit code is that of the `egrep` filter on Geekbench's stdout, not Geekbench's own. To confirm that a run produced results, check stderr for the `GEEKBENCH_UPLOAD_DOCUMENT` block. ### Output The `geekbench.sh` script writes the following: - **stdout:** Geekbench's console report: system information, then the Single-Core and Multi-Core tables of each workload's score and rate. It ends with an upload notice and the placeholder URL `https://browser.geekbench.com/v6/cpu/99999999`, which does not lead to a result. - **stderr:** Geekbench's own stderr, then the captured result document as JSON between a `GEEKBENCH_UPLOAD_DOCUMENT` and a `GEEKBENCH_UPLOAD_DOCUMENT_END` line. The document holds each workload's runtime, rate, and score, and system metrics. The capture server logs to `/tmp/geekbench-capture.log` inside the container; the script prints the log only if the server fails to start. Production builds a `results.json` from the captured document, with a `Score` and per-workload scores under `Single-Core Performance` and `Multi-Core Performance`. ### Server Range Production runs Geekbench only on servers within two limits: - **At most 32 vCPUs:** based on our experience running benchmarks on thousands of server SKUs, Geekbench does not scale beyond 32 cores. - **At least 2.1 GiB of memory:** smaller servers run out of memory during the benchmark. The image enforces neither limit, so `geekbench.sh` also runs on larger and smaller servers. --- ## FFmpeg Source: [`images/benchmark-ffmpeg/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark-ffmpeg) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark-ffmpeg:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark-ffmpeg). This benchmark measures how much audio and video a server can transcode with FFmpeg when many jobs are run at once. It starts independent, single-threaded `ffmpeg` processes from a shared start signal: audio encoding runs on the CPU, and H.264 and H.265 video encoding and decoding run on the CPU and, when available, on NVIDIA GPUs. This benchmark reports the aggregate throughput of each scenario at several worker counts: frames per second for video, and audio seconds processed per second for audio. It emits every measured repetition as raw data, without a headline score. ### Purpose [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes empirical performance measurements for more than 5,000 cloud server types. Media businesses often run video and audio transcoding and similar tasks in the cloud, because their compute needs change over time. The Navigator previously covered this kind of work only through proxies from the [Geekbench suite](https://docs.sparecores.com/images/benchmark/geekbench.md): photo editing, ray tracing, and document rendering. This benchmark measures transcoding directly. It runs many single-threaded jobs in parallel and times the whole group, so the result shows how much media a server type processes at once, rather than how fast a single job finishes. ### Limitations These results compare transcoding throughput across server types. Note the following limitations: - **[Output Quality](https://docs.sparecores.com/images/benchmark-ffmpeg/limitations.md#output-quality):** This benchmark measures speed, not output quality, and computes no quality metric. GPU encode settings are calibrated to approximately match the CPU encode quality, but the match is not exact. See also [CPU and GPU Encode Quality](https://docs.sparecores.com/images/benchmark-ffmpeg/limitations.md#cpu-and-gpu-encode-quality). - **[Storage](https://docs.sparecores.com/images/benchmark-ffmpeg/limitations.md#storage-and-output):** Encoded output is discarded through FFmpeg's null muxer, so file, disk, and object-storage writes are not measured. - **[Fixed Media and Settings](https://docs.sparecores.com/images/benchmark-ffmpeg/limitations.md#a-specific-media-pipeline):** Every job uses the same short video clip or music sample with fixed codec settings. Other resolutions, settings, and codecs are not covered, for example AV1 (AOMedia Video 1). - **[GPUs](https://docs.sparecores.com/images/benchmark-ffmpeg/limitations.md#gpu-coverage):** Only NVIDIA GPUs are used, for video only; audio always runs on the CPU. A GPU scenario that cannot start on a given GPU is skipped. ### Usage Run the image via Docker. With no options, it runs the CPU and audio scenarios and skips the GPU scenarios: ```bash docker run --rm ghcr.io/sparecores/benchmark-ffmpeg:main > results.json ``` The image contains its test media, so it needs no network access at run time. To include the NVIDIA GPU scenarios, pass the GPUs to the container. This needs the NVIDIA driver and the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/index.html) on the host: ```bash docker run --rm --gpus all ghcr.io/sparecores/benchmark-ffmpeg:main > results.json ``` See [GPU Run](https://docs.sparecores.com/images/benchmark-ffmpeg/usage.md#gpu-run) for the GPU requirements. Production runs the container privileged and with host networking; a plain `docker run` needs neither. See [Production Setup](https://docs.sparecores.com/images/benchmark-ffmpeg/usage.md#production-setup) before comparing results with production runs. A production run on an AWS (Amazon Web Services) [`m9g.16xlarge`](https://sparecores.com/server/aws/m9g.16xlarge) took about 10 minutes. Run time grows with each worker count measured, and with GPU scenarios. See [Run Duration](https://docs.sparecores.com/images/benchmark-ffmpeg/usage.md#run-duration) for the steps and timeouts. #### Settings The following settings are the most common; see the [full environment-variable reference](https://docs.sparecores.com/images/benchmark-ffmpeg/usage.md#environment-variables) for all options and defaults: - `FFMPEG_BENCH_TARGET_SECONDS` sets the wall time of each measured repetition (default: 5s). - `FFMPEG_BENCH_REPETITIONS` and `FFMPEG_BENCH_MAX_REPETITIONS` set how many repetitions run at each worker count (default: three, up to five). - `FFMPEG_BENCH_WORKERS` replaces the automatic worker counts with an explicit, comma-separated list. - `FFMPEG_BENCH_MAX_WORKERS` caps the number of parallel workers. - `FFMPEG_BENCH_TIMEOUT_SECONDS` sets the deadline for the whole run (default: 7,200s). #### Results The process prints one compact JSON line to stdout when the run ends; logs go to stderr. The main fields of the JSON line are the following: - `scenarios[]` has one entry per scenario, with its `name`, `backend` (`cpu` or `gpu`), `operation` (`encode` or `decode`), and `codec`. A scenario that could not run has `skipped: true` and a `skip_reason`. - Each `scaling_steps[]` entry is one worker count: `workers` parallel jobs, each processing `media_duration_sec` seconds of media. - Each `repetitions[]` entry is one measurement at that worker count. Video repetitions report `aggregate_fps` (frames per second across all workers) and `processed_frames`; audio repetitions report `audio_seconds_per_sec` and `processed_audio_seconds`. The `wall_time_sec` field is the time from the shared start to the last worker's exit. - `successful_workers`, `failed_workers`, and `timed_out_workers` describe each repetition. A failed worker contributes no media, but its time still counts. - There is no score, peak, or median: aggregate the repetitions yourself, for example by taking the median rate at each worker count. - `host`, `ffmpeg`, `sources`, and `methodology` record the server, the FFmpeg build, the test media, and the measurement settings. If `benchmark.py` itself fails, the process exits with code 1 and prints a JSON object with an `error` field; if `ffmpeg` is not on the `PATH`, it exits with code 1 and prints no JSON. Exit code 0 does not mean that every scenario ran: check `skipped`, `skip_reason`, and `failed_workers` in the output. ### Workloads All scenarios run by default, in the following groups: - **[Audio Encoding](https://docs.sparecores.com/images/benchmark-ffmpeg/workloads.md#audio-encoding):** Vorbis, Opus (audio codec), AAC (Advanced Audio Coding), MP3, and FLAC (Free Lossless Audio Codec) encodes of one music sample, on the CPU. - **[CPU Video](https://docs.sparecores.com/images/benchmark-ffmpeg/workloads.md#cpu-video):** H.264 and H.265 encoding and decoding of one film clip, with one codec thread per job. - **[NVIDIA Video](https://docs.sparecores.com/images/benchmark-ffmpeg/workloads.md#nvidia-video):** The same H.264 and H.265 encoding and decoding on NVIDIA GPUs, with NVENC (NVIDIA Video Encoder) and NVDEC (NVIDIA Video Decoder). See [How Measurement Works](https://docs.sparecores.com/images/benchmark-ffmpeg/workloads.md#how-measurement-works) for the worker counts, timing, and repetitions. ### Design History We designed this benchmark to measure aggregate capacity. The harness ([`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-ffmpeg/benchmark.py)) times all `ffmpeg` processes together, from their shared start until the last worker exits. Unlike a sum of the speeds reported by each process, this measurement includes process startup and teardown. Worker counts follow physical cores rather than logical CPUs. Two single-threaded workers on sibling hyperthreads compete for the same core, which can lower throughput, especially for decoding. We later calibrated GPU encodes against CPU encodes. NVENC has no direct equivalent to the CPU encoders' quality setting, so we compared several NVENC quality levels on the test clip and chose the closest match. In [harness version 3.3.0](https://docs.sparecores.com/images/benchmark-ffmpeg/design-history.md#nvenc-quality-matched-to-cpu-encodes-and-gpu-driver-libraries-mounted), the image also began requesting the NVIDIA driver's video libraries directly. Many earlier GPU runs could not load those libraries. This benchmark does not check output quality at run time, CPU and GPU encode quality only match approximately, and GPU results depend on the features each GPU and driver support. See the [changelog](https://docs.sparecores.com/images/benchmark-ffmpeg/design-history.md) for the calibration data and the measurement-length study. ### References This image's [Glossary](https://docs.sparecores.com/images/benchmark-ffmpeg/glossary.md) defines its own terms. ### Contributing To change, rebuild, or test this image, see the [contributor guide](https://docs.sparecores.com/images/benchmark-ffmpeg/contributors.md). --- ## Usage (FFmpeg) ### CPU Run Run the image via Docker without options to measure the audio and CPU video scenarios: ```bash docker run --rm ghcr.io/sparecores/benchmark-ffmpeg:main > results.json ``` The four GPU scenarios are skipped with `skip_reason` `no_cuda_gpu_detected`. The image needs no environment variables or network access at run time: the test media is downloaded and checksum-verified when the image is built. The `--version` option prints the versions of the harness ([`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-ffmpeg/benchmark.py)) and FFmpeg, and exits: ```bash docker run --rm ghcr.io/sparecores/benchmark-ffmpeg:main --version ``` ### GPU Run Pass the GPUs to the container to add the NVIDIA video scenarios: ```bash docker run --rm --gpus all ghcr.io/sparecores/benchmark-ffmpeg:main > results.json ``` Before running, check the following prerequisites: - The host has an NVIDIA GPU, the NVIDIA driver, and the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/index.html). The image does not include the CUDA (Compute Unified Device Architecture) toolkit or NVIDIA driver libraries. It loads NVENC (NVIDIA Video Encoder) and NVDEC (NVIDIA Video Decoder) from the host driver at run time. - `nvidia-smi` works inside the container. The harness uses it to find the GPUs; without it, the GPU scenarios are skipped. The image sets `NVIDIA_DRIVER_CAPABILITIES=compute,utility,video`, so the NVIDIA Container Toolkit also mounts the driver's video libraries without a separate request. Without the `video` capability, the GPU scenarios fail to load `libnvcuvid.so.1` and are skipped. Each GPU scenario first runs a one-worker probe. If the GPU cannot open an NVENC or NVDEC session for it, the scenario is skipped with the error text as its `skip_reason`. ### Container Resource Limits This benchmark sets its worker counts based on the resources available to the container, as reported by cgroup v2 (control groups v2) and CPU affinity. The following [Docker resource limits](https://docs.docker.com/engine/containers/resource_constraints/) all lower the worker counts: - `--cpus` (cgroup `cpu.max`) - `--cpuset-cpus` (CPU affinity) - `--memory` (`memory.max`): each audio worker is budgeted 64 MiB and each video worker 320 MiB of available memory. - `--pids-limit` (`pids.max`): each worker is budgeted `FFMPEG_BENCH_PID_TASKS_PER_WORKER` tasks (default: four), because the PID (Process Identifier) limit counts threads, not only processes. The output records the limits it found in `host`, including `cgroup_cpu_max`, `cgroup_cpuset_effective`, and the `cgroup_cpu_stat_before` and `cgroup_cpu_stat_after` snapshots. The `_gb` memory fields are in GiB. The harness copies the test media into a work directory on `/dev/shm` when it has at least 512 MiB free, and into the default temporary directory otherwise. Docker's default `/dev/shm` is 64 MiB, so a plain `docker run` uses `/tmp`. ### Worker Counts Each scenario is measured at several worker counts (parallel `ffmpeg` processes), set in [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-ffmpeg/benchmark.py) as follows: - **CPU scenarios:** 1, P/2 (rounded down), and P, where P is the number of physical cores the container can use. Logical CPUs that are SMT (Simultaneous Multithreading) siblings of the same core count once. If throughput at P is at least 1.08 times the throughput at P/2, one more point at 2·P is added, capped by the logical CPU count and the limits above. - **GPU scenarios:** 1 and G, where G is the number of GPUs. The search then keeps doubling the worker count (2·G, 4·G, ...) as long as throughput does not drop, up to eight sessions per GPU by default. Any drop stops the search; the 1.08 ratio does not apply to GPUs. A worker count with a failed worker stops the search for that scenario. On servers with more than one NUMA (Non-Uniform Memory Access) node, workers are spread across the nodes in proportion to their CPUs and bound to them with [`numactl`](https://man7.org/linux/man-pages/man8/numactl.8.html), if binding works in the container. Otherwise, normal Linux scheduling applies. For example, a server with 48 physical cores and 96 logical CPUs, with no container limits, measures the CPU scenarios at 1, 24, and 48 workers, and at 96 workers if 48 workers beat 24 by at least 8%. The following settings change the worker counts: - `FFMPEG_BENCH_WORKERS` replaces the automatic counts with an explicit, comma-separated list, capped at the maximum worker count, and disables the search. - `FFMPEG_BENCH_OVERSUBSCRIPTION` above 1 adds one point at that multiple of P (or of G, for GPU scenarios). - `FFMPEG_BENCH_MAX_WORKERS` caps the worker count. ### Run Duration Each scenario runs the following steps: 1. A one-worker probe with 1 second of video or 5 seconds of audio checks that the scenario can run and estimates its speed. A scenario whose probe fails is skipped. 2. At each worker count, a pilot run sizes the media for each worker so that one repetition takes about `FFMPEG_BENCH_TARGET_SECONDS` (default: 5s) of wall time. Faster servers therefore process more media in the same time. A successful pilot is not reported; a pilot that still fails after up to four attempts is reported as a failed repetition and ends the scenario. 3. By default, three repetitions are measured. While the CV (Coefficient of Variation) of their rates is above 10%, more are added, up to five. A repetition with a failed worker ends the worker count. Each repetition, including pilots, times out after `FFMPEG_BENCH_REPETITION_TIMEOUT_SECONDS` (default: 30s), and workers that run past it count as failed. The whole run stops after `FFMPEG_BENCH_TIMEOUT_SECONDS` (default: 7,200s); scenarios that have not started by then are reported as skipped with `overall_timeout`. Total run time therefore depends on the number of scenarios that run and the worker counts each one measures. A production run on an AWS (Amazon Web Services) [`m9g.16xlarge`](https://sparecores.com/server/aws/m9g.16xlarge) with 64 vCPUs and no GPUs measured every CPU and audio scenario at 1, 32, and 64 workers and took about 10 minutes ([recorded output](https://github.com/SpareCores/sc-inspector-data/tree/main/data/aws/m9g.16xlarge/0/ffmpeg)). Across 372 production runs of harness version 3.2.1, run time ranged from about 3 minutes on servers with 2 vCPUs to about 17 minutes on GPU servers, with a median of about 9.5 minutes. #### Repetition Length Each repetition targets 5 seconds of wall time by default. Because the pilot scales the media to that target, larger servers process more media in the same time instead of running longer. The default comes from a study that compared targets of 2, 5, and 10 seconds on one developer workstation, a 24-core Intel Core i9-14900K desktop CPU without an NVIDIA GPU, so GPU scenarios were not part of it. Only the study's summary was kept; see [Why 5 Seconds](https://docs.sparecores.com/images/benchmark-ffmpeg/design-history.md#why-5-seconds). #### Shorter Test Runs For a quick check that the image works, reduce the worker counts, repetitions, and media lengths: ```bash docker run --rm \ -e FFMPEG_BENCH_WORKERS=1,2 \ -e FFMPEG_BENCH_REPETITIONS=1 \ -e FFMPEG_BENCH_TARGET_SECONDS=1 \ -e FFMPEG_BENCH_MIN_MEDIA_SECONDS=1 \ -e FFMPEG_BENCH_MAX_MEDIA_SECONDS=5 \ -e FFMPEG_BENCH_AUDIO_CALIBRATION_SECONDS=1 \ ghcr.io/sparecores/benchmark-ffmpeg:main ``` The results of such a run are not comparable with default runs. ### Production Setup The [Inspector](https://docs.sparecores.com/overview#how-it-works) of Spare Cores Navigator runs this image on every server type except those on the [`inspector_rules.py`](https://github.com/SpareCores/sc-crawler/blob/main/src/sc_crawler/inspector_rules.py) blocklist, with the settings in the following table. The last column shows what a plain `docker run` does instead: | Setting | Production | Plain `docker run` | | ------- | ---------- | ------------------ | | Privileges and networking | Privileged, with host networking | Neither | | `--shm-size` | Not set | Not set | | GPUs | Requested for the container, equivalent to `--gpus all`; the run is retried without GPUs if that fails | None, unless you pass `--gpus all` | | Task timeout | 2 hours | 2 hours, the harness default | | Minimum memory | Servers with less than 1 GiB of memory are skipped | Not enforced by the image | This benchmark does not need privileged mode or host networking. With no `--shm-size` set, `/dev/shm` keeps Docker's 64 MiB default and the test media is copied to `/tmp`, in production and in a plain run. We investigate failed production runs, manually or semi-automatically, and then run them again. Until then, a server type's latest result in `sc-inspector-data` can be a failed or partial run. ### Environment Variables The following variables configure this benchmark. See [Results](https://docs.sparecores.com/images/benchmark-ffmpeg.md#results) for the output fields. | Variable | Meaning | Default | | --- | --- | --- | | `FFMPEG_BENCH_TARGET_SECONDS` | Target wall time per repetition in seconds. | `5` | | `FFMPEG_BENCH_MIN_MEDIA_SECONDS` | Minimum media length per worker in seconds. | `0.5` | | `FFMPEG_BENCH_MAX_MEDIA_SECONDS` | Maximum media length per worker in seconds. | `1800` | | `FFMPEG_BENCH_VIDEO_CALIBRATION_SECONDS` | Media length of the one-worker video probe in seconds. | `1` | | `FFMPEG_BENCH_AUDIO_CALIBRATION_SECONDS` | Media length of the one-worker audio probe in seconds. | `5` | | `FFMPEG_BENCH_REPETITIONS` | Measured repetitions per worker count (at least 1). | `3` | | `FFMPEG_BENCH_MAX_REPETITIONS` | Maximum repetitions per worker count when the rates vary. | `5` | | `FFMPEG_BENCH_CV_THRESHOLD` | Add repetitions while the coefficient of variation of the rates is above this value. | `0.10` | | `FFMPEG_BENCH_OVERSUBSCRIPTION` | Above 1, adds a worker count at this multiple of the physical cores (CPU) or GPUs (GPU). | `1` | | `FFMPEG_BENCH_SCALE_CONTINUE_RATIO` | CPU only: throughput gain from P/2 to P workers required to try 2·P workers. | `1.08` | | `FFMPEG_BENCH_WORKERS` | Comma-separated worker counts; replaces the automatic counts and disables the search. | Automatic | | `FFMPEG_BENCH_MAX_WORKERS` | Hard cap on the worker count. | Automatic | | `FFMPEG_BENCH_GPU_ENCODE_SESSIONS_PER_GPU` | Highest NVENC worker count per GPU the search can reach. | `8` | | `FFMPEG_BENCH_GPU_DECODE_SESSIONS_PER_GPU` | Highest NVDEC worker count per GPU the search can reach. | `8` | | `FFMPEG_BENCH_PID_TASKS_PER_WORKER` | Tasks budgeted per worker against the container's PID limit (at least 2). | `4` | | `FFMPEG_BENCH_REPETITION_TIMEOUT_SECONDS` | Timeout for each repetition or pilot in seconds. | 6 × target, at least `30` | | `FFMPEG_BENCH_TIMEOUT_SECONDS` | Deadline for the whole run in seconds. | `7200` | | `FFMPEG_BENCH_AUDIO_SOURCE` | Path of an alternate FLAC file. It is not checksum-verified. | Bundled sample | | `FFMPEG_BENCH_VIDEO_SOURCE` | Path of an alternate H.264 MP4 file. It must match `FFMPEG_BENCH_VIDEO_SHA256`. | Bundled clip | | `FFMPEG_BENCH_VIDEO_HEVC_SOURCE` | Path of an alternate H.265 MP4 file. It must match `FFMPEG_BENCH_VIDEO_HEVC_SHA256`. | Bundled clip | | `FFMPEG_BENCH_VIDEO_SHA256` | Expected SHA-256 (Secure Hash Algorithm 256) hash of the H.264 file; empty skips the check. | Pinned hash | | `FFMPEG_BENCH_VIDEO_HEVC_SHA256` | Expected SHA-256 of the H.265 file; empty skips the check. | Pinned hash | | `FFMPEG_BENCH_CDN_BASE_URL` | Base URL recorded as the test media source in the output; nothing is downloaded. | `https://cdn.sparecores.net/sc-inspector/benchmark-ffmpeg` | | `FFMPEG`, `FFPROBE` | Alternate `ffmpeg` and `ffprobe` binaries. | `ffmpeg` and `ffprobe` on `PATH` | --- ## Workloads (FFmpeg) ### Audio Encoding Every audio job decodes the bundled FLAC (Free Lossless Audio Codec) music sample, resamples it when needed, and encodes stereo output with one codec thread, using Vorbis, Opus (audio codec), AAC (Advanced Audio Coding), MP3, or FLAC. The audio scenarios run on the CPU only; see [Audio on the CPU Only](https://docs.sparecores.com/images/benchmark-ffmpeg/limitations.md#audio-on-the-cpu-only). | Scenario | Encoder | Settings | Sample rate | | --- | --- | --- | --- | | `ogg_vorbis_160k` | `libvorbis` | 160 kbps | 44.1 kHz | | `opus_128k` | `libopus` | 128 kbps | 48 kHz | | `aac_128k` | `aac` (FFmpeg's native AAC encoder) | 128 kbps | 44.1 kHz | | `mp3_192k` | `libmp3lame` | 192 kbps | 44.1 kHz | | `flac_lossless` | `flac` (FFmpeg's native FLAC encoder) | Compression level 5 | 44.1 kHz | The `opus_128k` workload uses 48 kHz because `libopus` accepts only 8, 12, 16, 24, or 48 kHz, not the sample's 44.1 kHz. Audio results are reported as `audio_seconds_per_sec`: seconds of audio processed per second of wall time, across all workers. ### CPU Video The CPU video scenarios use FFmpeg's software codecs, with one codec thread per job for both decoding and encoding: | Scenario | Operation | Input | Decoder | Encoder and settings | | --- | --- | --- | --- | --- | | `cpu_h264_encode` | Encode | H.264 clip | `h264` | `libx264 -crf 18` | | `cpu_h265_encode` | Encode | H.264 clip | `h264` | `libx265 -crf 18`, one frame thread, no thread pool | | `cpu_h264_decode` | Decode | H.264 clip | `h264` | None | | `cpu_h265_decode` | Decode | H.265 clip | `hevc` | None | The encode scenarios also decode their H.264 input on the CPU, so they measure a full transcode. CRF (Constant Rate Factor) 18 is a quality target; no `-preset` is set, so `libx264` and `libx265` use their default preset (medium). Video results are reported as `aggregate_fps`: frames processed per second of wall time, across all workers. ### NVIDIA Video The NVIDIA video scenarios decode on the GPU and, for encodes, keep the frames in GPU memory for NVENC (NVIDIA Video Encoder): | Scenario | Operation | Input | Decoder | Encoder and settings | | --- | --- | --- | --- | --- | | `gpu_h264_encode` | Encode | H.264 clip | `h264_cuvid` | `h264_nvenc -preset p4 -rc vbr -cq 22 -b:v 0` | | `gpu_h264_decode` | Decode | H.264 clip | `h264_cuvid` | None | | `gpu_h265_encode` | Encode | H.264 clip | `h264_cuvid` | `hevc_nvenc -preset p4 -rc vbr -cq 22 -b:v 0` | | `gpu_h265_decode` | Decode | H.265 clip | `hevc_cuvid` | None | Each job runs with `-hwaccel cuda` on one GPU. The `-cq 22` constant-quality setting was chosen to approximately match the CPU encodes at CRF 18; see [CPU and GPU Encode Quality](https://docs.sparecores.com/images/benchmark-ffmpeg/limitations.md#cpu-and-gpu-encode-quality). ### Test Media The image build downloads the test media from the Spare Cores CDN (Content Delivery Network) and checks each file's SHA-256 (Secure Hash Algorithm 256) checksum. At run time, the H.264 and H.265 clips are checked again; the audio file is not. The files are the following: - **H.264 clip** (`source.mp4`): an excerpt of 30 seconds from the Blender Foundation's open movie [Tears of Steel](https://mango.blender.org/), cut at 60 seconds from the 1080p release with stream copy. It is 1920x800 pixels at 24 fps (Frames Per Second). License: CC BY 3.0 (Creative Commons Attribution 3.0), as stated on the [Tears of Steel sharing page](https://mango.blender.org/sharing/). - **H.265 clip** (`source-hevc.mp4`): the same excerpt, transcoded with `libx265 -crf 18 -preset medium`, so the H.265 decode scenarios get the same frame size, frame rate, and duration. - **Music sample** (`source.flac`): the "Entre dos Aguas" sample performed by Michael Laucke, about 85 seconds at 44.1 kHz. License: CC0 1.0 (Creative Commons Zero 1.0). Each job loops its input (`-stream_loop -1`) and stops after the media length set for that worker count (`-t`), so the length of a job does not depend on the length of the file. The harness ([`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-ffmpeg/benchmark.py)) probes each file's resolution, frame rate, and duration at run time and reports them in `sources`. ### How Measurement Works This benchmark runs its 13 scenarios in a fixed order, as defined in [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-ffmpeg/benchmark.py): the eight video scenarios first, then the five audio scenarios. Each repetition measures one group of parallel workers in the following steps: 1. The harness starts every worker as a separate process. Each worker first waits to read from one shared pipe, so `ffmpeg` has not started yet when the last worker is ready. 2. The harness records the start time, then closes the pipe. Closing it ends every worker's wait at the same moment, and each worker starts its `ffmpeg` command. The start time comes from a monotonic clock, which only moves forward and is not changed by system time adjustments such as NTP (Network Time Protocol) corrections, so the measured wall time cannot jump. 3. It records each worker's exit time and exit code. The wall time is the time from the release to the last exit, so process startup and teardown are included. 4. It computes the rate: (successful workers × media length per worker) / wall time. For video, the media length is converted to frames with the clip's frame rate. The harness never adds up the speed that each `ffmpeg` process reports for itself. Workers that time out are stopped, recorded with exit code 124, and count as failed. Encoded output goes to the null muxer and is discarded; see [Storage and Output](https://docs.sparecores.com/images/benchmark-ffmpeg/limitations.md#storage-and-output). See [Worker Counts](https://docs.sparecores.com/images/benchmark-ffmpeg/usage.md#worker-counts) for how many workers each group has, and [Run Duration](https://docs.sparecores.com/images/benchmark-ffmpeg/usage.md#run-duration) for the repetitions and timeouts. --- ## Limitations (FFmpeg) ### Disclaimer: What This Benchmark Does *Not* Deliver #### Output Quality This benchmark measures throughput, not the quality of the encoded output. It computes no quality metric, such as PSNR (Peak Signal-to-Noise Ratio), SSIM (Structural Similarity Index Measure), or VMAF (Video Multimethod Assessment Fusion). The encode settings are fixed per scenario, so the quality target stays the same across server types; see [CPU and GPU Encode Quality](#cpu-and-gpu-encode-quality) for how CPU and GPU settings relate. #### Storage and Output Every job sends its encoded output to FFmpeg's [null muxer](https://ffmpeg.org/ffmpeg-formats.html#null) (`-f null -`), which discards it. This benchmark therefore does *not* measure disk, file system, or object-storage writes, and a transcoding service that stores its output can be limited by storage instead. #### A Specific Media Pipeline All jobs use the same pinned test media and fixed codec settings: a film clip of 30 seconds at 1920x800 pixels and 24 fps (Frames Per Second), and a music sample of about 85 seconds. See [Test Media](https://docs.sparecores.com/images/benchmark-ffmpeg/workloads.md#test-media) for details. The results do *not* predict the speed of other resolutions, frame rates, content, codec settings, or codecs, such as AV1 (AOMedia Video 1). They give a relative sense of how much of this fixed work each server type completes. #### Single-Job Speed This benchmark measures the combined throughput of many parallel jobs, each limited to one codec thread. The one-worker step shows the speed of a single such job, not of one `ffmpeg` process that spreads a single stream across many threads. See [One Codec Thread per Job](#one-codec-thread-per-job). ### Scope Decisions #### One Codec Thread per Job Each worker is an independent `ffmpeg` process limited to one codec thread ([`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-ffmpeg/benchmark.py)). The `libx265` encoder additionally runs with one frame thread and no thread pool. Throughput on larger servers comes from running more workers in parallel, not from more threads per job. #### Physical Cores, Not Logical CPUs The CPU worker counts are based on physical cores rather than logical CPUs. Two single-threaded workers on the two hyperthreads of one core compete for that core, so counting logical CPUs over-subscribes servers with SMT (Simultaneous Multithreading) and can lower throughput, especially for decoding. When throughput at the physical core count is at least 8% higher than at half of it, one extra measurement at twice that count shows whether SMT helps; see [Worker Counts](https://docs.sparecores.com/images/benchmark-ffmpeg/usage.md#worker-counts). #### Audio on the CPU Only FFmpeg's NVIDIA encoders and decoders handle video only, and there is no NVIDIA hardware encoder for Vorbis, Opus (audio codec), AAC (Advanced Audio Coding), MP3, or FLAC (Free Lossless Audio Codec). The audio scenarios therefore always run on the CPU, and a GPU does not change the audio results. The output records this as `audio_gpu_acceleration: false`. See the [NVIDIA FFmpeg guide](https://docs.nvidia.com/video-technologies/video-codec-sdk/13.0/ffmpeg-with-nvidia-gpu/index.html) for the supported video codecs. #### NVIDIA GPUs Only The FFmpeg build in this image enables only NVIDIA's video acceleration: NVENC (NVIDIA Video Encoder) and NVDEC (NVIDIA Video Decoder). Other vendors' GPUs are not used. Within NVIDIA, the build targets datacenter GPUs; Jetson devices are not supported. #### Raw Results Only The output contains every measured repetition, but no headline score, peak, or summary statistic. Aggregate the repetitions yourself; see [Results](https://docs.sparecores.com/images/benchmark-ffmpeg.md#results). ### Design Constraints #### CPU and GPU Encode Quality NVENC has no CRF (Constant Rate Factor), the quality setting the CPU encodes use. The scenarios use the following settings: - CPU encodes: `libx264` and `libx265` with `-crf 18` and the encoders' default preset (medium). - GPU encodes: `h264_nvenc` and `hevc_nvenc` with `-preset p4 -rc vbr -cq 22 -b:v 0`, a CQ (Constant Quality) mode. A sweep of NVENC quality levels on the test clip found that `-cq 22` matched `libx264 -crf 18` most closely, at an SSIM to the source of about 0.9937 and a bitrate of about 4 Mbps. The match is approximate, not exact, so compare CPU and GPU encode rates with that in mind. See the [NVENC CQ sweep](https://docs.sparecores.com/images/benchmark-ffmpeg/design-history.md#nvenc-cq-sweep) for the data. #### GPU Coverage Before each scenario, a one-worker probe checks that it can run. A scenario whose probe fails is skipped with the error text as its `skip_reason`. This happens, for example, when a GPU cannot open an NVENC or NVDEC session. A missing GPU result therefore means the scenario could not run in that environment. GPU scenarios also need the NVIDIA driver's video libraries inside the container. Since [harness version 3.3.0](https://docs.sparecores.com/images/benchmark-ffmpeg/design-history.md#nvenc-quality-matched-to-cpu-encodes-and-gpu-driver-libraries-mounted), the image requests them itself; earlier production runs on many GPU servers skipped all GPU scenarios because these libraries were missing. Production results for GPUs are therefore incomplete until those servers are measured again. #### Computed Media Counts The `processed_frames` and `processed_audio_seconds` fields are computed from the media length each worker was asked to process, not read from FFmpeg's output: successful workers × media length (× the clip's frame rate, for video). A failed or timed-out worker adds no media, but the group's wall time still includes it, so failures lower the rate. --- ## llama.cpp Source: [`images/benchmark-llm/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark-llm) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark-llm:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark-llm). This benchmark measures single-stream LLM inference with `llama-bench` from llama.cpp. It downloads six 4-bit quantized models, ranging from 135 million to 70 billion parameters, and tests them from smallest to largest. It uses NVIDIA GPUs when the CUDA (Compute Unified Device Architecture) build of llama.cpp starts successfully; otherwise, it runs on the CPU. This benchmark reports speed in tokens per second for two tasks, prompt processing and text generation, each at several token counts. It prints one JSON line per model, task, and token count, with the values of five repetitions and their average. ### Purpose [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes empirical performance measurements for more than 5,000 cloud server types, including LLM inference speed from this benchmark: one score in tokens per second for each server type, model, task, and token count. In the [Navigator's Web UI](https://sparecores.com/servers), you can order the server list by one of these scores, and each server's details page charts all of them, for example [for `m7i.2xlarge`](https://sparecores.com/server/aws/m7i.2xlarge#llm_prompt_chart). We needed one method that could run on every server type, from hosts with less than 1 GB of RAM to hosts with terabytes of memory, hundreds of CPU cores, and several GPUs. We chose llama.cpp because it runs inference on both CPUs and GPUs with minimal tuning. The project also publishes container images for AMD64 and Arm64, a CUDA build, and the configurable `llama-bench` tool. For a single user, llama.cpp is often the fastest self-hosted option, so this benchmark measures one request stream at a time. For shared serving with many concurrent requests, vLLM is preferred; the [vLLM benchmarks](https://docs.sparecores.com/images/vllm-common.md) cover that case, but the Navigator does not show their results yet. ### Limitations These results compare single-stream LLM inference speed across server types. Note the following limitations: - **[Concurrent Serving](https://docs.sparecores.com/images/benchmark-llm/limitations.md#concurrent-serving):** This benchmark runs one `llama-bench` process at a time and sends no concurrent requests, so it does not measure serving throughput under load. - **[Output Quality](https://docs.sparecores.com/images/benchmark-llm/limitations.md#output-quality):** This benchmark measures speed in tokens per second, not the quality or accuracy of the model output. - **[Fixed Models and Build](https://docs.sparecores.com/images/benchmark-llm/limitations.md#fixed-models-and-build):** Every run uses the same six models, 4-bit quantization, and llama.cpp build `b4753`. Other models, quantization levels, and builds are not covered. - **[CPU or GPU Results](https://docs.sparecores.com/images/benchmark-llm/limitations.md#cpu-or-gpu-results):** On a GPU server, a score can come from the GPU or from the CPU fallback, and the Navigator does not mark which. Only NVIDIA GPUs are used, and only on AMD64. See also [GPU Coverage](https://docs.sparecores.com/images/benchmark-llm/limitations.md#gpu-coverage). - **[Missing Results](https://docs.sparecores.com/images/benchmark-llm/limitations.md#missing-results):** On slow servers, timeouts skip larger token counts and models, and the run still exits with code 0. The Navigator shows "no data" for the skipped results. - **[Downloads and Disk Space](https://docs.sparecores.com/images/benchmark-llm/limitations.md#downloads-and-disk-space):** The models are downloaded during the run, so a slow download can skip the largest models, even on a fast server. A model is also skipped if the disk has too little free space for it. ### Usage Run the image via Docker. Without GPU access, it runs the CPU build of llama.cpp: ```bash docker run --rm ghcr.io/sparecores/benchmark-llm:main > results.jsonl ``` The image downloads the models from Hugging Face while it runs, so it needs network access and up to \~58 GB of free disk space for all six models. It caches them in `/models`, a Docker volume. See [Model Downloads and Disk Space](https://docs.sparecores.com/images/benchmark-llm/usage.md#model-downloads-and-disk-space) to reuse downloaded models. To run on NVIDIA GPUs, the host needs the NVIDIA driver and the NVIDIA Container Toolkit. Pass the GPUs to the container. Only the AMD64 variant of `:main` includes the CUDA build: ```bash docker run --rm --gpus all ghcr.io/sparecores/benchmark-llm:main > results.jsonl ``` If the CUDA build cannot start inside the container, for example on a non-NVIDIA GPU or with NVIDIA driver issues, this benchmark falls back to the CPU build. The fallback does not replace the host requirements above. See [GPU Run](https://docs.sparecores.com/images/benchmark-llm/usage.md#gpu-run) for how it picks the build and the GPU layers. Production runs the container privileged, with host networking, and with the GPUs passed on GPU servers. A plain `docker run` uses neither privileged mode nor host networking. See [Production Setup](https://docs.sparecores.com/images/benchmark-llm/usage.md#production-setup) before you compare your results with the Navigator's. Sample production runs took about 18 to 32 minutes. Run time depends on the download speed, on the server's speed, and on how many models and token counts fit in their timeouts. See [Run Duration](https://docs.sparecores.com/images/benchmark-llm/usage.md#run-duration) for the timeouts. #### Settings Pass options after the image name. The following options are the most common; see the [full option reference](https://docs.sparecores.com/images/benchmark-llm/usage.md#options) for all options and defaults: - `--model-urls` replaces the default model list with URLs of GGUF (GGML Universal File) model files, separated by spaces and ordered from smallest to largest. - `--models-dir` sets the download and cache directory (default: `/models`). - `--benchmark-timeout-scale` multiplies every per-scenario timeout by an integer (default: 1). - `--download-timeout` sets the maximum wait for each model download (default: 900s). - `--version` prints the commit hash of llama.cpp build `b4753`, `51f311e0`, and exits. #### Results The process prints JSON Lines to stdout: one line per model, task, and token count, written as each measurement finishes. Logs go to stderr. The main fields of each line are the following: - `samples_ts` lists the speeds of the five repetitions in tokens per second, `avg_ts` their average, and `stddev_ts` their standard deviation. - `n_prompt` and `n_gen` identify the task: a prompt processing line has `n_gen: 0` and `n_prompt` tokens, and a text generation line has `n_prompt: 0` and `n_gen` tokens. - `model_filename`, `model_size` (in bytes), and `model_n_params` identify the model. - `backends` is `CUDA` or `CPU`, and `n_gpu_layers` is the number of model layers offloaded to the GPUs. The `gpu_info`, `cpu_info`, and `n_threads` fields describe the hardware used. - `samples_ns` gives the time of each repetition in nanoseconds, and `avg_ns` their average. For example, on an AWS (Amazon Web Services) [`m7i.2xlarge`](https://sparecores.com/server/aws/m7i.2xlarge#llm_prompt_chart), the 7B model processed a 512-token prompt at 53.75 tokens/s and generated 128 tokens at 7.71 tokens/s ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m7i.2xlarge/0/llm/stdout)). [LLM Prompt Processing of m7i.2xlarge](https://sparecores.com/embed/server/aws/m7i.2xlarge/llm_prompt) The process exits with code 0 even when it skipped models or token counts, so check which lines are present, and the reasons logged to stderr. On `SIGINT` or `SIGTERM`, it exits with code 128 plus the signal number. Resource usage is recorded with `resource-tracker`, which [streams it](https://sparecores.com/article/resource-tracker-rs#streaming-to-sentinel) to the [Spare Cores Sentinel](https://sentinel.sparecores.com/) platform for the team's own monitoring. It is not published. ### Workloads Each model runs the following two tasks, in this order: - **[Prompt Processing](https://docs.sparecores.com/images/benchmark-llm/workloads.md#prompt-processing):** processes a prompt of 16 to 16,384 tokens without generating any (`-p -n 0`). - **[Text Generation](https://docs.sparecores.com/images/benchmark-llm/workloads.md#text-generation):** generates 16 to 4,096 tokens without a prompt (`-n -p 0`). Each token count runs as a separate `llama-bench` process with its own timeout. See [Models](https://docs.sparecores.com/images/benchmark-llm/workloads.md#models) for the six default models, and [Timeouts and Early Stops](https://docs.sparecores.com/images/benchmark-llm/workloads.md#timeouts-and-early-stops) for how slow servers skip larger token counts and models. ### Design History We selected widely used LLMs ranging from 135 million to 70 billion parameters. Their 4-bit quantized versions use less memory and load faster. We chose llama.cpp because it runs on CPUs and GPUs across the full range of server types. We pinned build `b4753`, the latest build that worked in our initial tests. We do not plan to update the pinned build: comparable results would require rerunning the benchmark on every server type already measured, potentially costing tens of thousands of US dollars. We would reconsider if a newer build materially changed the performance differences between server types, not just their overall speed. Long prompts can take hours to process on slow servers. We therefore expect speed to increase with token count: 1 token/s may be acceptable for a short response, but not for batch processing long inputs. In experiments across several cloud server types, speed usually increased with token count up to 1,024 tokens, so early stops begin at that size. In production, speed and download time limit how many models a server completes. On an AWS [`c7g.large`](https://sparecores.com/server/aws/c7g.large), the 7B model timed out on its first scenario ([recorded log](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c7g.large/0/llm/stderr)), and on a [`c9g.48xlarge`](https://sparecores.com/server/aws/c9g.48xlarge), this benchmark gave up the 70B model's download at 25.7 MiB/s ([recorded log](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c9g.48xlarge/0/llm/stderr)). See the [LLM inference speed](https://sparecores.com/article/llm-inference-speed) article for the methodology and results in more detail. ### References This image's [Glossary](https://docs.sparecores.com/images/benchmark-llm/glossary.md) defines its own terms. ### Contributing To change or rebuild this image, see the [contributor guide](https://docs.sparecores.com/images/benchmark-llm/contributors.md). --- ## Usage (llama.cpp) ### CPU Run Run the image via Docker without options to measure the default models on the CPU: ```bash docker run --rm ghcr.io/sparecores/benchmark-llm:main > results.jsonl ``` No options or environment variables are required. The `:main` tag has variants for AMD64 and Arm64, and Docker pulls the variant for the host's architecture. The Arm64 variant always uses the CPU build of llama.cpp, and the AMD64 variant uses it when the CUDA (Compute Unified Device Architecture) build cannot start, for example without GPUs. The `--version` option prints the commit hash of the llama.cpp build, `51f311e0`, and exits: ```bash docker run --rm ghcr.io/sparecores/benchmark-llm:main --version ``` ### GPU Run To run on NVIDIA GPUs, the host needs the NVIDIA driver and the NVIDIA Container Toolkit. Pass the GPUs to the container: ```bash docker run --rm --gpus all ghcr.io/sparecores/benchmark-llm:main > results.jsonl ``` Only the AMD64 variant of `:main` includes the CUDA build. At startup, [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-llm/benchmark.py) runs `llama-cli --version` from the CUDA build. If it succeeds, this benchmark uses the CUDA build. If it fails, for example on a non-NVIDIA GPU or with NVIDIA driver issues, this benchmark uses the CPU build. This fallback runs inside the container, so it does not replace the host requirements above. The choice is logged to stderr, and each output line records it in `backends` (`CUDA` or `CPU`). With the CUDA build, this benchmark then finds how many layers of each model fit on the GPUs; see [GPU Layers](https://docs.sparecores.com/images/benchmark-llm/workloads.md#gpu-layers). ### Model Downloads and Disk Space This benchmark downloads models from Hugging Face while it runs. It needs network access to `huggingface.co` and to the Hugging Face CDN (Content Delivery Network), such as `us.aws.cdn.hf.co`, unless the files are already in `--models-dir` (default: `/models`). Downloads run one at a time in the background while the benchmark measures models that have already finished downloading. Each file is first saved as `.part` and renamed when the download completes. The `/models` folder is a Docker volume, so a plain run downloads the models again each time. To reuse them across runs, mount a host directory on it: ```bash docker run --rm -v "$PWD/models:/models" ghcr.io/sparecores/benchmark-llm:main > results.jsonl ``` Together, the six default models take \~58 GB, the largest \~42 GB. Before each download, this benchmark reads the file size from Hugging Face and skips the model if the free space is less than the file size plus 10%. The check reads the free space of the container's root filesystem (`/`), not of `--models-dir`, so with a separately mounted models directory, it does not reflect that directory's free space. Check the free space of the mounted directory yourself. The `--download-timeout` option (default: 900s) limits the wait for each model. Once at least one download has finished, this benchmark also estimates from the average download speed whether the next model can finish downloading within that time. If a model would miss that limit, or is still downloading when the wait ends, this benchmark stops the downloads and exits with code 0, skipping that model and all larger ones. The check runs only after all earlier models have been measured, so their results are complete. On `SIGINT` or `SIGTERM`, this benchmark deletes the incomplete `.part` files and exits with code 128 plus the signal number. ### Run Duration Run time depends on the download speed, on the server's speed, and on how many models and token counts fit in their timeouts; see [Timeouts and Early Stops](https://docs.sparecores.com/images/benchmark-llm/workloads.md#timeouts-and-early-stops). Sample production runs on AWS (Amazon Web Services) took the following times. Each server type links to its LLM scores in [Spare Cores Navigator](https://docs.sparecores.com/overview), and each run to its production output: - [`c7g.large`](https://sparecores.com/server/aws/c7g.large#llm_prompt_chart): 18 min, stopped at the 7B model ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c7g.large/0/llm/meta.json)) - [`c9g.48xlarge`](https://sparecores.com/server/aws/c9g.48xlarge#llm_prompt_chart): 26 min, stopped at the 70B model's download ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c9g.48xlarge/0/llm/meta.json)) - [`m7i.2xlarge`](https://sparecores.com/server/aws/m7i.2xlarge#llm_prompt_chart): 31 min ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m7i.2xlarge/0/llm/meta.json)) - [`g4dn.xlarge`](https://sparecores.com/server/aws/g4dn.xlarge#llm_prompt_chart) with an NVIDIA GPU: 32 min ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/g4dn.xlarge/0/llm/meta.json)) To give slower servers more time, raise `--benchmark-timeout-scale`, which multiplies every measurement's timeout without changing the `llama-bench` options. Such a run can then measure models and token counts that a default run skips. ### Production Setup The Navigator's Inspector ([`sc-inspector`](https://github.com/SpareCores/sc-inspector)) runs this image on every server type except those on the [`inspector_rules.py`](https://github.com/SpareCores/sc-crawler/blob/main/src/sc_crawler/inspector_rules.py) blocklist, with the following settings: | Setting | Production | Plain `docker run` | | --- | --- | --- | | Privileges | Privileged | Not privileged | | Networking | Host networking | Docker's default bridge network | | GPUs | All GPUs, as with `--gpus all`. If that run fails or times out, it is retried without GPUs. | None, unless `--gpus` is passed | | Overall timeout | 1.5 hours | None, only per-measurement and download timeouts | | Memory minimum | Skips servers with less than 1 GiB | None | | Options | None, so the default models and timeouts | As passed | To reproduce the container settings above, run the following command on a server with GPUs. Omit `--gpus all` on a server without GPUs: ```bash docker run --rm --privileged --network host --gpus all ghcr.io/sparecores/benchmark-llm:main > results.jsonl ``` We investigate failed production runs, manually or semi-automatically, and then run them again. Until then, a server type's latest result in `sc-inspector-data` can be a failed or partial run. ### Options Pass the following options after the image name. This benchmark has no environment variables of its own. See [Results](https://docs.sparecores.com/images/benchmark-llm.md#results) for the output fields. | Option | Meaning | Default | | --- | --- | --- | | `--model-urls` | URLs of GGUF (GGML Universal File) model files to download and measure, in order, separated by spaces after one flag. Order them from smallest to largest: a model that fails its first measurement stops the run. | The six [default models](https://docs.sparecores.com/images/benchmark-llm/workloads.md#models) | | `--models-dir` | Directory to download and cache the models in. | `/models` | | `--benchmark-timeout-scale` | Integer that multiplies every measurement's timeout. | `1` | | `--download-timeout` | Maximum wait for each model download in seconds. This benchmark also gives up a model when its remaining download, at the average speed of the earlier downloads, would take longer. | `900` | | `--version` | Print the llama.cpp commit hash and exit; `unknown` if it cannot be read. | Off | To measure other models, pass their URLs after one `--model-urls` flag. For example, the following command measures only the two smallest default models: ```bash docker run --rm ghcr.io/sparecores/benchmark-llm:main --model-urls \ https://huggingface.co/QuantFactory/SmolLM-135M-GGUF/resolve/b35f229108e4c5a4deeccccf9bf75cd46006fa7b/SmolLM-135M.Q4_K_M.gguf \ https://huggingface.co/Qwen/Qwen1.5-0.5B-Chat-GGUF/resolve/cfab082d2fef4a8736ef384dc764c2fb6887f387/qwen1_5-0_5b-chat-q4_k_m.gguf \ > results.jsonl ``` --- ## Workloads (llama.cpp) ### How a Run Works Each run of the [harness](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-llm/benchmark.py) goes through the following steps: 1. It logs the CPU model and flags to stderr, and picks the CUDA (Compute Unified Device Architecture) or the CPU build of llama.cpp; see [GPU Run](https://docs.sparecores.com/images/benchmark-llm/usage.md#gpu-run). 2. It starts downloading all models in one background process, at low priority (`nice 19`), one after another in list order. Model files already in `--models-dir` are reused. 3. For each model, in list order, it waits for the model's download, finds the number of [GPU layers](#gpu-layers) (CUDA build only), and then runs [prompt processing](#prompt-processing) and [text generation](#text-generation), each over increasing token counts. Each measurement of one model, task, and token count runs as a separate `llama-bench` process, one at a time, so that it can have its own timeout. A timeout or failure skips the rest of the task or the run; see [Timeouts and Early Stops](#timeouts-and-early-stops). ### Models The default models are the following GGUF (GGML Universal File) files, from smallest to largest. The file sizes are approximate: | Model | Parameters | Quantization | File size | Download | | --- | --- | --- | --- | --- | | SmolLM | 135M | `Q4_K_M` | \~100 MB | [GGUF](https://huggingface.co/QuantFactory/SmolLM-135M-GGUF/resolve/b35f229108e4c5a4deeccccf9bf75cd46006fa7b/SmolLM-135M.Q4_K_M.gguf) | | Qwen1.5-Chat | 0.5B | `Q4_K_M` | \~400 MB | [GGUF](https://huggingface.co/Qwen/Qwen1.5-0.5B-Chat-GGUF/resolve/cfab082d2fef4a8736ef384dc764c2fb6887f387/qwen1_5-0_5b-chat-q4_k_m.gguf) | | Gemma | 2B | `Q4_K_M` | \~1.5 GB | [GGUF](https://huggingface.co/mlabonne/gemma-2b-GGUF/resolve/8dd617a80664da2853999b6b1206595f1c33daa2/gemma-2b.Q4_K_M.gguf) | | LLaMA | 7B | `Q4_K_M` | \~4 GB | [GGUF](https://huggingface.co/TheBloke/LLaMA-7b-GGUF/resolve/0a1200190c8c1baafaa0b496c599ba68ad3d4056/llama-7b.Q4_K_M.gguf) | | Phi-4 | 14B | 4-bit (`q4`) | \~9 GB | [GGUF](https://huggingface.co/microsoft/phi-4-gguf/resolve/b1e764cfdbdd0a3ed824d6a8424129eb0a2232ff/phi-4-q4.gguf) | | Llama-3.3-Instruct | 70B | `Q4_K_M` | \~42 GB | [GGUF](https://huggingface.co/unsloth/Llama-3.3-70B-Instruct-GGUF/resolve/7bcd751e48e909680bd2168359dcf7fb53b12da8/Llama-3.3-70B-Instruct-Q4_K_M.gguf) | Each URL is pinned to a commit of its Hugging Face repository, so every run downloads the same files. The order matters: a model that fails its first measurement stops the run and skips all larger models. ### Prompt Processing Prompt processing measures how fast the model reads its input. Each measurement processes a prompt of 16, 128, 512, 1,024, 4,096, or 16,384 tokens without generating any (`llama-bench -p -n 0`). Its output lines have `n_gen: 0`, and `n_prompt` is the token count. ### Text Generation Text generation measures how fast the model writes its output, one token after another. Each measurement generates 16, 128, 512, 1,024, or 4,096 tokens without a prompt (`llama-bench -n -p 0`). Its output lines have `n_prompt: 0`, and `n_gen` is the token count. ### llama-bench Settings Every `llama-bench` measurement uses the following settings, set in [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-llm/benchmark.py): | Setting | Option | Value | | --- | --- | --- | | Threads | `-t` | The number of physical CPU cores, as `psutil` counts them; recorded as `n_threads` | | Split mode | `-sm` | `layer` | | Flash attention | `-fa` | `1` (on) | | Logical batch size | `-b` | 2,048 | | Physical batch size | `-ub` | 512 | | Repetitions | `-r` | Not set, so `llama-bench`'s default applies; production output has five repetitions per line | | Output | `-o` | `jsonl` (JSON Lines), printed to stdout as is | ### GPU Layers With the CUDA build, this benchmark sets how many model layers to offload to the GPUs (`-ngl`) before it measures each model. It tries 999, 40, 24, and 12, in this order. For each value, it runs `llama-bench` with one repetition, one thread, and a fixed timeout of 120 seconds, and uses the first value whose run succeeds. If none succeeds, or with the CPU build, it uses 0. The value is recorded as `n_gpu_layers`. ### Timeouts and Early Stops Each measurement's timeout in seconds depends on the model size, the token count, and the expected speed for that task and token count: ```text timeout = round((model_GiB / 0.25 + 1 + 5 × tokens / expected_speed) × scale) ``` The `model_GiB` variable is the model file's size in GiB. The formula allows 4 seconds per GiB to load the model, 1 second of overhead, and five repetitions at the expected speed. The `scale` variable is the value of `--benchmark-timeout-scale` (default: 1). The expected speeds rise with the token count: | Tokens | Prompt processing (tokens/s) | Text generation (tokens/s) | | --- | --- | --- | | 16 | 2 | 1 | | 128 | 10 | 5 | | 512 | 25 | 25 | | 1,024 | 50 | 50 | | 4,096 | 250 | 250 | | 16,384 | 1,000 | Not run | For example, text generation of 16 tokens with a model of 4 GiB gets `4 / 0.25 + 1 + 5 × 16 / 1 = 97` seconds, and at 512 tokens 119 seconds. A server that generates 15 tokens/s needs \~171 seconds for the five repetitions at 512 tokens, so its measurement times out and the larger token counts of that task are skipped. The load allowance adds some slack: a server slightly below the expected speed can still finish in time. After a successful measurement of 1,024 or more tokens that is not the last of its task, this benchmark also estimates whether the next token count can meet its expected speed. If the measurement took longer than the following limit, the remaining token counts of that task are skipped: ```text limit = timeout × expected_speed / next_expected_speed × 1.1 ``` The `timeout` and `expected_speed` variables are those of the measurement that just ran, and `next_expected_speed` is the expected speed of the next token count. For prompt processing at 1,024 tokens, that limit is 22% of the timeout (50 / 250 × 1.1). When a measurement times out or fails, the following happens: - On the first, 16-token measurement of either task, this benchmark stops and skips all larger models. - On a later token count, the remaining token counts of that task are skipped for that model. To allow slower servers more time, raise `--benchmark-timeout-scale`. See [Missing Results](https://docs.sparecores.com/images/benchmark-llm/limitations.md#missing-results) for the other reasons a run can stop early and how [Spare Cores Navigator](https://docs.sparecores.com/overview) shows them. --- ## Limitations (llama.cpp) ### Disclaimer: What This Benchmark Does *Not* Deliver #### Concurrent Serving This benchmark runs one `llama-bench` process at a time, and the [harness](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-llm/benchmark.py) sends no concurrent requests. The results show the speed a single user gets from a model, *not* the throughput of a server that answers many requests at once, such as a shared LLM service. For a single user, llama.cpp is often the fastest self-hosted option, but it does not scale as well to many concurrent requests, where vLLM is preferred. The [vLLM benchmarks](https://docs.sparecores.com/images/vllm-common.md) measure that case; [Spare Cores Navigator](https://docs.sparecores.com/overview) does not show their results yet. #### Output Quality This benchmark measures speed in tokens per second. It does *not* check the quality or accuracy of the model output. ### Scope Decisions #### Fixed Models and Build Every run uses the same six models, all 4-bit quantized, and the same llama.cpp build, `b4753` (commit `51f311e0`). The models are a diverse set of widely used LLMs, from 135 million to 70 billion parameters, and their quantized versions need much less memory and load faster. See [Models](https://docs.sparecores.com/images/benchmark-llm/workloads.md#models) for the list. Other models, quantization levels, and llama.cpp builds are not covered. We do not plan to update the build or the models, because comparable results would need a rerun on every server type already measured. A newer llama.cpp build may be faster in general; the published results show the differences between server types at build `b4753`. The `--model-urls` option replaces the model list for your own runs. The results of such a run are not comparable with the Navigator's. #### CPU or GPU Results On AMD64, this benchmark first tries the CUDA (Compute Unified Device Architecture) build of llama.cpp, and falls back to the CPU build if it cannot start, for example on a non-NVIDIA GPU or with NVIDIA driver issues. Production also retries a failed GPU run without GPUs. See [GPU Run](https://docs.sparecores.com/images/benchmark-llm/usage.md#gpu-run) and [Production Setup](https://docs.sparecores.com/images/benchmark-llm/usage.md#production-setup). The Navigator publishes the score measured on a server type, without marking whether it came from the GPU or the CPU. Each output line records it in `backends` (`CUDA` or `CPU`), but this field is not published. #### GPU Coverage Only NVIDIA GPUs are used, through CUDA. The Arm64 image has no CUDA build, so it always runs on the CPU. When a model does not fit in GPU memory, this benchmark offloads fewer of its layers to the GPUs, and the remaining layers stay on the CPU. Such a score depends on both, and `n_gpu_layers` in the output shows how many layers were offloaded. See [GPU Layers](https://docs.sparecores.com/images/benchmark-llm/workloads.md#gpu-layers). ### Design Constraints #### Missing Results A slow server cannot spend hours on long prompts or large models, so every measurement has a timeout, and the following rules skip the rest of a run: - If the first, 16-token measurement of either task fails or times out, this benchmark stops and skips all larger models. - If a later token count fails or times out, the remaining token counts of that task are skipped for that model. - If a measurement of 1,024 or more tokens takes too long to meet the next token count's expected speed, the remaining token counts of that task are skipped. - If a model would not finish downloading within `--download-timeout`, the run stops, so that model and all larger ones are skipped. - If the disk has too little free space for a model, only that model is skipped, and the run continues with the next one. The next default models are larger, so they are skipped too. All of these paths exit with code 0, so a run with missing results looks like a successful run. See [Timeouts and Early Stops](https://docs.sparecores.com/images/benchmark-llm/workloads.md#timeouts-and-early-stops) for the timeouts. The Navigator shows "no data" for a missing score, because the cause is not recorded: the server can be too slow, the run can have failed, or the model can have been skipped. The Navigator's LLM workload profile includes a penalty when the smaller models have scores but the larger ones are missing, because then the larger models could not load or finish in time. For example, the [AWS (Amazon Web Services) `c7g.large` page](https://sparecores.com/server/aws/c7g.large) has scores for the smaller models only. [Workload Profiles of c7g.large](https://sparecores.com/embed/server/aws/c7g.large/workload_profile) #### Downloads and Disk Space The models are downloaded from Hugging Face during the run, not built into the image, so download speed affects which models a run reaches. In production, an AWS [`c9g.48xlarge`](https://sparecores.com/server/aws/c9g.48xlarge) downloaded at 25.7 MiB/s and gave up the 70B model, whose file is \~42 GB ([recorded log](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c9g.48xlarge/0/llm/stderr)). Its [LLM scores](https://sparecores.com/server/aws/c9g.48xlarge#llm_prompt_chart) stop at the 14B model. [LLM Prompt Processing of c9g.48xlarge](https://sparecores.com/embed/server/aws/c9g.48xlarge/llm_prompt) Together, the six default models take \~58 GB of disk space. This benchmark checks the free space of the container's root filesystem, not of `--models-dir`; see [Model Downloads and Disk Space](https://docs.sparecores.com/images/benchmark-llm/usage.md#model-downloads-and-disk-space). --- ## PassMark(Images) Source: [`images/benchmark-passmark/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark-passmark) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark-passmark:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark-passmark). This benchmark measures CPU and memory performance with PassMark's `pt_linux` (PerformanceTest for Linux). It runs PassMark's CPU and memory test suites unattended, with PassMark's default test duration and iteration count, and passes PassMark's own results file through unchanged. It reports the CPU Mark and Memory Mark composite scores, together with the individual CPU and memory test results behind them, as a YAML document. [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes both marks and 14 of the individual test results; its [Benchmark Workloads](https://sparecores.com/navigator/benchmark-workloads) page describes each test and shows its score distribution. ### Purpose This benchmark compares server types on the following PassMark tests, which the Navigator publishes: - **[CPU tests](https://sparecores.com/servers?benchmark=eyJpZCI6InBhc3NtYXJrOmNwdV9tYXJrIiwiY29uZmlnIjoie30ifQ%3D%3D&order_by=selected_benchmark_score&order_dir=desc):** integer and floating-point math, prime numbers, string sorting, encryption, compression, physics, extended instructions, and a single-threaded test. - **[Memory tests](https://sparecores.com/servers?benchmark=eyJpZCI6InBhc3NtYXJrOm1lbW9yeV9tYXJrIiwiY29uZmlnIjoie30ifQ%3D%3D&order_by=selected_benchmark_score&order_dir=desc):** database operations, cached and uncached reads, writes, and latency. The Navigator already publishes other CPU and memory benchmarks. It adds PassMark because a run is short (2 to 3 minutes), the self-hosting community uses PassMark widely, and some of its tests, such as Database Operations, cover workloads that the other benchmarks do not. It runs PassMark's tests without changing them, so PassMark, not Spare Cores, computes the composite scores. ### Limitations These results compare servers on PassMark's synthetic CPU and memory tests, not on application throughput, and they exclude [disk](https://docs.sparecores.com/images/benchmark-storage.md), network, and GPU performance. The main limitations are the following: - **Scaling:** Many PassMark tests, including Database Operations, do not scale well above 32 vCPUs. Memory Mark does not scale well above 16 vCPUs: its scores plateau and may even degrade as the vCPU count increases. Production runs this benchmark only on servers with at most 32 vCPUs; the image does not enforce this limit and runs on any server. - **[PassMark Version](#passmark-version):** The image downloads the latest PassMark release when it is built, without a version pin, so a rebuild can change the PassMark build that produces the scores. - **[Default Test Settings](#settings):** This benchmark passes no test duration or iteration options, so PassMark's defaults apply: in production output, one iteration at the `Medium` test duration. This benchmark runs it once, with no repetitions. - **[Number of Test Processes](https://docs.sparecores.com/images/benchmark-passmark/usage.md#results):** PassMark chooses how many test processes to run; this benchmark does not set it. On [`aws/a1.2xlarge`](https://sparecores.com/server/aws/a1.2xlarge) (8 vCPUs), PassMark ran eight processes ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/a1.2xlarge/0/passmark/stdout)). - **Exit Code:** The exit code is that of printing the results file, not of PassMark. A run that writes no results file exits with an error, but a failed PassMark run that still writes the file exits with code 0. ### Usage Run the image via Docker, and save the results file from stdout: ```bash docker run --rm --privileged ghcr.io/sparecores/benchmark-passmark:main > results.yml ``` The harness runs PassMark at the highest scheduling priority (`nice -n -20`), which needs the `CAP_SYS_NICE` capability that `--privileged` grants. Production runs the container the same way and also sets host networking (`--network host`). The container entrypoint runs this benchmark under `resource-tracker`, which samples resource usage during the run. Its data is not published. The image is built for `amd64` and `arm64`. A run took about 3 minutes on `aws/a1.2xlarge` ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/a1.2xlarge/0/passmark/meta.json)). Production allows up to 1 hour, because PassMark can be slow on some servers. #### Settings This benchmark reads no environment variables or command-line options. The suite selection depends only on the available memory (see [Workload](#workload)), and PassMark's own test settings are left at their defaults. #### Results This benchmark prints PassMark's YAML results file to stdout, with the CPU Mark in `Results.SUMM_CPU` and the Memory Mark in `Results.SUMM_ME`. See [Results](https://docs.sparecores.com/images/benchmark-passmark/usage.md#results) for the file's top-level keys and the individual test results the Navigator publishes, with their units. #### PassMark Version PassMark publishes no versioned download URLs, so the image downloads the current release from `passmark.com` at build time. Production results come from two builds of PassMark PerformanceTest for Linux 11.0, `1002` and `1004`; check `Version.Build` in the output to see which build produced a result. We treat scores from these two builds as comparable. The [PerformanceTest version history](https://www.passmark.com/products/performancetest/history.php) lists no CPU or memory test changes in builds 1003 and 1004, but it covers PerformanceTest for Windows; PassMark publishes no version history for the Linux builds. ### Workload This benchmark runs one workload: PassMark's CPU and memory suites, in PassMark's unattended mode. [`passmark.sh`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-passmark/passmark.sh) runs the following steps: 1. Read the available memory in MiB from `free -m`. 2. Start `pt_linux` under `nice -n -20`, with the suites chosen by available memory: - 512 MiB or more: `pt_linux -r 3`, both the CPU and memory suites. - Below 512 MiB: `pt_linux -r 1`, the CPU suite only. No cloud server has less than 512 MiB of memory, so in practice production runs both suites. 3. Wait for PassMark to finish, then print its results file to stdout. The [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-passmark/Dockerfile) sets `TERM=xterm`, because PassMark expects a terminal. PassMark writes the results file to the container's working directory. ### References This image's [Glossary](https://docs.sparecores.com/images/benchmark-passmark/glossary.md) defines its own terms. ### Contributing See the [contributor guide](https://docs.sparecores.com/images/benchmark-passmark/contributors.md) for building the image. --- ## Usage (PassMark) ### Results This benchmark prints PassMark's YAML results file to stdout: `results_all.yml` when it runs both suites, or `results_cpu.yml` when it runs the CPU suite only. PassMark's interactive terminal interface, including its terminal escape sequences, goes to stderr; redirect it to a file or `/dev/null` if it is not needed. The YAML document has the following top-level keys: - `Version` holds the PassMark version, such as `Major: 11`, `Minor: 0`, and `Build: 1002`, and the architecture of the binary in `ptArchitecture`. - `Results` holds the scores, along with `NumTestProcesses`, the number of test processes PassMark ran. - `SystemInformation` holds the OS, kernel, processor, core counts, and memory that PassMark detected. - `BaselineInfo` and `Checksum` are PassMark's own metadata for the results file. [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes the following `Results` fields, each as a `passmark:` benchmark. Lower is better for Memory Latency; for the others, higher is better: | Field | Navigator name | Unit | | ----- | -------------- | ---- | | `SUMM_CPU` | CPU Mark | composite score, no unit | | `CPU_INTEGER_MATH` | CPU Integer Maths Test | Mops/s (Million Operations/s) | | `CPU_FLOATINGPOINT_MATH` | CPU Floating Point Maths Test | Mops/s | | `CPU_PRIME` | CPU Prime Numbers Test | Mnums/s (Million Primes/s) | | `CPU_SORTING` | CPU String Sorting Test | Kstrings/s (Thousand Strings/s) | | `CPU_ENCRYPTION` | CPU Encryption Test | MB/s | | `CPU_COMPRESSION` | CPU Compression Test | kB/s | | `CPU_SINGLETHREAD` | CPU Single Threaded Test | Mops/s | | `CPU_PHYSICS` | CPU Physics Test | fps (Frames Per Second) | | `CPU_MATRIX_MULT_SSE` | CPU Extended Instructions Test | Mmat/s (Million Matrices/s) | | `SUMM_ME` | Memory Mark | composite score, no unit | | `ME_ALLOC_S` | Database Operations | Kops/s (Thousand Operations/s) | | `ME_READ_S` | Memory Read Cached | MB/s | | `ME_READ_L` | Memory Read Uncached | MB/s | | `ME_WRITE` | Memory Write | MB/s | | `ME_LATENCY` | Memory Latency | ns | Memory Read Cached, Memory Read Uncached, Memory Write, and Memory Latency are largely independent of the vCPU count within an instance family; they mainly reflect the hardware generation and memory characteristics. The other `Results` fields, such as `CPU_avx`, `m_CPU_enc_AES`, `ME_LARGE`, and `ME_THREADED`, are in the output but not published. For example, on [`aws/a1.2xlarge`](https://sparecores.com/server/aws/a1.2xlarge) (8 vCPUs), `SUMM_CPU` is \~3170 and `SUMM_ME` is \~1418 ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/a1.2xlarge/0/passmark/stdout)). ### Environment Variables This benchmark reads no environment variables. --- ## PostgreSQL (pgbench) Source: [`images/benchmark-pgbench-postgres/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark-pgbench-postgres) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark-pgbench-postgres:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark-pgbench-postgres). This benchmark uses `pgbench` to measure database performance, focusing on CPU and memory rather than disk. It supports two modes: - In standalone mode, the image starts a local PostgreSQL 18 server. - In remote mode, it connects to a configured host without checking or enforcing the server version. The image can run on the same node as the database or on a separate machine. This benchmarking tool reports throughput in TPM (Transactions Per Minute) and latency at several client counts. Together, they show peak performance and how it scales with load, for self-managed and managed PostgreSQL on the same hardware. ### Purpose [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes empirical performance measurements for more than 5,000 cloud server types. We needed an RDBMS (Relational Database Management System) benchmark that measures database throughput and latency directly rather than relying on proxies. The Navigator previously relied on stand-ins: PassMark database operations, which do not scale above 32 vCPUs; [Redis](https://docs.sparecores.com/images/benchmark-redis.md), which is not relational; and raw CPU speed and [memory bandwidth](https://docs.sparecores.com/images/benchmark/bw-mem.md), which are useful proxies but not database workloads. The main design goal is one methodology that scales across server sizes, from small instances (for example, 1 vCPU and 2 GiB of RAM) to large nodes with hundreds of vCPUs. This benchmark measures two deployment models: - **IaaS (Infrastructure as a Service):** Self-hosted PostgreSQL, with the client and database on the same node. - **DBaaS (Database as a Service):** Provider-managed PostgreSQL, with a separate client VM; the provider provisions, manages, and tunes the database engine. ### Limitations These results compare PostgreSQL server CPU and memory performance, not application throughput. The main limitations are: - **[Workload](https://docs.sparecores.com/images/benchmark-pgbench-postgres/limitations.md#disclaimer-what-this-benchmark-does-not-deliver):** `pgbench_ro` uses synthetic transactions and uniform data; the results do not specifically predict any given application's throughput, but aim to provide meaningful comparisons across different server types. - **[Disk and Network](https://docs.sparecores.com/images/benchmark-pgbench-postgres/limitations.md#disk-io-speed):** The score excludes disk I/O (Input/Output) performance and does not measure network throughput or latency. See also [Network Performance](https://docs.sparecores.com/images/benchmark-pgbench-postgres/limitations.md#network-performance). - **[Memory](https://docs.sparecores.com/images/benchmark-pgbench-postgres/limitations.md#memory-fit-small-dataset):** The dataset takes about 303 MiB, and production runs this benchmark only on servers with at least 2 GiB of RAM. The image enforces no minimum, so on smaller hosts disk reads can influence the score. - **[Engine Tuning](https://docs.sparecores.com/images/benchmark-pgbench-postgres/usage.md#standalone-mode):** When `SC_DB_HOST` is unset, the image starts PostgreSQL locally and tunes it with `pgtune`. A remote `SC_DB_HOST` target is not tuned by this benchmark. See also [Engine Configuration](https://docs.sparecores.com/images/benchmark-pgbench-postgres/limitations.md#engine-configuration) for why managed engines are left untuned. **Note:** Only the PostgreSQL major version is fixed: minor versions may vary between builds of the image and on DBaaS providers that do not support pinning. See [Minor Engine Versions](https://docs.sparecores.com/images/benchmark-pgbench-postgres/limitations.md#minor-engine-versions) for details. ### Usage Run the image via Docker. Without `SC_DB_HOST`, it starts a local PostgreSQL 18 server in the container (standalone mode): ```bash docker run --rm ghcr.io/sparecores/benchmark-pgbench-postgres:main ``` Do not limit memory with `--memory`: the local server is tuned for the host's full memory. See [Standalone Mode](https://docs.sparecores.com/images/benchmark-pgbench-postgres/usage.md#standalone-mode). Production runs the container privileged, which lets the harness start `postgres` at a higher priority (`nice -n -20`); with a plain `docker run`, it runs at normal priority. See [Production Setup](https://docs.sparecores.com/images/benchmark-pgbench-postgres/usage.md#production-setup) before comparing scores with the Navigator's. Set `SC_DB_HOST` to benchmark a remote PostgreSQL server instead. A remote run needs more setup: database privileges, a disposable benchmark database, and the server's vCPU count. Follow [Remote Mode](https://docs.sparecores.com/images/benchmark-pgbench-postgres/usage.md#remote-mode) for more details and settings. Both modes need outbound HTTPS access to the Spare Cores CDN (Content Delivery Network) to download the dataset; the run fails if the CDN is unreachable. A default run takes about 25 minutes on servers with 4 or more vCPUs: a 2-minute warmup, 1-minute settle periods, and 5 minutes of measurement at each of four client counts. See [Run Duration](https://docs.sparecores.com/images/benchmark-pgbench-postgres/usage.md#run-duration) for the steps and how to change them. #### Settings Common settings for `pgbench_ro` are listed here; see the [full environment-variable reference](https://docs.sparecores.com/images/benchmark-pgbench-postgres/usage.md#environment-variables) for all options and defaults: - `SC_DB_HOST`, `SC_DB_PORT`, `SC_DB_USER`, and `SC_DB_PASSWORD` configure a remote connection; leave `SC_DB_PORT` and `SC_DB_USER` unset in standalone mode. `SC_DB_SSLMODE` sets the SSL (Secure Sockets Layer) mode for the dataset restore and dump connections and for the connection that drops and recreates the benchmark database. It does not set the mode for `pgbench`. - `SC_DB_VCPUS` sets the database vCPU count used to derive concurrency points and local server settings in standalone mode. For remote targets, set it to the database server's vCPU count. The default is the client host's logical CPU count. - `SC_CPU_SCALE` changes `pgbench_ro` transaction work. - `SC_RUN_SECONDS`, `SC_WARMUP_SECONDS`, and `SC_SETTLE_SECONDS` control measurement and warmup timing. #### Results The process prints nothing until the run ends, then prints one JSON object to stdout; a default run can stay silent for about 25 minutes. Errors go to stderr. In standalone mode, the PostgreSQL server log is written to `/tmp/pg-server.log` inside the container, so drop `--rm` to keep it after the run. The JSON object's main fields are the following: - `score` is the highest TPM result; `score_unit` is `tpm`, and `peak_concurrency` is the client count for that result. - Each `sizes[]` entry represents a workload size and has its own score and `profile`. Entries of `pgbench_ro` identify `cpu_scale`; entries of `pgbench_tpcb` identify `scalefactor`. - Each `profile[]` entry is one concurrency measurement. The `concurrency` field is the client count, and `jobs` is the worker count. For `pgbench_ro`, [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-pgbench-postgres/benchmark.py) derives four fixed points from the database vCPU count (`V`): `1`, `V/2` (rounded down), `V`, and `2·V`. It caps worker jobs at 32. For how `pgbench_tpcb` picks its client counts, see [`pgbench_tpcb`](https://docs.sparecores.com/images/benchmark-pgbench-postgres/workloads.md#pgbench_tpcb). - `latency_ms` contains sampled p50, p95, and p99 (50th, 95th, and 99th percentile) latency, plus the average, in milliseconds. The harness samples 1% of transaction latency logs. - `schema_gib` (`0.17`) in `pgbench_ro` output is a legacy constant, not the dataset size; the restored database is about 303 MiB. ### Workloads The image supports the following workloads with different transaction patterns: - **[`pgbench_ro`](https://docs.sparecores.com/images/benchmark-pgbench-postgres/workloads.md#pgbench_ro) (default):** Runs a custom, read-only transaction over a fixed schema, spreading work across eight PostgreSQL subsystems. The `SC_CPU_SCALE` variable changes transaction work without resizing the schema. - **[`pgbench_tpcb`](https://docs.sparecores.com/images/benchmark-pgbench-postgres/workloads.md#pgbench_tpcb):** Runs [`pgbench`](https://www.postgresql.org/docs/current/pgbench.html)'s built-in `tpcb-like` transaction mix against a schema initialized at one or more scale factors. It is disk-limited and not used in production. For more information on available workloads, see [Workloads](https://docs.sparecores.com/images/benchmark-pgbench-postgres/workloads.md). ### Design History We first compared `sysbench`, HammerDB TPROC-C (HammerDB's transaction processing workload), BenchBase, and `pgbench`. The experiments showed that write-heavy workloads got bottlenecked by storage and WAL (Write-Ahead Logging). On `tmpfs`, write-heavy OLTP (Online Transaction Processing) results improved by 10-25%, showing how much disk behavior could influence a score. But `tmpfs` was unavailable for DBaaS, and sizing by warehouse count (TPROC-C's dataset-size unit) or scale factor could not cover the range from 1 vCPU to hundreds. `pgbench` looked promising as a simpler, more scalable basis for a cross-provider benchmark. Early `pgbench -S` runs were dominated by network latency, and profiling found that the first custom transaction over-weighted regex work. A set of 21 PostgreSQL configuration experiments on a host with 32 vCPUs showed that tuning could improve throughput by about 20%. The `pgbench_ro` redesign uses a fixed, cache-resident schema and spreads CPU work across PostgreSQL subsystems. `pgbench_tpcb` is kept as a conventional reference workload, but it is disk-limited and unused in production. See the [changelog](https://docs.sparecores.com/images/benchmark-pgbench-postgres/design-history.md) for experiment results, validation, and calibration details. ### References This image's [Glossary](https://docs.sparecores.com/images/benchmark-pgbench-postgres/glossary.md) defines its own terms. --- ## Usage (PostgreSQL (pgbench)) ### Standalone Mode Leave `SC_DB_HOST` empty to automatically start a local PostgreSQL server inside the Docker container: ```bash docker run --rm ghcr.io/sparecores/benchmark-pgbench-postgres:main ``` **Note:** Docker `--memory`, `--cpus`, and `--cpuset-cpus` limits do not change the tuning. With `--memory`, PostgreSQL is still sized for the host's memory and can be killed for running out of memory; with `--cpus` or `--cpuset-cpus`, set `SC_DB_VCPUS` to match. The harness tunes the local server at startup, based on the identified vCPU count and system memory size, using the following algorithm, implemented in [`pgtune_leopard.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-pgbench-postgres/pgtune_leopard.py): - Take the host system memory (Docker `--memory` limits are ignored), `M`, from `MemTotal` in `/proc/meminfo`, rounded down to whole GiB (at least `1`). - Take the vCPU count, `C`, from the optional `SC_DB_VCPUS` environment variable, which defaults to the host's logical CPU count, even when Docker limits the container's CPUs. - Generate PostgreSQL settings as [`pgtune`](https://pgtune.leopard.in.ua/) does with its form defaults: PostgreSQL 18, Linux, web application, SSD storage, database size mid-RAM, and an automatic connection count. - Set `shared_buffers` to `M/4` and `effective_cache_size` to `3M/4`. - Set `huge_pages` to `try` when `shared_buffers` is at least 2 GiB, otherwise `off`. - Set `maintenance_work_mem` to `M/16`, capped at 8 GiB. Set `autovacuum_work_mem` to 2 GiB when `maintenance_work_mem` reaches 2 GiB. - Set `work_mem` to `(M - shared_buffers) / (3 × (200 + W))`, with a 4 MiB minimum, where `W` is `C` when `C` ≥ 4 and 1 otherwise. - Set `wal_buffers` to 3% of `shared_buffers`, with a 32 KiB minimum and a 16 MiB cap; values between 14 and 16 MiB are rounded up to 16 MiB. - Use fixed values for the following settings: - `min_wal_size`: `1 GB` - `max_wal_size`: `4 GB` - `checkpoint_completion_target`: `0.9` - `default_statistics_target`: `100` - `random_page_cost`: `1.1` - `effective_io_concurrency`: `200` - `jit`: `off` - `wal_compression`: `lz4` - `io_method`: `io_uring` - When `C` ≥ 4, set `max_worker_processes` and `max_parallel_workers` to `C`, and `max_parallel_workers_per_gather` and `max_parallel_maintenance_workers` to `C`/2 rounded up, capped at 4. - Set `autovacuum_max_workers` to 4 when `C` ≥ 16 and to 5 when `C` ≥ 32; otherwise, keep the PostgreSQL default. - Override `pgtune`'s `max_connections` of 200 with 3,122 (the highest client count, 3,072, plus 50 reserved connections). The `work_mem` setting is still sized for 200 connections. - Set `synchronous_commit` to `off` when `SC_DURABILITY=async`, and `on` otherwise. The output records the generated settings in `postgres.requested_gucs` and a `pgtune` form link in `pgtune_share_url`. The link shows `pgtune`'s default of 200 connections, not the 3,122 override. The `pgbench_ro` workload applies further [workload settings](#workload-settings) on top of these. ### Remote Mode Set `SC_DB_HOST` to benchmark an existing PostgreSQL 18 server, such as a DBaaS (Database as a Service) instance, from the same or a separate machine. Before running, check the following prerequisites: - The `SC_DB_USER` role can create databases (`CREATEDB`) and terminate other sessions on the benchmark database: it must be a superuser, a member of `pg_signal_backend`, or the role those sessions run as. - The benchmark database, `SC_PGBENCH_DB` (default `pgbench`), holds no data that is needed. Restoring a cached dump drops and recreates it; building the dataset drops and recreates its benchmark tables. - The `SC_DB_USER` role owns the benchmark database or is a superuser, so it can set the `pgbench_ro` [workload settings](#workload-settings). - The client can reach `SC_CDN_BASE_URL` over HTTPS. The image restores a cached dataset dump from there and builds the dataset itself only when no dump exists for it; the run fails if the CDN (Content Delivery Network) is unreachable. - `SC_DB_VCPUS` is set to the database server's vCPU count. Without it, the image uses the logical CPU count of the machine it runs on, so on a separate client machine it picks concurrency points for the wrong server size. Set the host, credentials, and server size: ```bash docker run --rm \ -e SC_DB_HOST= \ -e SC_DB_USER= \ -e SC_DB_PASSWORD= \ -e SC_DB_VCPUS= \ -e SC_DB_MEM_GIB= \ -e SC_WORKLOAD=pgbench_ro \ ghcr.io/sparecores/benchmark-pgbench-postgres:main ``` `SC_DB_MEM_GIB` is only recorded in the output; for a remote server it is `null` unless it is set. The image does not tune a remote server's configuration; the only settings it changes are the [workload settings](#workload-settings) on the benchmark database. ### Workload Settings In both modes, `pgbench_ro` sets the following defaults ([`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-pgbench-postgres/benchmark.py)) on its benchmark database with `ALTER DATABASE ... SET`, after building or restoring the dataset: - `jit`: `off` - `work_mem`: `64MB` - `max_parallel_workers_per_gather`: `0` They apply to every `pgbench` session and override the server-level values, including the standalone `pgtune` settings. The `pgbench_tpcb` workload changes no settings. ### Run Duration A run prepares the dataset, then measures throughput at a series of concurrency points in the following steps: 1. Restore the dataset from a cached dump on the CDN, or build it if no dump exists for it. 2. Warm up once for `SC_WARMUP_SECONDS` (default: 120s) at the first concurrency point. Before each later point, run a settle period of `SC_SETTLE_SECONDS` (default: 60s) at that point's client count. Neither is measured. With `SC_WARMUP_ONCE=false`, every point gets the full warmup. 3. Measure each concurrency point for `SC_RUN_SECONDS` (default: 300s), sampling 1% of transaction latencies. 4. Report the highest TPM (Transactions Per Minute) of all concurrency points (and scale factors) as the score. For `pgbench_ro`, [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-pgbench-postgres/benchmark.py) sets the concurrency points to `{1, V/2, V, 2·V}`, where `V` is `SC_DB_VCPUS` and `V/2` is rounded down. Duplicates collapse on small servers, so the default duration depends on `V` as follows, excluding dataset preparation: | `V` | Concurrency points | Duration | | --- | --- | --- | | 1 | 1, 2 | 13 minutes (120 + 60 + 2 × 300s) | | 2 | 1, 2, 4 | 19 minutes (120 + 2 × 60 + 3 × 300s) | | 3 | 1, 3, 6 | 19 minutes (120 + 2 × 60 + 3 × 300s) | | 4 or more | 1, V/2, V, 2·V | 25 minutes (120 + 3 × 60 + 4 × 300s) | For example, a production run on an AWS (Amazon Web Services) [`m9g.24xlarge`](https://sparecores.com/server/aws/m9g.24xlarge) server with 96 vCPUs measured 1, 48, 96, and 192 clients, with 25 minutes of warmup and measurement ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m9g.24xlarge/0/pgbench_postgres_ro_durable/stdout)). Preparing the dataset and starting the server add to the total run time. The following settings also change the number of concurrency points, and so the duration: - `SC_PROFILE_VUS` replaces the default concurrency points for `pgbench_ro`. - Points above the server's `max_connections` minus 50 are dropped, which can shorten runs against a remote server with a low connection limit. - `pgbench_tpcb` prepares and measures each scale factor in `SC_SCALEFACTORS` in turn, with a settle period before every point after the first warmup. Each `pgbench` call times out after its duration plus 600 seconds. Each dataset build or restore command times out after 4 hours; the optional dump upload has no timeout. #### Why 5 Minutes This is deliberately not a long-running benchmark. We tested 5-, 10-, 15-, and 30-minute measurement windows with five interleaved trials each, using BenchBase's Wikipedia workload on three GCP (Google Cloud Platform) server types and `pgbench -S` on a fourth. Longer windows moved mean throughput by less than 2% and did not reduce run-to-run variation, which comes from load, OS, and noisy-neighbor effects rather than from too short an average. See [Measurement duration](https://docs.sparecores.com/images/benchmark-pgbench-postgres/design-history.md#measurement-duration) for the results. As a result, each score is a single 5-minute sample. Repeated runs on the same server type varied by a CV (Coefficient of Variation) of about 0.5-4% in these tests, so treat smaller differences between server types as noise. These figures come from runs of BenchBase's Wikipedia workload and `pgbench -S`, not from `pgbench_ro`. ### Production Setup The [Inspector](https://docs.sparecores.com/overview#how-it-works) of Spare Cores Navigator runs this image with the following setup. A plain `docker run` differs from it as noted below. #### Container Settings Production runs apply no `sysctl` or other host OS tweaks. The container runs privileged with the following settings: - host networking - `seccomp=unconfined` - high `nofile` and unlimited `memlock` ulimits (unlocking huge pages and `io_uring`) In standalone mode, the harness itself starts `postgres` under `nice -n -20`. The higher priority takes effect only when the container has `CAP_SYS_NICE`, as under `--privileged`; with a plain `docker run`, the server runs at normal priority. #### Topology IaaS (Infrastructure as a Service) runs place the client and database on the same node. DBaaS runs use a separate client VM that always reaches the database over private VPC (Virtual Private Cloud) addresses. On AWS, both are in the same availability zone; other vendors may place them in different zones of the same region. ### Environment Variables | Variable | Meaning | Default | | --- | --- | --- | | `SC_WORKLOAD` | Workload: `pgbench_ro` or `pgbench_tpcb`. | `pgbench_ro` | | `SC_DB_HOST` | Remote database host; empty starts local PostgreSQL. | Empty | | `SC_DB_PORT` | Database port. Remote mode only: leave it unset in standalone mode, which always uses `5432`. | `5432` | | `SC_DB_USER` | Database role. Remote mode only: leave it unset in standalone mode, which always uses `postgres`. | `postgres` | | `SC_DB_PASSWORD` | Database password. | `postgres` | | `SC_DB_NAME` | Admin database used for setup and settings queries. | `postgres` | | `SC_PGBENCH_DB` | Database used by this benchmark; its contents are dropped and recreated. | `pgbench` | | `SC_DB_SSLMODE` | SSL (Secure Sockets Layer) mode for the dataset restore, `pg_dump`, and the connection that drops and recreates the benchmark database. The `pgbench` tool and the setup queries do not use it. | `prefer` | | `SC_CPU_SCALE` | `pgbench_ro` transaction work multiplier. | `1` | | `SC_SCALEFACTORS` | Comma-separated `pgbench_tpcb` scale factors. | Unset | | `SC_SCALEFACTOR` | `pgbench_tpcb` scale factor when `SC_SCALEFACTORS` is unset or empty. | `65` | | `SC_PROFILE_VUS` | Comma-separated `pgbench_ro` concurrency points. For `pgbench_tpcb`, it only sets the default `SC_PROFILE_MAX_CLIENTS`. | Derived from database vCPUs | | `SC_PROFILE_SEARCH` | Allow adaptive concurrency search for `pgbench_tpcb`; forced off for `pgbench_ro`. At the default scale factor, it takes effect only when `SC_PROFILE_MAX_CLIENTS` is above the highest anchor. | True for `pgbench_tpcb`; false for `pgbench_ro` | | `SC_PROFILE_IMPROVE_PCT` | Throughput improvement threshold for `pgbench_tpcb` search. | `5.0` | | `SC_PROFILE_MAX_CLIENTS` | Client-count limit for the planned profile. The `pgbench_tpcb` search can extend past it while throughput improves, up to the scale factor. Raising it above the highest anchor lets `pgbench_tpcb` search add points only when a ladder rung lies between that anchor and the scale factor. | Highest anchor | | `SC_PROFILE_HARD_MAX_CLIENTS` | `pgbench_tpcb` only: the highest client count search can reach, also capped by the scale factor and by `max_connections` minus 50. Has no effect on `pgbench_ro`. | Highest anchor for `pgbench_ro`; `3072` for `pgbench_tpcb` | | `SC_RUN_SECONDS` | Measurement duration per concurrency point. | `300` | | `SC_WARMUP_SECONDS` | Initial warmup duration. | `120` | | `SC_SETTLE_SECONDS` | Settle duration between concurrency points. | `60` | | `SC_WARMUP_ONCE` | Use one full warmup, then settle between concurrency points. | `true` | | `SC_DB_VCPUS` | Database vCPU count used for concurrency points and local tuning. Set it for remote databases: the default is the client host's logical CPU count. | `os.cpu_count()` or `2` | | `SC_CLIENT_VCPUS` | Client vCPU count recorded in output. | `os.cpu_count()` or `2` | | `SC_DB_MEM_GIB` | Database memory in GiB recorded in output. Set it for remote databases. | Detected locally; unset for remote databases | | `SC_DURABILITY` | Local server durability; `async` disables `synchronous_commit`. | `durable` | | `SC_TOPOLOGY` | Topology recorded in output. | `single_vm` locally; otherwise `multi_vm` | | `SC_CDN_BASE_URL` | CDN base URL for cached dataset dumps. | `https://cdn.sparecores.net/sc-inspector` | | `SC_CDN_DATASET_POST_B64` | Optional base64-encoded presigned upload configuration for dataset dumps. | Unset | | `SC_CDN_UPLOAD` | Permit dataset upload when a valid upload configuration is supplied. | `1` | See [Results](https://docs.sparecores.com/images/benchmark-pgbench-postgres.md#results) for the output fields. --- ## Workloads (PostgreSQL (pgbench)) ### `pgbench_ro` The `pgbench_ro` workload is a custom read-only workload with one transaction composed of eight query blocks. They exercise joins, aggregation, indexes, full-text search, arrays, and other PostgreSQL subsystems to emphasize CPU work rather than disk I/O (Input/Output). The setup script, [`ro_cpu_setup.sql`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-pgbench-postgres/ro_cpu_setup.sql), creates the following test data, which takes about 303 MiB including indexes on PostgreSQL 18: - 20,000 products - 50,000 customers - 250,000 orders - 750,000 order items The harness invokes `pgbench` with `-D scale=N` and `-f` [`ro_cpu_txn.sql`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-pgbench-postgres/ro_cpu_txn.sql). The `-D scale=N` option multiplies most block widths inside the transaction (wider slices, bigger joins) without touching the underlying dataset, so a single fixed schema can represent a range of CPU intensities. Total work grows sub-linearly, because some blocks have fixed costs. The workload uses fixed concurrency points `{1, V/2, V, 2·V}`, set in [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-pgbench-postgres/benchmark.py), where `V` is the database vCPU count, instead of a geometric search. This choice came out of the [latency and pipelining experiments](https://docs.sparecores.com/images/benchmark-pgbench-postgres/design-history.md#latency-and-pipelining). The transaction is intentionally a single SQL (Structured Query Language) statement whose eight blocks each touch a different PostgreSQL subsystem: - `q_idx`: B-tree index scan, nested loop, and window aggregate - `q_hashjoin`: hash join and hash aggregate over a time slice - `q_regex`: regular expressions and `md5()` - `q_fts`: full-text search using `tsvector` and GIN (Generalized Inverted Index) - `q_array`: array containment using GIN - `q_stats`: ordered-set and statistical aggregates - `q_toast`: TOAST (The Oversized-Attribute Storage Technique) fetch and decompression - `q_seqscan`: plain sequential scan and aggregate The setup also creates a BRIN (Block Range Index) on the `ro_cpu_order.ordered_at` column; the planner may use it for the time-window predicate. At the end of each transaction, the script combines the eight block outputs with `UNION ALL` and hashes them into one `md5(string_agg(...))` checksum. The checksum makes the result depend on the block outputs and prevents the planner from optimizing away their work; it is not this benchmark's score. The harness then converts `pgbench` throughput to TPM (Transactions Per Minute), the published headline score. ### `pgbench_tpcb` This workload is `pgbench`'s built-in `tpcb-like` script (`-b tpcb-like`) with a standard `pgbench -i -s N` schema. It is a standard OLTP (Online Transaction Processing) mix in the style of TPC-B (Transaction Processing Performance Council Benchmark B): mostly write-heavy and sensitive to disk, network, and locking. Because it is disk-limited, it is kept for possible later use but not run in production. The workload measures geometric anchors `{1, V/4, V/2, V}`, rounded to ladder rungs, where `V` is the smaller of the database vCPU count and the scale factor; client counts never exceed the scale factor. Its adaptive search adds points above the highest anchor while throughput keeps improving. At the default scale factor of 65, it adds points only when `SC_PROFILE_MAX_CLIENTS` is raised above the highest anchor. See the [official documentation](https://www.postgresql.org/docs/current/pgbench.html) for details. --- ## Limitations (PostgreSQL (pgbench)) ### Disclaimer: What This Benchmark Does *Not* Deliver #### A Production Workload Transactions are synthetic proxies: deliberately balanced mixes of PostgreSQL subsystems. See [Workloads](https://docs.sparecores.com/images/benchmark-pgbench-postgres/workloads.md) for details. This benchmark does *not* predict the specific performance of any given application. It instead gives a general sense of the relative RDBMS (Relational Database Management System) performance expected of a server type. #### Disk I/O Speed The scores do *not* measure storage I/O (Input/Output) performance. Database throughput usually hinges first on disk IOPS (Input/Output Operations Per Second), then on bandwidth. In the cloud, that disk is almost always network-attached block storage, provisioned independently of the server type and entirely up to the user, so it says little about the server itself. Deploying volumes with high-enough IOPS to never bottleneck across the more than 5,000 server types in the [Spare Cores Navigator Web UI](https://sparecores.com/servers) would also be prohibitively expensive. Because of this, we exclude disk speed from the measurement and score the database engine's CPU and memory performance. #### Network Performance The scores say nothing about a server's network throughput or latency. With a remote client, both bandwidth and especially RTT (Round-Trip Time) between client and server can dominate chatty workloads. Placing the client close to the server is not enough on its own: occasional latency glitches still distort lightweight-workload results. The workload is therefore designed so the remaining RTT is a rounding error; see [CPU-Heavy Transactions](#cpu-heavy-transactions). #### Uniform Data Data distribution is uniform rather than Zipfian. The product catalog has 20,000 products, of which order items reference only the first 5,000, but customer, order, and order-item values use `g % k` modular arithmetic rather than a realistic power-law distribution with a few high-activity customers. See [Workloads](https://docs.sparecores.com/images/benchmark-pgbench-postgres/workloads.md) for details. ### Scope Decisions Most published database benchmarks focus on storage, network throughput, a single database operation, or one production workload. Our approach focuses on the CPU and memory speed of the server instead: we keep the workload and the PostgreSQL major version constant and vary the hardware across thousands of server types. #### Minor Engine Versions Only the PostgreSQL major version is fixed. DBaaS (Database as a Service) providers may apply minor PostgreSQL upgrades automatically. This benchmark does not check or enforce the version of a remote target; version selection and pinning are deployment responsibilities. Standalone runs use whichever PostgreSQL 18 minor release the `postgres:18` base image had when the image was built. #### Instance Size Range From small instances (e.g. 1 vCPU and 2 GiB of RAM) to large nodes with hundreds of vCPUs, the same workload must produce meaningful, comparable numbers. HammerDB TPROC-C (HammerDB's transaction processing workload) and similar suites size their datasets by warehouse count, and `pgbench` by scale factor. Neither sizing scheme can fulfill this purpose. Because of this, we chose a fixed-size workload that can run on every server type in the [Navigator's Web UI](https://sparecores.com/servers) with at least 2 GiB of RAM, with larger servers being taxed by concurrency rather than workload size. #### Engine Configuration The vendor tunes the managed engine, and the harness cannot assume superuser access or GUC (Grand Unified Configuration) control on DBaaS. For this benchmark, we deliberately do not tune the DBaaS engine: the tuning of the managed service is part of what is being measured, so the score reflects the vendor's configuration. #### JIT and Parallel Query For `pgbench_ro`, the harness disables PostgreSQL's JIT (Just-in-Time Compilation) and [parallel query](https://www.postgresql.org/docs/current/parallel-query.html), and sets `work_mem` to `64MB`; see [Workload Settings](https://docs.sparecores.com/images/benchmark-pgbench-postgres/usage.md#workload-settings). These settings are not applied to `pgbench_tpcb`. This benchmark measures raw engine and CPU behavior, *not* JIT compilation variance or Gather scalability. Those are treated as a separate testing axis. #### A Single Monolithic Statement One `SELECT` whose eight query blocks are CTEs ([Common Table Expressions](https://www.postgresql.org/docs/current/queries-with.html)) combined with `UNION ALL` is deliberate: it keeps one `pgbench` transaction equal to one network round trip. This makes the `pgbench_ro` workload resilient to RTT simulated with `netem` (Network Emulator); see [Latency and pipelining](https://docs.sparecores.com/images/benchmark-pgbench-postgres/design-history.md#latency-and-pipelining) for the experiments. The tradeoff is that per-block planner GUCs (e.g. forcing Merge Join specifically) are not possible without affecting every block. #### Pre-Calibrated Weights The time shares of the eight query blocks in the `pgbench_ro` transaction were manually calibrated and remain fixed for all runs. See the [block timings](https://docs.sparecores.com/images/benchmark-pgbench-postgres/design-history.md#current-pgbench_ro-workload-v2-subsystem-rebalance) and the [recalibration procedure](https://docs.sparecores.com/images/benchmark-pgbench-postgres/design-history.md#recalibration-procedure) for details. ### Design Constraints With the help of the [benchANT](https://benchant.com) team, over many iterations with different tools and configurations, we identified the following core principles. #### Memory-Fit, Small Dataset This benchmark is designed to use a small dataset of about 303 MiB. On the smallest nodes, the dataset does not fit in memory, which can add some disk overhead, so production runs this benchmark only on servers with at least 2 GiB of RAM, as reported by the vendor. There, the dataset is meant to stay in memory (`shared_buffers` plus the OS page cache), so that the disk is not read again after warmup. Because the dataset is small by design, large instances are exercised through concurrency rather than data volume. #### Read-Only Workload The measured `pgbench_ro` transaction writes no data, so in the steady state of this benchmark it generates no WAL (Write-Ahead Logging) records. #### CPU-Heavy Transactions Each transaction takes about 70 to 100 ms of server work per connection. With 1 to 5 ms of RTT against roughly 100 ms of server work, network time stays a small fraction of each transaction and cannot dominate. Experiments showed that lightweight read-only transactions are sensitive to network delay, so the default workload uses a heavier cached transaction; see [Latency and pipelining](https://docs.sparecores.com/images/benchmark-pgbench-postgres/design-history.md#latency-and-pipelining) for the results. --- ## Redis(Images) Source: [`images/benchmark-redis/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark-redis) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark-redis:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark-redis). This benchmark measures Redis 7.4 SET throughput and latency with `memtier_benchmark`. It starts one `redis-server` and one `memtier_benchmark` client for each CPU, all in the same container and connected over loopback, and runs every configuration for 10 seconds. It reports the total operations per second and the average latency of the Redis SET command at six pipeline depths, from 1 to 512, together with the CPU time the Redis servers and the clients used. [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes these as Redis server+client speed, Redis server (extrapolated) speed, and Redis latency. ### Purpose This benchmark shows how fast a server type serves a simple in-memory key-value workload, and how throughput and latency change as each client connection sends more requests at once. Because each Redis server shares its CPU with its `memtier_benchmark` client, this benchmark records their CPU time separately, so the servers' share of the work can be separated from the clients' share. See [Results](#results) for how the Navigator uses it. ### Limitations These results compare Redis SET performance on one host, not the throughput of a production Redis deployment. The main limitations are the following: - **Shared CPUs:** Each Redis server shares its CPU with a client, so `rps` is not the maximum a dedicated Redis server would reach. See [Results](#results) for the CPU-time-adjusted score the Navigator publishes. - **[Workload](#workload):** Only the SET command is measured, with `memtier_benchmark`'s default key pattern, key range, value size, and connection count. GET and mixed workloads are not measured. - **Loopback Only:** Clients and servers run on the same host and talk over loopback, so this benchmark does not measure network throughput or latency. - **Untuned Servers:** Each `redis-server` starts with only a data directory and a port, so Redis 7.4.0 defaults apply, including persistence, memory, and threading settings. - **Single Short Run:** Each configuration runs once for 10s, with no warmup and no repetitions. - **CPU Count:** The number of server and client pairs follows the CPUs the container may run on. Docker's `--cpuset-cpus` changes it, but `--cpus` does not: with `--cpus`, this benchmark still starts one pair per host CPU. - **Error Checks:** The harness does not check `memtier_benchmark` exit codes, and it continues even if some servers do not answer the flush before a configuration. A client that prints no result adds nothing to `rps` but still counts in the `latency` average. ### Usage Run the image via Docker: ```bash docker run --rm --privileged ghcr.io/sparecores/benchmark-redis:main ``` The harness runs the Redis servers and clients at the highest scheduling priority (`nice -n -20`), which needs the `CAP_SYS_NICE` capability that `--privileged` grants. Production (k8s-inspector) runs the container the same way, but in its own Pod network namespace instead of the host's: with host networking, every loopback packet passes the host's netfilter rules (kube-proxy, conntrack, and similar), which slows this benchmark. The traffic itself stays on loopback inside the container. On an Azure `Standard_D2ds_v5` (2 vCPU), the Pod namespace raised SET `rps` from 93266 to 122206 at pipeline depth 1 (legacy VM: 117537), with no gain at pipeline depth 512. The full table, with the other settings tried, is in the [k8s-inspector node profile](https://github.com/SpareCores/k8s-inspector/blob/main/docs/explanation/node-profile.md#measurement-conditions). The container entrypoint runs this benchmark under `resource-tracker`, which samples resource usage during the run. Its data is not published. Measurement takes 60 seconds (six configurations of 10 seconds each), plus server startup and a flush of all servers before each configuration. #### Settings This benchmark reads no environment variables or command-line options. The operation, pipeline depths, run time, and ports are fixed in [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-redis/benchmark.py); see [Workload](#workload). To change the number of server and client pairs, limit the container's CPUs with `--cpuset-cpus`. #### Results This benchmark prints a comma-separated table to stdout: a header row with quoted column names, then one row per pipeline depth. Nothing else is written besides Redis data under `/data` in the container. ```text "operation","threads","pipeline","rps","latency","server_usr","server_sys","client_usr","client_sys" ``` The columns mean the following: - `operation` is always `"SET"`, and `threads` is always `1`, the `memtier_benchmark` thread count per client. - `pipeline` is the `memtier_benchmark` `--pipeline` value: how many requests each connection sends before waiting for replies. - `rps` is the sum of SET operations per second over all clients, as an integer. - `latency` is the average SET latency in milliseconds: the mean of each client's average latency, not weighted by its operation count. - `server_usr` and `server_sys` are the user and system CPU seconds that all Redis servers used during the configuration. - `client_usr` and `client_sys` are the user and system CPU seconds of the `memtier_benchmark` clients of the configuration. For example, on an [`aws/m5.large`](https://sparecores.com/server/aws/m5.large) (2 vCPUs), `rps` rises from 69,962 at pipeline 1 to 685,686 at pipeline 512, while `latency` rises from 1.43 ms to 74.36 ms ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m5.large/0/redis/stdout)). The Navigator publishes the following three scores for each pipeline depth: - **Redis server+client speed:** `rps` in operations per second. - **Redis server (extrapolated) speed:** `rps` × (CPU time of servers and clients / CPU time of servers), in operations per second. - **Redis latency:** `latency` in milliseconds; lower is better. Each score carries a note with the server and client CPU seconds. Production records the Redis version from `redis-server -v`. The `memtier_benchmark` tool is installed from the Redis package repository without a version pin, so a rebuild of the image can change it, and production does not record its version. ### Workload This benchmark runs one workload: a sweep of Redis pipelining depths for SET operations. [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-redis/benchmark.py) starts one `redis-server` per CPU, on ports 7000 and up, each with its own data directory under `/data`. The servers run until the container exits. For each pipeline depth (1, 4, 16, 64, 256, and 512), in this order, the harness runs the following steps: 1. Flush every server with `redis-cli flushall`, retrying up to 10 times, 1 second apart, until all servers answer. This is also the only wait for the servers to start. 2. Record the CPU times of the servers and the clients' running totals. 3. Start one client per server, all at once: ```bash memtier_benchmark -4 -p --ratio=1:0 --test-time=10 --hide-histogram -t 1 --pipeline= ``` The `--ratio=1:0` option sends SET operations only. 4. Wait for every client to exit, read the SET results from each client's summary table, and record the CPU times again. ### Design History An earlier version of the harness also ran each pipeline depth with two and four `memtier_benchmark` threads per client, which produced 18 rows instead of six. We cut it to one thread in August 2024: with one server and client pair per CPU, more threads do not improve performance. A few published results still come from the earlier version, for example [`aws/c6g.16xlarge`](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c6g.16xlarge/0/redis/stdout). For each pipeline depth, the Navigator keeps the row with the highest `rps`, regardless of the thread count. ### References This image's [Glossary](https://docs.sparecores.com/images/benchmark-redis/glossary.md) defines its own terms. --- ## Storage(Images) Source: [`images/benchmark-storage/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark-storage) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark-storage:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark-storage). This benchmark measures the raw block device performance of a cloud server's bundled disks with `fio`. It finds the host's disks, groups identical ones, and runs random, sequential, and mixed read and write tests on one disk per group. Groups of two or more disks also run a few tests on all their disks at once. All I/O (Input/Output) goes directly to the raw device, bypassing the filesystem and the page cache. This benchmark reports IOPS (Input/Output Operations Per Second), bandwidth, and latency percentiles for each test, at block sizes from 512 B to 16 MiB. It also records a disk inventory and before-and-after health snapshots. It overwrites every disk it is allowed to write to, so run it only on ephemeral servers. ### Purpose [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes empirical performance measurements for over 5,000 cloud server types, such as [raw CPU speed](https://docs.sparecores.com/images/stress-ng.md), [memory bandwidth](https://docs.sparecores.com/images/benchmark/bw-mem.md), and [LLM inference speed](https://docs.sparecores.com/images/benchmark-llm.md). This benchmark adds storage performance: the Navigator will publish bandwidth and IOPS at different block sizes, both per disk and for each group of identical disks. This benchmark focuses on a server type's bundled storage: the disk or disks provisioned with the server type by default, regardless of whether an HDD (Hard Disk Drive), an SSD, or network-attached storage backs them. Results reflect the storage as provisioned, including any provider-imposed IOPS or bandwidth limit. Network storage attached on demand is out of scope, because its performance is not a property of the server type. See [Disk Scope](https://docs.sparecores.com/images/benchmark-storage/limitations.md#disk-scope). SSDs handle short bursts of writes faster than sustained writes, because they first write to fast caches and to flash that holds no data yet. To make results comparable across vendors, this benchmark preconditions each writable disk before measuring it, and runs write tests for longer than read tests. See [Preconditioning](https://docs.sparecores.com/images/benchmark-storage/workloads.md#preconditioning) for the steps. ### Limitations These results describe raw block devices under synthetic `fio` load, not filesystem or application performance. The following are the main limitations: - **[Destructive](https://docs.sparecores.com/images/benchmark-storage/usage.md#disk-safety):** This benchmark overwrites every disk that is not in use, and unmounts and overwrites disks whose mounts are not protected and can be unmounted. It never remounts them. - **[Raw Devices Only](https://docs.sparecores.com/images/benchmark-storage/limitations.md#raw-block-io):** Tests bypass the filesystem and the page cache, so results exclude filesystem overhead and caching. - **[Bundled Storage Is Not Detected](https://docs.sparecores.com/images/benchmark-storage/limitations.md#disk-scope):** The image tests every real block device it finds, including any volume attached on demand. - **[Partial Preconditioning](https://docs.sparecores.com/images/benchmark-storage/limitations.md#partial-fill):** The sequential fill is capped at 300s in total, which filled 26-33% of each NVMe (Non-Volatile Memory Express) drive on the first production servers. - **[Disks in Use Are Read-Only](https://docs.sparecores.com/images/benchmark-storage/limitations.md#read-only-disks):** The boot disk and other disks in use get read tests only, on whatever data they already hold. - **[No Single Score](https://docs.sparecores.com/images/benchmark-storage/limitations.md#a-single-score):** The output has one record per test, and no headline metric is defined yet. ### Usage Run the image via Docker on an ephemeral server that can be wiped. > [!CAUTION] > Every filesystem this benchmark unmounts is destroyed, together with the > data on every disk that is not in use. Never run it on production or > similar systems. > > Set `SC_STORAGE_UMOUNT=0` to leave mounted disks alone; disks that are not > in use are still overwritten. See [Disk Safety](https://docs.sparecores.com/images/benchmark-storage/usage.md#disk-safety) > for which disks this benchmark writes to. ```bash docker run --rm --privileged --pid=host ghcr.io/sparecores/benchmark-storage:main > storage.json ``` Both flags are required. `--privileged` gives the container raw access to the host's disks. `--pid=host` lets it read the host's mount table from `/proc/1/mountinfo` and unmount filesystems in the host's mount namespace, which the disk safety checks depend on. The image does not check if it runs in the host's PID (Process Identifier) namespace. See [Production Setup](https://docs.sparecores.com/images/benchmark-storage/usage.md#production-setup) for how production runs differ. A run took about 21-22 minutes on the first production servers. This benchmark shortens or drops tests when its estimate exceeds 2400 seconds. See [Run Duration](https://docs.sparecores.com/images/benchmark-storage/usage.md#run-duration) for how the time is spent. #### Settings The following are the common settings; see the [full environment-variable reference](https://docs.sparecores.com/images/benchmark-storage/usage.md#environment-variables) for all options and defaults: - `SC_STORAGE_UMOUNT=0` keeps every mounted disk read-only instead of unmounting it. - `SC_STORAGE_PURGE=0` skips the discard (`blkdiscard`) before the fill. - `SC_STORAGE_RUNTIME_S` and `SC_STORAGE_WRITE_RUNTIME_S` set the measured seconds per read test (default: `10`) and per write test (default: `30`). - `SC_STORAGE_FILL_BUDGET_S` sets the total sequential-fill time (default: `300`), and `SC_STORAGE_BUDGET_S` the target for the estimated test time (default: `2400`). #### Results This benchmark prints one JSON document to stdout when the run ends, and a timestamped progress log with per-test IOPS, MiB/s, and 99th-percentile latency to stderr. The JSON document's main fields are the following: - `inventory` lists each disk with its model, size, and transport. The `mode` field is `read_write` or `read_only`, and `mode_reason` says why. - `groups` lists the groups of identical disks, each with its members and the `representative` that runs the single-disk tests. - Each `benchmarks[]` entry is one test, named `__qd`, for example `randread_4k_qd256`. The `scope` field is `single` or `group`. - `read` and `write` hold `iops`, `bw_bytes` (bytes per second), and `lat_ns`, whose `percentiles` are latencies in nanoseconds. The `iops_interval` and `bw_bytes_interval` fields summarize 500 ms windows, including `tail_mean`, the mean of the second half of the run. - `preconditioning` holds the fill and random-write steps. The `filled_fraction` field shows how much of each disk the fill wrote. - `skipped` lists every test that did not run, with the reason. See [Output](https://docs.sparecores.com/images/benchmark-storage/usage.md#output) for every field and its unit. ### Workloads [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-storage/benchmark.py) runs the following kinds of tests for each group of identical disks: - **[Preconditioning](https://docs.sparecores.com/images/benchmark-storage/workloads.md#preconditioning):** Discards and fills each writable disk sequentially, and later writes it randomly before the random-write tests. - **[Single-Disk Tests](https://docs.sparecores.com/images/benchmark-storage/workloads.md#single-disk-tests):** Run random reads and writes at eight block sizes, sequential reads and writes, and 70/30 mixed I/O on one representative disk. - **[Group Tests](https://docs.sparecores.com/images/benchmark-storage/workloads.md#group-tests):** Run random and sequential reads on all disks of a group at once, and writes when at least two disks are writable. For more information on test order and `fio` settings, see [Workloads](https://docs.sparecores.com/images/benchmark-storage/workloads.md). ### Design History The first version measured disks without preconditioning them. Partial fills and short write runs measured the drives' write-buffer burst rather than their sustained performance. The current version discards and fills each writable disk, runs write tests for longer than read tests (30 seconds compared with 10 seconds), and records best-effort health snapshots, so that results are comparable across vendors. The fill is still capped by time. On the first production servers, it wrote about a quarter to a third of each NVMe drive. See [Partial Fill](https://docs.sparecores.com/images/benchmark-storage/limitations.md#partial-fill). See the [changelog](https://docs.sparecores.com/images/benchmark-storage/design-history.md) for the changes to this benchmark. ### References This image's [Glossary](https://docs.sparecores.com/images/benchmark-storage/glossary.md) defines its own terms. --- ## Usage (Storage) ### Disk Safety This benchmark decides for each disk whether it may write to it. Disks it may write to (`read_write`) are filled and overwritten, and discarded first if they support it. Their previous data is lost. Run it only on ephemeral servers, never on production or similar systems. [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-storage/benchmark.py) checks each disk in the following order: 1. A disk that is read-only, used as swap, or held by another device is `read_only`. Holders include LVM (Logical Volume Manager) volumes and RAID (Redundant Array of Independent Disks) arrays built with `md`. 2. A disk with no mounted filesystem is `read_write`. 3. A disk with a protected mount is `read_only`. The protected mounts are `/`, `/boot`, `/boot/efi`, `/usr`, `/var`, `/home`, `/root`, `/etc`, `/opt`, `/srv`, `/tmp`, anything under `/snap/`, and any mount at or above `/var/lib/docker`. 4. With `SC_STORAGE_UMOUNT=0`, any other mounted disk is `read_only`. 5. Otherwise, this benchmark unmounts the disk's filesystems, deepest first, without forcing the unmount. If any unmount fails, for example because a filesystem is busy, it remounts what it already unmounted and marks the disk `read_only`. Otherwise, the disk is `read_write`. This benchmark never remounts a filesystem after unmounting it, and the write tests overwrite its data. Before every write test, this benchmark checks the disks again and skips the test if a disk is mounted, used as swap, or held again. The `fio` tool also runs with `allow_mounted_write=0`, and read tests run with `fio --readonly`. The mount checks read the host's mount table from `/proc/1/mountinfo` and unmount through `nsenter` in the host's mount namespace. Both need `--pid=host`. This benchmark does not check if it runs in the host's PID (Process Identifier) namespace. Note that `SC_STORAGE_UMOUNT=0` does not protect the disks that step 2 marks `read_write`: this benchmark always writes to them. There is no setting for a read-only run. ### Production Setup Production runs the container with the following settings: - `--privileged`, `--pid=host`, and host networking - a timeout of 1 hour - after the benchmarks that have a set priority, because this benchmark may unmount and overwrite free disks - Resource Tracker settings, so the tracker that wraps this benchmark [streams](https://sparecores.com/article/resource-tracker-rs#streaming-to-sentinel) the run's resource usage to the [Spare Cores Sentinel](https://sentinel.sparecores.com/) platform A plain `docker run` with `--privileged --pid=host` runs the same tests, but without host networking and without the Resource Tracker settings. Production runs this benchmark on ephemeral servers, on every server type with bundled storage: the [`inspector_rules.py`](https://github.com/SpareCores/sc-crawler/blob/main/src/sc_crawler/inspector_rules.py) file in `sc-crawler` skips only server types without it. The image does not check whether it runs on an ephemeral server, and does not tell bundled disks apart from other disks. ### Run Duration A run took about 21 minutes on GCP (Google Cloud Platform) [`c4a-standard-16-lssd`](https://sparecores.com/server/gcp/c4a-standard-16-lssd) ([recorded output](https://github.com/SpareCores/sc-inspector-data/tree/main/data/gcp/c4a-standard-16-lssd/0/storage)), with four local NVMe (Non-Volatile Memory Express) drives, and about 22 minutes on OVHcloud [`i1-90`](https://sparecores.com/server/ovh/i1-90) ([recorded output](https://github.com/SpareCores/sc-inspector-data/tree/main/data/ovh/i1-90/0/storage)), with two NVMe drives. The following settings make up most of the time: - each read test: 10s measured plus a 2s ramp - each write or mixed test: 30s measured plus a 2s ramp - the sequential fill: up to 300s in total, split evenly between the groups that have writable disks - the random-write precondition: 120s per group with writable disks Before running, this benchmark estimates the total test time, counting 2 seconds of `fio` overhead per test. If the estimate exceeds `SC_STORAGE_BUDGET_S` (2400s), it takes the following steps until the plan fits: 1. Shorten read tests, down to `SC_STORAGE_MIN_RUNTIME_S` (5s). 2. Shorten write tests, down to `SC_STORAGE_MIN_WRITE_RUNTIME_S` (15s). 3. Drop the low-priority tests: `randread_512`, `randwrite_512`, `randread_16m`, `randwrite_16m`, `randrw70_64k`, and `randrw70_1m`. Dropped tests are listed in `skipped` with the reason `time budget`. The estimate leaves out the discard and the health snapshots, so a run can take longer than the estimate. The `config` field records the runtimes actually used and the estimate. ### Output This benchmark prints one JSON document to stdout. It always exits with code 0 once the run completes; a failed test records its error in its own `error` field. Progress goes to stderr, one timestamped line per step, with per-test IOPS (Input/Output Operations Per Second), MiB/s, and 99th-percentile latency in microseconds. #### Top-Level Fields The JSON document has the following top-level fields: - `schema_version` (`1`), and the versions of `fio`, `lsblk`, `smartctl` (drive health queries), and `nvme-cli` (NVMe health logs) - `started_at` and `finished_at`, as UTC (Coordinated Universal Time) timestamps - `host`: kernel, architecture, CPU count (`nproc`), and memory (`mem_bytes`) - `config`: the timing and budget settings used, including `runtime_s` and `write_runtime_s` after budget fitting, and `estimated_s` - `inventory`, `excluded`, and `groups`: the disks found and how they were grouped - `benchmarks` and `preconditioning`: the test records - `health`: the disk health snapshots - `skipped`: the tests that did not run #### Disks and Groups Each `inventory` entry describes one disk, with `lsblk` and `sysfs` fields such as `model`, `serial`, `size` (bytes), `tran` (transport), `rota` (rotational), `log_sec` and `phy_sec` (sector sizes), `write_cache`, and `disc_max` (discard support). It also records how the disk was used and the decision made for it, in the following fields: - `mountpoints`, `swap`, and `holders` - `mode` (`read_write` or `read_only`) and `mode_reason` - `unmounted`: the filesystems this benchmark unmounted - `group`: the ID of the disk's group The `excluded` field lists the devices that are not tested, each with a reason. The following devices are excluded: - devices that are not disks - virtual devices, such as `loop`, `zram`, `md`, or `dm-` - removable devices - empty devices - zoned devices Disks with the same model, size, and subsystem form a group. Each `groups` entry has its `key`, `members`, `representative` (the first writable member by name, or the first member if none is writable), and `mode`. #### Test Records Each `benchmarks` and `preconditioning` entry is one `fio` run, with the following fields: - `test`: `__qd`. The kinds are `randread`, `seqread`, `seqwrite`, `randwrite`, `randrw70` (70% reads), `fill`, and `precondition_randwrite`. The queue depth is the effective number of I/O (Input/Output) requests in flight per disk, `numjobs` times `iodepth`, which can be lower than the nominal queue depth. See [`fio` Settings](https://docs.sparecores.com/images/benchmark-storage/workloads.md#fio-settings). - `group`, `scope` (`single` or `group`), and `devices` - `rw`, `bs` (bytes), `rwmixread`, `numjobs`, and `iodepth` - `runtime_s`, `ramp_time_s`, `elapsed_s`, and `working_set_bytes` - `error`: `null`, or the `fio` error - `read` and `write`: the results per direction, or `null` if the test did not use that direction - `cpu`: the summed user and system CPU percentages of the `fio` jobs - `disk_util`: the kernel's disk utilization statistics Group tests also have `per_device`, with `read` and `write` results for each disk. Fill records also have `written_bytes`, `purge` (the discard result), and `filled_fraction`: the share of each disk the fill wrote, to four decimal places. Each `read` and `write` result has the following fields: - `iops`, `bw_bytes` (bytes per second), `io_bytes`, `total_ios`, and `runtime_ms` - `lat_ns`: end-to-end latency per I/O in nanoseconds, with `min`, `max`, `mean`, `stddev`, `samples`, and `percentiles` at 1, 5, 10, 25, 50, 75, 90, 95, 99, 99.9, and 99.99, keyed as strings such as `"99"` - `iops_interval` and `bw_bytes_interval`: statistics over 500 ms windows, with `min`, `p5`, `p50`, `p95`, `max`, `mean`, `tail_mean`, and `samples` `tail_mean` is the mean of the second half of the run. It leaves out the initial burst and includes the time a drive may still spend draining its write buffer. Multi-job and multi-disk results are merged: IOPS and bandwidth are summed, and latency percentiles come from the merged `fio` latency histograms. Preconditioning records also have `iops_series` and `bw_bytes_series`, averaged over steps of 5 seconds (`series_step_ms`). #### Health Snapshots The `health` field has one entry per disk, with the following fields: - `before` and `after`: snapshots of `smartctl -x` and, for NVMe drives, `nvme smart-log`, each with `taken_at` - `nvme_id_ctrl` and `nvme_id_ns`: the NVMe controller and namespace identification, before the run - `delta`: for NVMe drives, the change in counters over the run, such as `bytes_read`, `bytes_written`, `media_errors`, and `controller_busy_time`, plus `percent_used_after`, `avail_spare_after`, and `critical_warning_after` Health data is best effort. Virtual disks often refuse these queries; a failed query is recorded as `{"error": "..."}` and does not fail the run. #### Skipped Tests Each `skipped` entry has `group`, `scope`, `test`, and `reason`, with one of the following reasons: - `bs < log_sec ()`: the block size is below the disk's logical sector size - `read_only: `: write tests on a disk this benchmark may not write to - `fewer than 2 writable members`: group write tests in a group with fewer than two writable disks - `time budget`: dropped to fit the time budget - `fill failed`: every later test on a disk whose fill failed - ` is in use again`: a write test on a disk that was mounted, used as swap, or held again ### Environment Variables | Variable | Meaning | Default | | --- | --- | --- | | `SC_STORAGE_RUNTIME_S` | Measured seconds per read test. | `10` | | `SC_STORAGE_WRITE_RUNTIME_S` | Measured seconds per write or mixed test. | `30` | | `SC_STORAGE_RAMP_S` | Ramp seconds per test, not counted in the results; not used for the fill and the random-write precondition. | `2` | | `SC_STORAGE_MIN_RUNTIME_S` | Shortest read test when fitting the time budget. | `5` | | `SC_STORAGE_MIN_WRITE_RUNTIME_S` | Shortest write test when fitting the time budget. | `15` | | `SC_STORAGE_FILL_BUDGET_S` | Total sequential-fill seconds, split evenly between fill steps. | `300` | | `SC_STORAGE_WS_TARGET_BYTES` | Bytes to fill per disk; `0` fills the whole disk. | `0` | | `SC_STORAGE_RAND_PRECOND_S` | Random-write precondition seconds. | `120` | | `SC_STORAGE_BUDGET_S` | Target for the estimated total test time in seconds. | `2400` | | `SC_STORAGE_UMOUNT` | `0` keeps every mounted disk read-only instead of unmounting it. | `1` | | `SC_STORAGE_PURGE` | `0` skips the discard before the fill. | `1` | An empty value uses the default. The `SC_STORAGE_UMOUNT` and `SC_STORAGE_PURGE` settings are off only when set to exactly `0`. --- ## Workloads (Storage) ### Disk Discovery and Grouping [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-storage/benchmark.py) lists the host's block devices with `lsblk`, and skips the following devices: - devices that are not disks - virtual devices: names starting with `zram`, `ram`, `loop`, `nbd`, `md`, `dm-`, `sr`, or `fd`, or devices with no real subsystem - removable devices - empty devices - zoned devices Disks with the same model, size, and subsystem form a group. One representative per group, the first writable disk by name (or the first disk if none is writable), runs the full set of single-disk tests. Groups of two or more disks also run group tests on all their disks at once, which measure the combined throughput. Each disk is either written to (`read_write`) or only read (`read_only`), as described in [Disk Safety](https://docs.sparecores.com/images/benchmark-storage/usage.md#disk-safety). The groups run one after the other, and so do the tests within a group. Each group runs its steps in the following order: 1. Sequential fill of the writable disks (preconditioning) 2. Single-disk read tests 3. Group read tests 4. Sequential write tests, single-disk and then group 5. Random-write precondition of the writable disks 6. Single-disk random-write and mixed tests 7. Group random-write and mixed tests Read tests run on the freshly filled disk. Random writes run last, because the random-write precondition fragments the SSD's FTL (Flash Translation Layer) mapping, and a sequential test that ran after it would inherit that state. A group whose disks are all read-only runs only steps 2 and 3, on whatever data the disks already hold. ### Preconditioning SSDs first write incoming data to fast storage: a DRAM (Dynamic Random-Access Memory) or SLC (Single-Level Cell) cache, and spare area, which is flash that holds no data yet. On a drive that is only partly written, new writes keep finding spare area, so the drive never has to run garbage collection, and short tests report burst speeds rather than sustained ones. This benchmark prepares each writable disk in the following steps: 1. **Discard:** `blkdiscard` trims the whole disk, so every run starts from the same mapping state. Disks without discard support skip this step, and `SC_STORAGE_PURGE=0` turns it off. 2. **Sequential fill:** one `fio` job per disk writes it sequentially in 1 MiB blocks at a queue depth of 64, until the disk is full, the fill reaches `SC_STORAGE_WS_TARGET_BYTES`, or the fill time runs out. The fill time is `SC_STORAGE_FILL_BUDGET_S` (300s), split evenly between the groups with writable disks. 3. **Random-write precondition:** after the read and sequential write tests, 4 KiB random writes at a queue depth of 256 run for `SC_STORAGE_RAND_PRECOND_S` (120s). Both preconditioning steps are reported under `preconditioning`, not `benchmarks`, with IOPS (Input/Output Operations Per Second) and bandwidth time series in steps of 5 seconds. After the fill, every later test on the disk uses only the region the fill wrote. If the fill fails or writes nothing, every later test on that disk is skipped, because reads would hit unmapped blocks. Read-only disks always use the whole disk. Write and mixed tests run for 30 seconds, compared with 10 seconds for read tests, to get past the drive's DRAM or SLC write buffer. ### Single-Disk Tests The representative of each group runs the following read tests: - random reads of 4 KiB at a queue depth of 1 - random reads at a queue depth of 256, at each block size: 512 B, 4 KiB, 16 KiB, 64 KiB, 256 KiB, 1 MiB, 4 MiB, and 16 MiB - sequential reads of 1 MiB at a queue depth of 64 If the representative is writable, it also runs the following write tests: - sequential writes of 1 MiB at a queue depth of 64 - mixed random I/O (Input/Output) with 70% reads at a queue depth of 256, at 4 KiB, 64 KiB, and 1 MiB - mixed random I/O with 70% reads, at 4 KiB and a queue depth of 1 - random writes of 4 KiB at a queue depth of 1 - random writes at a queue depth of 256, at each block size from 512 B to 16 MiB Block sizes below the disk's logical sector size are skipped. For example, a disk with 4 KiB sectors skips the 512 B tests. ### Group Tests A group of two or more disks runs the following read tests on all its disks at once, including read-only ones: - random reads of 4 KiB at a queue depth of 256 - sequential reads of 1 MiB at a queue depth of 64 If at least two disks of the group are writable, those disks also run the following write tests: - sequential writes of 1 MiB at a queue depth of 64 - mixed random I/O with 70% reads, at 4 KiB and a queue depth of 256 - random writes of 4 KiB at a queue depth of 256 Group results add up all disks, and `per_device` holds each disk's share. ### `fio` Settings All tests use the `libaio` I/O engine with `direct=1`, so I/O bypasses the page cache. Each test runs for a fixed time (`time_based=1`) after a ramp of 2 seconds. The sequential fill instead runs until it has written its target (the whole disk by default) or its time runs out, and neither preconditioning step has a ramp. The queue depths above are the nominal number of I/Os in flight per disk. [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-storage/benchmark.py) splits them across jobs as follows: 1. Tests with a queue depth of 1 and the fill use one job per disk. Other tests use up to four jobs per disk, and no more than the CPU count divided by the number of disks in the test. 2. Each job's `iodepth` is the queue depth divided by the number of jobs. 3. `iodepth` is then capped so that no test has more than 256 MiB in flight across all its jobs and disks. Because of this cap, large block sizes run at a lower queue depth. The test name shows the effective queue depth. For example, on a server with 16 vCPUs, 4 MiB random reads run as `randread_4m_qd64` and 16 MiB random reads as `randread_16m_qd16`. Sequential tests with more than one job split the disk into equal stripes, one per job. Random tests use the `tausworthe64` generator without a random map (`norandommap=1`) and without a repeatable seed (`randrepeat=0`). The `fio` tool measures the end-to-end latency of each I/O, and this benchmark reports its percentiles from `fio`'s latency histograms. It also logs IOPS and bandwidth every 500 ms, which give the interval statistics in the output. See [Output](https://docs.sparecores.com/images/benchmark-storage/usage.md#output) for the fields. --- ## Limitations (Storage) ### Disclaimer: What This Benchmark Does *Not* Deliver #### Raw Block I/O This benchmark measures raw block devices with direct I/O (Input/Output). It does *not* measure filesystem performance, page-cache effects, or how a given application or database uses the disk. Results show what the disk can do under synthetic `fio` load, not what an application will see through a filesystem. #### A Single Score The output has one record per test and does *not* combine them into a single number. Spare Cores Navigator will publish bandwidth and IOPS (Input/Output Operations Per Second) at different block sizes, per disk and for each group of identical disks. The rest of the output, including any headline metric, is not decided yet. #### Other `fio` I/O Engines All tests use the `libaio` I/O engine. The image includes `liburing`, but this benchmark does *not* test the `io_uring` engine. ### Scope Decisions #### Disk Scope This benchmark focuses on a server type's bundled storage: the disk or disks provisioned with the server type by default. These can be a locally attached SSD or HDD (Hard Disk Drive), or network-attached storage. Network storage attached on demand is out of scope, because its performance is not a property of the server type. Results reflect the bundled storage as provisioned with the server type, regardless of the underlying medium. A result may therefore be bounded by a constraint outside the drive itself, such as a provider-imposed IOPS or bandwidth limit on network-attached storage, or the mechanical limits of an HDD. This benchmark does not attribute results to a specific cause: it reports performance as measured, and the Navigator publishes those measurements. The image does *not* detect which disks are bundled. It tests every real block device that passes [discovery](https://docs.sparecores.com/images/benchmark-storage/workloads.md#disk-discovery-and-grouping), including any volume attached on demand, and overwrites it if it can. #### Read-Only Disks A disk that is in use (the boot disk, for example) is only read, never written. Its read tests run over the whole disk, on whatever data it already holds, without a fill, and it skips every write and mixed test. See [Disk Safety](https://docs.sparecores.com/images/benchmark-storage/usage.md#disk-safety) for how this benchmark decides. ### Design Constraints #### Partial Fill The sequential fill runs for at most 300 seconds in total (`SC_STORAGE_FILL_BUDGET_S`), split between groups. A disk that takes longer to write is only partly filled. On the first production runs, the fill wrote the following share of each NVMe (Non-Volatile Memory Express) drive: - GCP (Google Cloud Platform) `c4a-standard-16-lssd`: 26% of each of four drives - OVHcloud `i1-90`: 33% of each of two drives A disk that is not fully written still has spare area, flash that is still empty, which inflates random-write results. The fill record's `filled_fraction` shows how much of each disk the fill wrote. Setting `SC_STORAGE_WS_TARGET_BYTES` limits the fill, and all later tests, to a smaller region of each disk. #### Destructive Runs This benchmark overwrites every disk it may write to, and does not remount the filesystems it unmounts. Run it only on ephemeral servers, never on production or similar systems. The `SC_STORAGE_UMOUNT=0` setting leaves mounted disks alone, but disks that are not in use are always overwritten. See [Disk Safety](https://docs.sparecores.com/images/benchmark-storage/usage.md#disk-safety). #### Time Budget This benchmark targets an estimated 2400 seconds of tests. When the estimate exceeds that, it shortens tests and then drops low-priority ones to fit. See [Run Duration](https://docs.sparecores.com/images/benchmark-storage/usage.md#run-duration) for the order. --- ## vLLM Source: [`vllm-common/`](https://github.com/SpareCores/sc-images/tree/main/vllm-common) in the `sc-images` repository. The vLLM benchmarks measure how fast CPUs and NVIDIA GPUs serve LLMs to many concurrent requests. Each run starts the default models with vLLM (`vllm serve`), from the smallest to the largest. GuideLLM sends synthetic requests to each over HTTP, from one request at a time up to peak load. Three images run the same [harness](https://github.com/SpareCores/sc-images/blob/main/vllm-common/benchmark.py), each on its own hardware. The vLLM benchmarks write one JSON line per model, workload, load stage, metric, and statistic. The lines report the following metrics: - **Latency:** in milliseconds, each as the 50th, 95th, and 99th percentile (p50, p95, p99) and the mean: - TTFT (Time to First Token) - TPOT (Time per Output Token) - ITL (Inter-Token Latency) - E2EL (End-to-End Request Latency) - **Throughput:** each as a mean, in TPS (Tokens per Second) or RPS (Requests per Second): - Output TPS: output tokens generated - Total TPS: prompt and output tokens - RPS: requests served ### Purpose [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes empirical performance measurements for over 5,000 cloud server types, among them [LLM inference speed](https://docs.sparecores.com/images/benchmark-llm.md): how fast `llama.cpp` processes prompts and generates text for one request at a time. The vLLM benchmarks measure LLM *serving* instead: the latency and throughput of a vLLM server under concurrent load, from one request at a time up to peak load. In its note on the LLM inference speed scores, the Navigator points readers who need high concurrency to the vLLM benchmarks, but the Navigator does not show their results yet. The harness runs in the following images, in the order that production tries them: - [`benchmark-vllm-gpu`](https://docs.sparecores.com/images/benchmark-vllm-gpu.md): NVIDIA GPUs with CUDA (Compute Unified Device Architecture) compute capability 8.0 or newer - [`benchmark-vllm-cpu`](https://docs.sparecores.com/images/benchmark-vllm-cpu.md): AMD64 CPUs with AVX-512 (Advanced Vector Extensions 512), and Arm64 CPUs - [`benchmark-vllm-cpu-avx2`](https://docs.sparecores.com/images/benchmark-vllm-cpu-avx2.md): AMD64 CPUs with AVX2 (Advanced Vector Extensions 2) but without AVX-512 Each image's own page covers what differs: its base image, hardware check, and run command. This manual covers the shared methodology, with CPU and GPU sections where they differ. ### Limitations These results compare LLM serving under load. Note the following limitations of all vLLM benchmarks; the image pages add the hardware limits of each image: - **[Load Follows vCPU Count](https://docs.sparecores.com/images/vllm-common/workloads.md#load-settings):** Concurrency, GuideLLM workers, and the number of load stages scale with the host's vCPU count, on GPUs too: not with the GPU count, GPU model, or GPU memory. On CPUs, the vLLM batch limits scale with it as well. - **[Data Type Follows the CPU](https://docs.sparecores.com/images/vllm-common/workloads.md#data-type):** On CPUs, models run in bfloat16 on CPUs that support it, and in float32 on the others, so two server types can serve the same model in different data types. - **[vLLM Server Defaults on GPUs](https://docs.sparecores.com/images/vllm-common/workloads.md#load-settings):** On GPUs, vLLM runs with its own batch limits and data type. The vLLM server settings recorded in each line's `tuning` object are not passed to `vllm serve`. - **[One Thread per Physical Core](https://docs.sparecores.com/images/vllm-common/workloads.md#cpu-parallelism):** On CPUs, vLLM runs with one thread on each physical core, so it does not use the second SMT (Simultaneous Multithreading) thread of a core. The threads of each vLLM worker stay on one NUMA (Non-Uniform Memory Access) node. - **[Partial GPU Use](https://docs.sparecores.com/images/vllm-common/workloads.md#gpu-parallelism):** A model can run on fewer GPUs than the server has, because its tensor-parallel size must divide its attention head count. On more than one GPU, the 70B model, [`llama-70b`](https://docs.sparecores.com/images/vllm-common/workloads.md#models), uses pipeline parallelism instead. - **[Skipped Models and Workloads](https://docs.sparecores.com/images/vllm-common/workloads.md#cpu-memory-fit):** A model or workload that does not fit in the memory it would use, of each NUMA node on CPUs or of each GPU on GPUs, is skipped. The 4-bit `llama-70b` model and the [`long`](https://docs.sparecores.com/images/vllm-common/workloads.md#prompt-and-output-lengths) workload never run on CPUs. The run still exits with code 0 as long as another model or workload wrote results. See also [GPU Memory Fit](https://docs.sparecores.com/images/vllm-common/workloads.md#gpu-memory-fit). - **[One Host, Synthetic Prompts](https://docs.sparecores.com/images/vllm-common/workloads.md#guidellm-sweep):** The vLLM benchmarks measure serving latency and throughput on one host, with synthetic prompts of fixed lengths, sent by GuideLLM from the same container as the server. They do not measure the network latency between a client and the server, or the quality of the model output. ### Usage Each image's page gives its `docker run` command. Every image needs the following: - **Shared memory:** `--shm-size=4g`, because the vLLM benchmarks fail with Docker's default 64 MiB `/dev/shm`. - **Hugging Face token:** export your Hugging Face [access token](https://huggingface.co/docs/hub/security-tokens) as `HF_TOKEN` in the shell, and pass it with `-e HF_TOKEN`. - **GPUs, for `benchmark-vllm-gpu` only:** `--gpus all`, with the NVIDIA driver and the NVIDIA Container Toolkit on the host. Production also runs the container with privileged mode, host networking, and a memory limit. See [Production Setup](https://docs.sparecores.com/images/vllm-common/usage.md#production-setup) before comparing results with production. The vLLM benchmarks download the models from Hugging Face while they run, and use `HF_TOKEN` for the downloads and the model metadata. Two [default models](https://docs.sparecores.com/images/vllm-common/workloads.md#models), `gemma-2b` and `llama-8b`, are gated models: they need an access token from an account that has accepted their licenses. Without one, the vLLM benchmarks skip them and run the other models. The models are cached in `/models`, a Docker volume; see [Hugging Face Access and Model Cache](https://docs.sparecores.com/images/vllm-common/usage.md#hugging-face-access-and-model-cache) to reuse them across runs. A run fits its models and workloads into a 2-hour time budget. Sample production runs took from 28 minutes to 1 hour 40 minutes; see [Run Duration](https://docs.sparecores.com/images/vllm-common/usage.md#run-duration). #### Settings Pass options after the image name, and environment variables with `-e` before it. The following settings are the most common; see the [full option and variable reference](https://docs.sparecores.com/images/vllm-common/usage.md#options) for all of them and their defaults: - `--models` replaces the default models with Hugging Face model IDs or the short names of the default models, separated by spaces, such as `--models qwen-0.5b /`. - `BENCHMARK_VLLM_WORKLOADS` selects workloads by name, such as `chat`. - `BENCHMARK_VLLM_CPU_TP` and `BENCHMARK_VLLM_GPU_TP` override the tensor-parallel size, and `BENCHMARK_VLLM_CPU_DP` and `BENCHMARK_VLLM_GPU_DP` the data-parallel size. - `VLLM_CPU_DTYPE` overrides the data type on CPUs, which is `bfloat16` or `float32` by default, depending on the CPU. - `VLLM_GPU_MEMORY_UTILIZATION` sets the fraction of each GPU's memory that vLLM may use (default: 0.92). - `--plan-only` prints the host's resources and whether each model fits in memory, as JSON, without starting vLLM. - `--version` prints the pinned versions, `vllm=0.27.1 guidellm=0.7.3`, and exits. #### Results The process prints one JSON line to stdout per model, workload, GuideLLM load stage, metric, and statistic. Logs go to stderr, including the load settings, each `vllm serve` command, and the cause when a server fails to start. The vLLM server's own log goes to a temporary file inside the container, not to stdout or stderr. The main fields of each line are the following: - `measurement` names the metric: `ttft`, `tpot`, `itl`, and `e2el` for latency, and `output_throughput`, `total_throughput`, and `request_throughput` for throughput. - `percentile` is `p50`, `p95`, `p99`, or `mean` for latency, and `null` for throughput. The `score` field holds the value, and `unit` is `ms`, `tokens/sec`, or `requests/sec`. - `model` (the short name, such as `llama-8b`), `workload`, and `strategy` identify the run, and `model_id` holds the Hugging Face model ID. The `strategy` field is the GuideLLM load stage, `synchronous`, `throughput`, or `constant`, and `concurrency` is its mean number of concurrent requests. The `target_rate` field is the request rate of a `constant` stage, and `null` when GuideLLM gives no rate, as in production `synchronous` stages. - `mode` is `cpu` or `gpu`, and `arch` is `amd64` or `arm64`. - `tensor_parallel`, `pipeline_parallel`, and `data_parallel` show how the model was split across the NUMA nodes or GPUs. - `tuning` holds the load and vLLM server settings of the run, such as the data type in `dtype`. - `vllm_version` and `guidellm_version` give the pinned versions. See [Output Fields](https://docs.sparecores.com/images/vllm-common/usage.md#output-fields) for the CPU-only and GPU-only fields. For full examples, see the production output of an AWS (Amazon Web Services) [`c8a.12xlarge`](https://sparecores.com/server/aws/c8a.12xlarge) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c8a.12xlarge/0/vllm/stdout)) on CPUs and of an AWS [`g5.16xlarge`](https://sparecores.com/server/aws/g5.16xlarge) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/g5.16xlarge/0/vllm/stdout)) with one NVIDIA A10G GPU. The process exits with code 0 even when it skipped models or workloads, so check which lines are present in stdout and which reasons are logged to stderr. It exits with code 1 when no model could run or no line was written; see [Exit Codes](https://docs.sparecores.com/images/vllm-common/usage.md#exit-codes) for the other codes and the log messages of skipped models. Resource usage is recorded with `resource-tracker`, which [streams it](https://sparecores.com/article/resource-tracker-rs#streaming-to-sentinel) to the [Spare Cores Sentinel](https://sentinel.sparecores.com/) platform for the Spare Cores team's own monitoring. The resource usage is not published. ### Workloads Each model runs the following workloads of fixed synthetic prompt and output lengths. The vLLM benchmarks restart `vllm serve` for each workload, with a context length that fits it: - **[`chat`](https://docs.sparecores.com/images/vllm-common/workloads.md#prompt-and-output-lengths):** 256 prompt tokens and 128 output tokens, with a context of 2,048 tokens. - **[`rag`](https://docs.sparecores.com/images/vllm-common/workloads.md#prompt-and-output-lengths):** 1,024 prompt tokens and 256 output tokens, with a context of 4,096 tokens. - **[`long`](https://docs.sparecores.com/images/vllm-common/workloads.md#prompt-and-output-lengths):** 4,096 prompt tokens and 512 output tokens, with a context of 8,192 tokens. Only GPU runs include it. Each workload runs one GuideLLM sweep: a synchronous stage of one request at a time, a throughput stage at the highest concurrency allowed, and, when the time budget allows, constant-rate stages between the two. On CPUs, hosts with fewer than 8 vCPUs run no constant-rate stages. See [Models](https://docs.sparecores.com/images/vllm-common/workloads.md#models) for the six default models, from 135 million to 70 billion parameters, five of which run on CPUs, and [Run Sequence](https://docs.sparecores.com/images/vllm-common/workloads.md#run-sequence) for when a model is skipped or stops the run. Before it starts the server for each model, the harness does the following: - It splits the model across the NUMA nodes and CPU cores, or across the GPUs; see [CPU Parallelism](https://docs.sparecores.com/images/vllm-common/workloads.md#cpu-parallelism) and [GPU Parallelism](https://docs.sparecores.com/images/vllm-common/workloads.md#gpu-parallelism). - It checks that the model fits in the memory of each NUMA node or each GPU; see [CPU Memory Fit](https://docs.sparecores.com/images/vllm-common/workloads.md#cpu-memory-fit) and [GPU Memory Fit](https://docs.sparecores.com/images/vllm-common/workloads.md#gpu-memory-fit). - On CPUs, it picks a data type that the CPU supports; see [Data Type](https://docs.sparecores.com/images/vllm-common/workloads.md#data-type). - It derives the load from the host's vCPU count, and on CPUs also the vLLM batch limits; see [Load Settings](https://docs.sparecores.com/images/vllm-common/workloads.md#load-settings). ### Design History The harness first ran fixed load settings on every host. It now derives the load from the host's vCPU count and fits all runs into a 2-hour budget, so that a host with hundreds of vCPUs gets more load without running for days. The fixed settings remain as [Legacy Settings](https://docs.sparecores.com/images/vllm-common/workloads.md#legacy-settings) for comparisons with older results. An early version also scaled the throughput stage's ramp-up with the vCPU count, which left almost no time at peak concurrency on hosts with more than 96 vCPUs. The ramp-up is now a share of the stage, capped at 8 seconds on CPUs and 10 seconds on GPUs. See the [changelog](https://docs.sparecores.com/images/vllm-common/design-history.md) for the details of both changes. ### References The terms of the vLLM benchmarks, such as `--max-model-len`, are defined in this manual's [Glossary](https://docs.sparecores.com/images/vllm-common/glossary.md). Common terms, such as GuideLLM, TTFT, and tensor parallelism, are defined in the [Spare Cores Glossary](https://docs.sparecores.com/glossary). ### Contributing To change or rebuild the vLLM images, see the [contributor guide](https://docs.sparecores.com/images/vllm-common/contributors.md). --- ## Usage (vLLM) ### Shared Memory and Versions The vLLM benchmarks fail with Docker's default 64 MiB `/dev/shm`, so pass `--shm-size=4g`. On CPUs, when it runs in Docker, the harness logs a warning if `/dev/shm` is smaller than 1 GiB; on GPUs, it does not warn before it starts. When a vLLM server fails to start on CPUs, the error in the log suggests `--privileged` and `--shm-size=4g`. Only `--shm-size=4g` is required; `--privileged` matches production. Each image's `Dockerfile` sets `BENCHMARK_VLLM_MODE`, so the [harness](https://github.com/SpareCores/sc-images/blob/main/vllm-common/benchmark.py) always runs in that image's mode: `gpu` in [`benchmark-vllm-gpu`](https://docs.sparecores.com/images/benchmark-vllm-gpu.md), even without GPUs, and `cpu` in the CPU images, even on a server with GPUs. Each image checks its hardware at startup; see its page. The `--version` option prints the pinned vLLM and GuideLLM versions and exits, such as: ```bash docker run --rm ghcr.io/sparecores/benchmark-vllm-cpu:main --version ``` It prints `vllm=0.27.1 guidellm=0.7.3`, read from the version files built into the image. All three images take their versions from the same files in `vllm-common/`. ### Hugging Face Access and Model Cache The container needs network access to Hugging Face: the harness reads each model's metadata from it, and the model weights are downloaded from it. Pass an [access token](https://huggingface.co/docs/hub/security-tokens) in `HF_TOKEN`, which the harness uses for both; production passes the host's access token too. The [default models](https://docs.sparecores.com/images/vllm-common/workloads.md#models) `gemma-2b` and `llama-8b` are gated models, so they need an access token from an account that has accepted their licenses. The harness needs one to read a gated model's metadata. Otherwise, it logs `metadata lookup failed for `, skips the model unless `BENCHMARK_VLLM_ALLOW_ESTIMATED_METADATA` is set, and continues with the next model. The images set `HF_HOME` and `HUGGINGFACE_HUB_CACHE` to `/models`, a Docker volume, so a plain run downloads the models again each time. To reuse them across runs, mount a host directory on it with `-v`, such as: ```bash docker run --rm --shm-size=4g -e HF_TOKEN -v "$PWD/models:/models" ghcr.io/sparecores/benchmark-vllm-cpu:main > results.jsonl 2> results.log ``` If the `--models-dir` directory (default: `/models`) has less than 1 GB of free space at startup, the harness exits with code 1. This is its only disk check: it never deletes the models it downloads, so every model of a run, up to the largest one that fits, stays in that directory. Make sure it has room for all of them. It also caches the memory footprint it computes for each model in `.vllm-footprints/` under that directory. ### Run Duration A run has a 2-hour budget, which it splits across the runnable models and workloads; see [Time Budget](https://docs.sparecores.com/images/vllm-common/workloads.md#time-budget). Sample production runs took the following times: | Server type | Image | Duration | | --- | --- | --- | | AWS (Amazon Web Services) [`c8a.large`](https://sparecores.com/server/aws/c8a.large) | `benchmark-vllm-cpu` | 28 minutes ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c8a.large/0/vllm/meta.json)) | | AWS [`c8a.16xlarge`](https://sparecores.com/server/aws/c8a.16xlarge) | `benchmark-vllm-cpu` | 1 hour 5 minutes ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c8a.16xlarge/0/vllm/meta.json)) | | AWS [`g5.16xlarge`](https://sparecores.com/server/aws/g5.16xlarge), one NVIDIA A10G GPU | `benchmark-vllm-gpu` | 1 hour 14 minutes ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/g5.16xlarge/0/vllm/meta.json)) | | UpCloud [`GPU-32xCPU-384GB-3xL40S`](https://sparecores.com/server/upcloud/GPU-32xCPU-384GB-3xL40S), three NVIDIA L40S GPUs | `benchmark-vllm-gpu` | 1 hour 40 minutes ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/upcloud/GPU-32xCPU-384GB-3xL40S/0/vllm/meta.json)) | The `--benchmark-timeout-scale` option takes a whole number of 1 or more, and mainly extends the time limit of each GuideLLM process. It does not let a run go past 2 hours; see [Time Budget](https://docs.sparecores.com/images/vllm-common/workloads.md#time-budget). ### Plan and Probe Modes The following options run part of the harness only: - `--plan-only` prints one JSON object with the host's resources, such as its vCPUs, memory, NUMA (Non-Uniform Memory Access) nodes, and GPUs. For each model, the object shows whether it fits in memory at the shortest workload context and, if not, why; see [CPU Memory Fit](https://docs.sparecores.com/images/vllm-common/workloads.md#cpu-memory-fit) and [GPU Memory Fit](https://docs.sparecores.com/images/vllm-common/workloads.md#gpu-memory-fit). It reads the model metadata from Hugging Face but starts no vLLM server. On CPUs, it reads the host's memory, not the container's `--memory` limit. For example: ```bash docker run --rm -e HF_TOKEN ghcr.io/sparecores/benchmark-vllm-cpu:main --plan-only ``` - `--probe-only` starts the smallest model, set by `VLLM_PROBE_MODEL` (default: `smol-135m`), and waits for the server's health check, for up to 15 minutes on CPUs and 8 minutes on GPUs. It exits with code 0 if the server started, and 1 otherwise. Production uses it to choose the vLLM image; see [Production Setup](#production-setup). ### Output Fields Each JSON line has the main fields listed in [Results](https://docs.sparecores.com/images/vllm-common.md#results). The following fields are specific to CPU or GPU runs, or read differently on each: | Field | On CPUs | On GPUs | | --- | --- | --- | | `mode` | `cpu` | `gpu` | | `avx512` | Whether an AMD64 CPU has AVX-512 (Advanced Vector Extensions 512); `null` on Arm64 | Describes CPU runs; ignore it | | `avx2_only_image` | `true` only when `BENCHMARK_VLLM_ALLOW_AVX2_ONLY` is set, as in [`benchmark-vllm-cpu-avx2`](https://docs.sparecores.com/images/benchmark-vllm-cpu-avx2.md) | Describes CPU runs; ignore it | | `tensor_parallel`, `data_parallel` | The model's split across the NUMA nodes; see [CPU Parallelism](https://docs.sparecores.com/images/vllm-common/workloads.md#cpu-parallelism) | The model's split across the GPUs; see [GPU Parallelism](https://docs.sparecores.com/images/vllm-common/workloads.md#gpu-parallelism) | | `pipeline_parallel` | Always 1 | The GPU count for `llama-70b` on more than one GPU, while `tensor_parallel` still holds the size that the head-count rule gives | | `omp_threads_bind` | The CPUs of each vLLM worker, separated by vertical bars, such as `0-15\|16-31\|32-46` for three workers | `null` | | `gpu_count` | 0 | The number of GPUs | | `gpu_model`, `total_vram_gb` | Describe GPU runs; ignore them | The name of the first GPU, and the memory of all GPUs together in GiB | | `tuning` | The GuideLLM load and the vLLM server settings, passed to `vllm serve`; see [Load Settings](https://docs.sparecores.com/images/vllm-common/workloads.md#load-settings) | The GuideLLM load; the vLLM server settings are computed but not passed to `vllm serve` | The following fields read the same in both modes: - `tuning` holds the GuideLLM load, such as `max_concurrency` and `sweep_size`, and the vLLM server settings `max_num_seqs`, `max_num_batched_tokens`, `dtype`, and `kv_memory_util`. Its `gpu_memory_util` value applies to GPU runs only. - `tuning_version` is the version of the rules that compute these settings, 9 in the current harness, and 0 with `BENCHMARK_VLLM_AUTOCONFIG=0`. - `model_weight_gib` is the size of the model weights in GiB, `model_torch_dtype` the data type in the model's configuration, and `model_metadata_source` where the harness read the metadata from. The `kv_bytes_per_token_per_tp_rank` field is the key-value cache size of one token on each vLLM worker of a tensor-parallel group in bytes. - `runtime_memory` holds the key-value cache size per vLLM worker in GiB and in tokens, and the `--kv-cache-memory-bytes` value that vLLM suggests, as read from the server's log. It is empty when the log has none of them. The scores cover only the requests that succeeded. For a metric that GuideLLM gives no separate statistics of successful requests for, they cover all requests, failed ones included. The output does not record how many requests failed. ### Exit Codes The harness exits with one of the following codes: - **0:** it wrote at least one JSON line, even if it skipped models or workloads, or stopped early. - **1:** one of the following cases applies: - The `--models-dir` directory has less than 1 GB of free space. - The `guidellm` command is missing. - No model could run, for example because none fits in memory. - No JSON line was written. - On GPUs, every visible GPU has a compute capability below 8.0; see [`benchmark-vllm-gpu`](https://docs.sparecores.com/images/benchmark-vllm-gpu.md). - **2:** on CPUs, the CPU is an AMD64 CPU without AVX-512, unless `BENCHMARK_VLLM_ALLOW_AVX2_ONLY` is set; see [`benchmark-vllm-cpu`](https://docs.sparecores.com/images/benchmark-vllm-cpu.md). Check which lines are present in stdout, and look for the following messages in stderr: - `metadata lookup failed for `: the model's Hugging Face metadata could not be read; see [Hugging Face Access and Model Cache](#hugging-face-access-and-model-cache). - `Skipping workload= — insufficient KV cache headroom`: on CPUs, the workload's key-value cache did not fit in memory; see [CPU Memory Fit](https://docs.sparecores.com/images/vllm-common/workloads.md#cpu-memory-fit). - `Overall timeout reached`: the run reached its 2-hour stop, and the remaining models did not run; see [Time Budget](https://docs.sparecores.com/images/vllm-common/workloads.md#time-budget). ### Production Setup The [Inspector](https://docs.sparecores.com/overview#how-it-works) of Spare Cores Navigator runs one task, `vllm`, for the three vLLM images, on every server type except those on the [`inspector_rules.py`](https://github.com/SpareCores/sc-crawler/blob/main/src/sc_crawler/inspector_rules.py) blocklist. The blocklist also excludes server types with less than 2 GiB of memory from this task. The task uses the following settings: | Setting | Production | Plain `docker run` | | --- | --- | --- | | Image | [`benchmark-vllm-gpu`](https://docs.sparecores.com/images/benchmark-vllm-gpu.md) first, then [`benchmark-vllm-cpu`](https://docs.sparecores.com/images/benchmark-vllm-cpu.md), then [`benchmark-vllm-cpu-avx2`](https://docs.sparecores.com/images/benchmark-vllm-cpu-avx2.md). The GPU image is skipped on servers without GPUs or with every GPU below compute capability 8.0, and `benchmark-vllm-cpu-avx2` on Arm64. Each image first runs `--probe-only`, for at most 18 minutes, and the first that exits with code 0 runs the full benchmark, with no fallback after that. | Only the image passed to `docker run`, with no `--probe-only` step first and no fallback to another image | | GPUs | All GPUs | As passed with `--gpus` | | Shared memory | 4 GiB | 64 MiB, unless `--shm-size` is passed | | Privileges | Privileged | Not privileged, unless `--privileged` is passed | | Networking | Host networking | Docker's default bridge network, unless `--network host` is passed | | Memory limit | 85% of the host's available memory, with swap disabled and a swappiness of 0 | None, unless `--memory` is passed, and swap as the host allows | | Environment | The host's `HF_TOKEN` and the `resource-tracker` settings | As passed with `-e`, such as `-e HF_TOKEN`, without the `resource-tracker` settings | | Overall timeout | 3 hours | None, only the harness's own 2-hour budget | | Other tasks | Not run in parallel with other benchmarks | Whatever else runs on the host at the same time | To reproduce the memory limit, pass `--memory= --memory-swap= --memory-swappiness=0`, with `` set to 85% of the host's available memory; the same value for `--memory-swap` disables swap. Production reads the memory that Linux reports as available, the `available` column of `free -g` in GiB. Write the limit with a unit: for example, with 40 GiB available, pass `--memory=34g --memory-swap=34g`. Production stores the results of all three images under the task name `vllm`, in the `data////vllm/` folder of [`sc-inspector-data`](https://github.com/SpareCores/sc-inspector-data), where `` is a numbered folder, `0` for most server types. The task tries the fastest image first, so the result of a server type comes from the fastest image that runs on it. We investigate failed production runs, manually or semi-automatically, and then run them again. Until then, a server type's latest result in `sc-inspector-data` can be a failed or partial run. ### Options Pass the following options after the image name. See [Environment Variables](#environment-variables) for the settings passed with `-e`. | Option | Meaning | Default | | --- | --- | --- | | `--models` | Hugging Face model IDs, or short names of the [default models](https://docs.sparecores.com/images/vllm-common/workloads.md#models), to run instead of the default models, separated by spaces, such as `qwen-0.5b /` | The six default models on GPUs, and the five that run on CPUs | | `--models-dir` | Directory of the 1 GB free-space check and of the model metadata that the harness downloads. The model weights still go to `HF_HOME` and `HUGGINGFACE_HUB_CACHE` (`/models`), so mount a disk at `/models` to move them | `/models` | | `--benchmark-timeout-scale` | Whole number of 1 or more that multiplies the time limits of GuideLLM, but not the 2-hour stop; see [Time Budget](https://docs.sparecores.com/images/vllm-common/workloads.md#time-budget) | `1` | | `--probe-only` | Start the probe model, wait for its health check, and exit | Off | | `--plan-only` | Print the host's resources and whether each model fits in memory, as JSON, without starting vLLM | Off | | `--version` | Print the pinned vLLM and GuideLLM versions and exit | Off | ### Environment Variables A default marked "legacy" applies with `BENCHMARK_VLLM_AUTOCONFIG=0`; see [Legacy Settings](https://docs.sparecores.com/images/vllm-common/workloads.md#legacy-settings). If a row lists two variables and both are set, the first wins, except in the `HF_HOME` and `HUGGINGFACE_HUB_CACHE` row: the Hugging Face libraries read those, not the harness. The harness does not check the GPU tensor-parallel override against the GPU count or the head count of the model. | Variable | Meaning | Default | | --- | --- | --- | | `HF_TOKEN` | Hugging Face access token for the model metadata and downloads | Unset | | `BENCHMARK_VLLM_MODE` | `gpu` or `cpu` mode | Set by each image | | `BENCHMARK_VLLM_WORKLOADS` | Comma-separated workload names; a value that matches no workload of the mode, such as `long` on CPUs, runs all of them | `chat,rag,long` on GPUs, `chat,rag` on CPUs | | `BENCHMARK_VLLM_AUTOCONFIG` | `0`, `false`, or `no` uses the legacy static settings | `1` | | `BENCHMARK_VLLM_PER_WORKLOAD_SERVER` | Restart vLLM for each workload with its context length; `0`, `false`, or `no` turns this off, so one server with the context length of the longest workload runs all workloads | Same as `BENCHMARK_VLLM_AUTOCONFIG` | | `BENCHMARK_VLLM_ALLOW_ESTIMATED_METADATA` | Any non-empty value, even `0`, runs a model with the size estimated from the parameter count in the default model table when its Hugging Face metadata cannot be read | Unset, so the model is skipped | | `BENCHMARK_VLLM_VCPUS` | Host vCPU count used for the load settings | The CPUs the process may run on | | `BENCHMARK_VLLM_MAX_NUM_SEQS` | Passed to vLLM as `--max-num-seqs` | Computed on CPUs; unset on GPUs, so vLLM's default | | `BENCHMARK_VLLM_MAX_NUM_BATCHED_TOKENS` | Passed to vLLM as `--max-num-batched-tokens` | Computed on CPUs; unset on GPUs, so vLLM's default | | `BENCHMARK_VLLM_RAMPUP` | Ramp-up of the throughput stage in seconds | Computed | | `BENCHMARK_VLLM_ALLOW_AVX2_ONLY` | On CPUs: `1`, `true`, or `yes` skips the AVX-512 check on AMD64 | Unset; `true` in `benchmark-vllm-cpu-avx2` | | `BENCHMARK_VLLM_CPU_TP`, `VLLM_CPU_TENSOR_PARALLEL_SIZE` | On CPUs: tensor-parallel size | The NUMA node count if it divides the model's attention heads, otherwise 1 | | `BENCHMARK_VLLM_CPU_DP`, `VLLM_CPU_DATA_PARALLEL_SIZE` | On CPUs: data-parallel size | Computed; see [CPU Parallelism](https://docs.sparecores.com/images/vllm-common/workloads.md#cpu-parallelism) | | `VLLM_CPU_OMP_THREADS_BIND` | On CPUs: CPUs of each vLLM worker; any value other than `auto` is passed to vLLM as is | `auto`, set by the CPU images, so the harness computes it | | `BENCHMARK_VLLM_NUMA_NODES` | On CPUs: NUMA node count | Read from the host | | `BENCHMARK_VLLM_CPU_TOPOLOGY` | On CPUs: logical CPUs of each NUMA node, as CPU lists separated by vertical bars | Read from the host | | `BENCHMARK_VLLM_CPU_PHYSICAL_TOPOLOGY` | On CPUs: one logical CPU per physical core of each NUMA node, in the same format | Read from the host | | `VLLM_CPU_GPU_MEMORY_UTILIZATION` | On CPUs: value of `--gpu-memory-utilization` for each vLLM worker | Computed | | `VLLM_CPU_KVCACHE_SPACE` | On CPUs: passed to vLLM, the key-value cache size of its CPU backend in GiB | Unset | | `VLLM_CPU_DTYPE` | On CPUs: value of `--dtype` | `bfloat16` or `float32`, depending on the CPU | | `BENCHMARK_VLLM_GPU_TP`, `VLLM_GPU_TENSOR_PARALLEL_SIZE` | On GPUs: tensor-parallel size | From the GPU count and the model's attention heads | | `BENCHMARK_VLLM_GPU_DP`, `VLLM_GPU_DATA_PARALLEL_SIZE` | On GPUs: data-parallel size | `1` | | `VLLM_GPU_MEMORY_UTILIZATION` | On GPUs: value of `--gpu-memory-utilization`, also used by the memory fit check | `0.92` | | `VLLM_PROBE_MODEL` | Model of `--probe-only` | `smol-135m` | | `VLLM_PROBE_HEALTH_TIMEOUT_CPU_SEC` | On CPUs: health check wait of `--probe-only` in seconds | `900` | | `VLLM_PROBE_HEALTH_TIMEOUT_GPU_SEC` | On GPUs: health check wait of `--probe-only` in seconds | `480` | | `GUIDELLM_CPU_SWEEP_SIZE`, `GUIDELLM_GPU_SWEEP_SIZE`, `GUIDELLM_SWEEP_SIZE` | Number of sweep stages, at least 2; the CPU or GPU variable applies in its mode | Computed; legacy: 3 | | `GUIDELLM__MAX_CONCURRENCY` | Maximum concurrent requests | Computed | | `GUIDELLM__MAX_WORKER_PROCESSES` | GuideLLM worker processes | Computed | | `GUIDELLM_MAX_REQUESTS`, `GUIDELLM_MAX_REQUESTS_CPU` | Adds a request cap (`max_requests` constraint) to each GuideLLM stage; with `BENCHMARK_VLLM_AUTOCONFIG=0`, only `GUIDELLM_MAX_REQUESTS_CPU` applies on CPUs | Unset; legacy: 25 on CPUs, 120 on GPUs | | `GUIDELLM_PROFILES`, `GUIDELLM_CPU_PROFILES` | Any of `legacy`, `sync-throughput`, or `sync` (all three do the same) runs one synchronous and one throughput stage instead of a sweep, with autoconfig on or off; the CPU variable applies on CPUs only | Unset | | `GUIDELLM_THROUGHPUT_RATE` | Concurrency of the throughput stage; applies only with `GUIDELLM_PROFILES` or `GUIDELLM_CPU_PROFILES` | `8` on CPUs, `16` on GPUs | | `HF_HOME`, `HUGGINGFACE_HUB_CACHE` | Hugging Face cache directory | `/models`, set by the images | | `TRACKER_QUIET` | Quiet output of `resource-tracker` | `true`, set by the images | --- ## Workloads (vLLM) ### Prompt and Output Lengths Each workload sends synthetic prompts of a fixed length and asks for a fixed number of output tokens. The harness starts `vllm serve` with a context length (`--max-model-len`). Each workload gets a context length that fits it, because a shorter one needs a smaller key-value cache: | Workload | Prompt tokens | Output tokens | Context length | Runs on | | --- | --- | --- | --- | --- | | `chat` | 256 | 128 | 2,048 | CPUs and GPUs | | `rag` | 1,024 | 256 | 4,096 | CPUs and GPUs | | `long` | 4,096 | 512 | 8,192 | GPUs only | Set `BENCHMARK_VLLM_WORKLOADS` to run fewer workloads, such as `BENCHMARK_VLLM_WORKLOADS=chat`. ### Models The six default models run from smallest to largest: | Short name | Hugging Face model | Parameters | Attention heads | | --- | --- | --- | --- | | `smol-135m` | `HuggingFaceTB/SmolLM2-135M-Instruct` | 135 million | 9 | | `qwen-0.5b` | `Qwen/Qwen2.5-0.5B-Instruct` | 0.5 billion | 14 | | `gemma-2b` | `google/gemma-2-2b-it` | 2 billion | 8 | | `llama-8b` | `meta-llama/Llama-3.1-8B-Instruct` | 8 billion | 32 | | `phi-4` | `microsoft/phi-4` | 14 billion | 40 | | `llama-70b` | `unsloth/Llama-3.3-70B-Instruct-bnb-4bit` | 70 billion | From its `config.json` | The `gemma-2b` and `llama-8b` models are gated models; see [Hugging Face Access and Model Cache](https://docs.sparecores.com/images/vllm-common/usage.md#hugging-face-access-and-model-cache). The head counts above are fallbacks: the harness reads each model's head count from its `config.json` on Hugging Face first. The `llama-70b` model is 4-bit quantized with `bitsandbytes`, and vLLM serves it with `--quantization bitsandbytes --load-format bitsandbytes`. The harness treats these serve options as GPU-only, so it never runs that model on CPUs, where five default models run. The `--models` option replaces this list with Hugging Face model IDs or the short names above. ### Run Sequence For each model, the harness first checks that the model fits in memory; see [CPU Memory Fit](#cpu-memory-fit) and [GPU Memory Fit](#gpu-memory-fit). Then it runs the following steps for each workload: 1. Computes the [load settings](#load-settings) for the workload's context length. 2. Skips the workload if the model's memory plan for that context length does not fit. 3. Starts `vllm serve` and waits for its health check, up to 10 minutes on CPUs and 5 minutes on GPUs. 4. Runs one [GuideLLM sweep](#guidellm-sweep), and converts its results into JSON lines. 5. Stops the server: it sends `SIGTERM` to the server's process group, and `SIGKILL` after 30 seconds. The following rules skip models or stop the run early: - If a model does not fit in memory, it is skipped, and the run continues with the next model. - If a model's server fails its health check, the run stops, and no larger model is tried. - If a model's highest mean output throughput is above 0 but below 1 token per second, the run stops after that model. - If a GuideLLM run fails or times out, the lines of its partial results are still written, if it saved any. In all of these cases, the run exits with code 0 as long as it wrote at least one JSON line; see [Exit Codes](https://docs.sparecores.com/images/vllm-common/usage.md#exit-codes). ### GuideLLM Sweep GuideLLM runs in the same container as the vLLM server and sends its requests to `http://127.0.0.1:8000` through vLLM's OpenAI-compatible `/v1/completions` endpoint, so the results include no network latency between hosts. The prompts are synthetic text of the workload's token counts. GuideLLM generates them from a fixed random seed (42), the starting value of its random number generator, so every run sends the same prompts. The sweep size, `N`, is the number of load stages in a GuideLLM sweep. The output records each stage as a `strategy`: 1. `synchronous`: one request at a time, for the baseline latency. 2. `throughput`: as many concurrent requests as the maximum concurrency allows, for the peak throughput. 3. `constant`: `N - 2` stages at constant request rates between the synchronous and throughput stages. Each stage stops at its time limit, and the throughput stage ramps up its concurrency first. A stage has a request cap only when `GUIDELLM_MAX_REQUESTS` or, on CPUs, `GUIDELLM_MAX_REQUESTS_CPU` sets one. The GuideLLM command and its options are in the [harness](https://github.com/SpareCores/sc-images/blob/main/vllm-common/benchmark.py). For example, on an AWS (Amazon Web Services) [`c8a.12xlarge`](https://sparecores.com/server/aws/c8a.12xlarge) CPU server, each sweep had a size of 3, with 80 seconds per stage ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c8a.12xlarge/0/vllm/stdout)). On an AWS [`g5.16xlarge`](https://sparecores.com/server/aws/g5.16xlarge) with one NVIDIA A10G GPU, the `chat` sweep had a size of 6: one synchronous, one throughput, and four constant-rate stages ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/g5.16xlarge/0/vllm/stdout)). ### Load Settings By default (`BENCHMARK_VLLM_AUTOCONFIG=1`), the harness uses the host's vCPU count (`v`) to set the GuideLLM load for both CPU and GPU runs. It does not derive the load from GPU count, model, or memory. Set `BENCHMARK_VLLM_VCPUS` to use a different vCPU count. Each output line's `tuning` object records the settings below. See [Environment Variables](https://docs.sparecores.com/images/vllm-common/usage.md#environment-variables) to override them. #### On CPUs On CPUs, the harness uses the following formulas for the load, where `workers`, the number of vLLM workers, is the tensor-parallel size times the data-parallel size: - **Maximum concurrency:** `max(min_concurrency, int(6 * v ** 0.65))`, where `min_concurrency` is `max(1, min(32, 4 * v), 4 * workers)` - **GuideLLM worker processes:** `max(1, min(32, v, max_concurrency // 8))` - **Sweep size:** `max(2, min(4, 2 + floor(log2(v) / 3)))`, that is, 2 below 8 vCPUs, 3 from 8 to 63 vCPUs, and 4 from 64 vCPUs, then reduced, down to 2, while the stages would be shorter than their minimum - **Seconds per stage:** the [time limit](#time-budget) of the sweep divided by the sweep size, at most 240 seconds, and at least 25 seconds for `chat` and 44 seconds for `rag`, a minimum that grows with the context length - **Throughput-stage ramp-up:** 15% of the seconds per stage, between 2s and 8s, and short enough to leave at least 25s of the stage at peak concurrency - **Warmup:** `10`, passed to GuideLLM as `warmup` On CPUs, the harness also computes the following vLLM server settings and passes them to `vllm serve`: - **`--max-num-seqs`:** the most requests that vLLM processes at once, with the rest waiting in a queue; it grows sub-linearly with `v`, and is capped by the CPU cores of each vLLM worker and by the key-value cache that fits in memory - **`--max-num-batched-tokens`:** the most tokens, prompt and generated together, that vLLM processes in one step: `min(max_model_len, max(2048, int(64 * v ** 0.5)))`, where `max_model_len` is the workload's context length - **`--dtype`:** the data type; see [Data Type](#data-type) - **`--gpu-memory-utilization`:** the memory fraction of each vLLM worker; see [CPU Memory Fit](#cpu-memory-fit) - **`--tensor-parallel-size` and `--data-parallel-size`:** see [CPU Parallelism](#cpu-parallelism) #### On GPUs On GPUs, the harness uses the following formulas for the load: - **Maximum concurrency:** `max(64, int(8 * v ** 0.60))` - **GuideLLM worker processes:** `min(max(8, int(3 * v ** 0.50)), max(4, v))` - **Sweep size:** `max(2, min(3 + floor(log2(v) / 2), 6 + floor(log2(v) / 3)))`, then reduced until the sweep fits the [time budget](#time-budget) of the run - **Seconds per stage:** the run budget divided by the sweep size, at least `max(25, 22 * max_model_len / 2048)`, and at most 240 - **Throughput-stage ramp-up in seconds:** `min(10, max(2, 0.15 * seconds per stage))` - **Warmup:** `0.05`, so GuideLLM leaves the first 5% of each stage out of the results, to exclude startup effects ([GuideLLM](https://github.com/vllm-project/guidellm/blob/v0.7.3/README.md)) Production runs used the following settings. The workload columns give the sweep size times the seconds per stage: | Server type | vCPUs | Maximum concurrency | Workers | `chat` | `rag` | `long` | | --- | --- | --- | --- | --- | --- | --- | | AWS `g5.16xlarge` | 64 | 97 | 24 | 6 x 40s | 5 x 48s | 2 x 120s | | AWS `g5.8xlarge` | 32 | 64 | 16 | 5 x 48s | 5 x 48s | 2 x 120s | The `long` workload also ran two stages of 120 seconds on the UpCloud [`GPU-32xCPU-384GB-3xL40S`](https://sparecores.com/server/upcloud/GPU-32xCPU-384GB-3xL40S) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/upcloud/GPU-32xCPU-384GB-3xL40S/0/vllm/stdout)). Its minimum of 88 seconds per stage leaves room for only two stages in a run budget of 240 seconds. On GPUs, the harness also computes the vLLM server settings `max_num_seqs`, `max_num_batched_tokens`, `dtype`, and `kv_memory_util`, and records them in the `tuning` object, but does not pass them to `vllm serve`, which uses its own defaults. Set `BENCHMARK_VLLM_MAX_NUM_SEQS` or `BENCHMARK_VLLM_MAX_NUM_BATCHED_TOKENS` to pass `--max-num-seqs` or `--max-num-batched-tokens`. ### Time Budget A run has an overall budget of 2 hours. The harness splits it as follows: 1. It reserves 600 seconds, plus time for each server start, one per runnable model and workload: 120 seconds on CPUs and 60 seconds on GPUs. 2. It divides the rest by the number of sweeps, one per model and workload. 3. It limits each sweep to 45 to 240 seconds. For example, on the `g5.16xlarge`, the log shows `overall=7200s reserve=1320s runs=12 per_run=240s` ([recorded log](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/g5.16xlarge/0/vllm/stderr)). Before it starts each model, workload, and GuideLLM process, the harness checks the elapsed time. After 2 hours, it starts nothing new: it logs "Overall timeout reached" before the next model, and the models it has not reached do not run. This can happen, for example, when the 45-second minimum per sweep pushes the plan past 2 hours. The `--benchmark-timeout-scale` option takes a whole number, and values below 1 act as 1. It multiplies the following limits: - The overall budget, before the split above. Each sweep stays limited to 240 seconds, so its stages get longer only when its budget was below 240 seconds without the scale. - The time limit of each GuideLLM process. - With `BENCHMARK_VLLM_AUTOCONFIG=0`, the time limit of each stage. The option leaves the 2-hour stop as it is, so a value above 1 does not let a run go on longer. ### CPU Parallelism On CPUs, the harness does not run one vLLM worker across the whole host. It splits each model across the NUMA (Non-Uniform Memory Access) nodes and CPU cores as follows: - **Tensor parallelism:** The tensor-parallel size is the NUMA node count when that count divides the model's attention head count, and 1 otherwise. - **Data parallelism:** The data-parallel size is the number of model replicas, each with a full copy of the weights. The harness sets it as follows: - At least one replica per NUMA node when the tensor-parallel size is below the NUMA node count. - On every host, more replicas if physical core count / (tensor-parallel size × cores per worker for the model size) gives more; see the table below. - At most 32 replicas, and only as many as fit in the memory of each NUMA node. - **Thread binding:** The harness sets `VLLM_CPU_OMP_THREADS_BIND` to an explicit CPU list for each worker, with one logical CPU per physical core, all from one NUMA node. It finds the SMT (Simultaneous Multithreading) siblings of each core in sysfs (`thread_siblings_list`) and leaves them out. On hosts with at least 2 vCPUs, it keeps one CPU free for the server's frontend process. A `VLLM_CPU_OMP_THREADS_BIND` value other than `auto` replaces these lists. The cores per worker depend on the model size: | Model size | Physical cores per worker | | --- | --- | | Up to 0.5 billion parameters | 16 | | Up to 2 billion parameters | 32 | | Up to 8 billion parameters | 64 | | Larger | 128 | For example, on the `c8a.12xlarge`, `smol-135m` ran as three replicas: 48 physical cores divided by 16 cores per worker. They were bound to `0-15|16-31|32-46`, that is, 16, 16, and 15 cores, with one CPU left for the frontend ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c8a.12xlarge/0/vllm/stdout)). ### GPU Parallelism On GPUs, the harness does not always use every GPU of the server. It splits each model across the GPUs as follows: - **Tensor parallelism:** The tensor-parallel size is the largest value, up to the GPU count, that divides the model's attention head count. The server starts with `--tensor-parallel-size --gpu-memory-utilization 0.92`. - **Data parallelism:** One replica, unless `BENCHMARK_VLLM_GPU_DP` sets more. - **Pipeline parallelism:** On more than one GPU, the `bitsandbytes`-quantized `llama-70b` starts with `--pipeline-parallel-size ` instead, and without `--gpu-memory-utilization`. `VLLM_GPU_MEMORY_UTILIZATION` then affects only its memory fit check. For example, on the UpCloud server with three NVIDIA L40S GPUs, `smol-135m` (9 attention heads) ran on all three GPUs, and `qwen-0.5b` (14 heads) and the models up to `phi-4` on two ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/upcloud/GPU-32xCPU-384GB-3xL40S/0/vllm/stdout)). The `llama-70b` model ran with `--pipeline-parallel-size 3` ([recorded log](https://github.com/SpareCores/sc-inspector-data/blob/main/data/upcloud/GPU-32xCPU-384GB-3xL40S/0/vllm/stderr)). For `llama-70b` on more than one GPU, read `pipeline_parallel` in the output: `tensor_parallel` still shows the size that the head-count rule gives, and the log line of the parallel settings shows it too, although the server runs without tensor parallelism. ### CPU Memory Fit Before it starts any server, the harness checks each model against the memory of the host, using the model's metadata from Hugging Face. The check reads the host's memory, not the container's `--memory` limit, so the plan can count on memory that the container cannot use. The check works as follows: - A model runs when at least one tensor- and data-parallel layout fits: the weights and a minimum key-value cache of each vLLM worker must fit in the free memory of the NUMA node that the worker runs on. - When the serving data type is wider than the data type in the model's configuration, the check scales the size of the weights by the same ratio. For example, it doubles the weights of a bfloat16 model that runs in float32; see [Data Type](#data-type). - Before each workload, the same check runs with the workload's context length, and a workload whose key-value cache does not fit is skipped. - If the Hugging Face metadata cannot be read and `BENCHMARK_VLLM_ALLOW_ESTIMATED_METADATA` is unset, the model is skipped. On CPUs, vLLM reuses its `--gpu-memory-utilization` option, despite the name, to set the fraction of the NUMA node's total memory that each worker reserves for itself. What is left after the weights and intermediate results goes to the key-value cache, so a larger fraction lets a worker hold more requests at once. The harness splits the fraction among the workers that share a NUMA node, so that together they reserve at most 70% of the node's free memory, and caps each worker's fraction at 0.50. It leaves 0.8 GiB of each node for startup, and when several workers share a node, it lowers the 70% budget by a further 10%. Set `VLLM_CPU_GPU_MEMORY_UTILIZATION` to override the fraction. Run the image with `--plan-only` to see the plan of each model on a host. ### GPU Memory Fit Before it starts any server, the harness estimates how much memory each model needs on each GPU, without downloading the weights: - The weight size comes from the file metadata on Hugging Face, and the layer count, attention and key-value heads, hidden size, and data type from the model's `config.json`. - Each GPU needs the following, added together: - (weight size × 1.1) / (tensor-parallel size × pipeline-parallel size) - the key-value cache of one sequence of the full context length, rounded up to blocks of 16 tokens - 0.5 GiB - A model fits when every GPU it uses has that much memory, both within 92% of its total memory and within 95% of its free memory. Each GPU is checked on its own, not the total memory of all GPUs. A model that does not fit is skipped, and the run continues with the next one. Before each workload, the same check runs with the workload's context length, and a workload that does not fit is skipped. If the Hugging Face metadata cannot be read and `BENCHMARK_VLLM_ALLOW_ESTIMATED_METADATA` is unset, the model is skipped. For example, on the `g5.16xlarge`, whose A10G GPU has 22 GiB of memory, `phi-4` and `llama-70b` were skipped for insufficient memory ([recorded log](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/g5.16xlarge/0/vllm/stderr)). Run the image with `--plan-only` to see the plan of each model on a host. ### Data Type On CPUs, the harness runs the models in bfloat16 when `/proc/cpuinfo` lists the `bf16` flag on Arm64 or `avx512_bf16` on AMD64, and in float32 otherwise. It passes the data type to `vllm serve` as `--dtype`, and records it in the `dtype` field of each line's `tuning` object. Set `VLLM_CPU_DTYPE`, such as `-e VLLM_CPU_DTYPE=bfloat16`, to use another data type; the [memory check](#cpu-memory-fit) then uses the data type set. Two server types can therefore serve the same model in different data types. An AMD64 CPU without AVX-512 has no `avx512_bf16` flag, so it runs the models in float32, which takes 4 bytes per weight, twice as many as bfloat16. Such a host can fit fewer models than a host with the same memory that supports bfloat16. The harness does not fall back to float16: on AWS Graviton2 CPUs, which lack `bf16`, the vLLM server hangs with float16, as recorded in the [harness](https://github.com/SpareCores/sc-images/blob/main/vllm-common/benchmark.py). On GPUs, the harness does not pass `--dtype`, so vLLM picks the data type. ### Legacy Settings With `BENCHMARK_VLLM_AUTOCONFIG=0`, the harness uses static settings instead of the formulas in [Load Settings](#load-settings): | Setting | On CPUs | On GPUs | | --- | --- | --- | | Sweep size | 3 | 3 | | Maximum concurrency | 512 | 512 | | GuideLLM worker processes | 10 | 10 | | Throughput-stage ramp-up | None | None | | Seconds per stage | `45 + 12 * ` | `40 + 8 * ` | | Request cap per stage | 25, set with `GUIDELLM_MAX_REQUESTS_CPU` | 120, set with `GUIDELLM_MAX_REQUESTS` | Legacy runs also use one vLLM server for all workloads, unless `BENCHMARK_VLLM_PER_WORKLOAD_SERVER` is set. With autoconfig on or off, set `GUIDELLM_PROFILES`, or on CPUs `GUIDELLM_CPU_PROFILES`, to any of `legacy`, `sync-throughput`, or `sync` (all three do the same) to run one synchronous and one throughput stage instead of a sweep, with the throughput stage at a concurrency of `GUIDELLM_THROUGHPUT_RATE` (default: 8 on CPUs, 16 on GPUs). --- ## vLLM CPU Source: [`images/benchmark-vllm-cpu/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark-vllm-cpu) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark-vllm-cpu:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark-vllm-cpu). This benchmark measures how fast AMD64 CPUs with AVX-512 (Advanced Vector Extensions 512) and Arm64 CPUs serve LLMs to many concurrent requests. It is the CPU image of the vLLM benchmarks: it starts each default model with vLLM (`vllm serve`) on the CPU and sends synthetic requests to it with GuideLLM, from one request at a time up to peak load. The [vLLM family manual](https://docs.sparecores.com/images/vllm-common.md) describes the methodology, settings, and output that all vLLM benchmarks share, and this page covers only what this image does differently. Like the other vLLM benchmarks, this benchmark reports the latency and throughput [metrics](https://docs.sparecores.com/images/vllm-common.md) of each model under load; see the manual's [Results](https://docs.sparecores.com/images/vllm-common.md#results). ### Purpose This image runs the vLLM benchmarks on CPUs, with the [official vLLM CPU server images](https://hub.docker.com/r/vllm/vllm-openai-cpu) from Docker Hub. Production tries it on every server type where [`benchmark-vllm-gpu`](https://docs.sparecores.com/images/benchmark-vllm-gpu.md) does not run. On AMD64 CPUs without AVX-512, which the official image does not support, [`benchmark-vllm-cpu-avx2`](https://docs.sparecores.com/images/benchmark-vllm-cpu-avx2.md) runs the same benchmark instead. See the manual's [Purpose](https://docs.sparecores.com/images/vllm-common.md#purpose) for how the vLLM benchmarks relate to the LLM inference speed that Spare Cores Navigator publishes. ### Limitations The results of this image share the [limitations](https://docs.sparecores.com/images/vllm-common.md#limitations) of the vLLM benchmarks on CPUs. Note the following limitation of this image in addition: - **[AVX-512 on AMD64](#requirements-and-versions):** On AMD64 CPUs, this benchmark needs AVX-512. Without it, it exits with code 2, and its error message points to `benchmark-vllm-cpu-avx2`. Arm64 CPUs skip this check. ### Usage Run the image via Docker with the container settings of production, with `` set as the manual's [Production Setup](https://docs.sparecores.com/images/vllm-common/usage.md#production-setup) describes: ```bash docker run --rm --privileged --network host --shm-size=4g --memory= --memory-swap= --memory-swappiness=0 -e HF_TOKEN ghcr.io/sparecores/benchmark-vllm-cpu:main > results.jsonl 2> results.log ``` A minimal run needs only `--shm-size=4g` and `-e HF_TOKEN`; the other options of the first command only reproduce production: ```bash docker run --rm --shm-size=4g -e HF_TOKEN ghcr.io/sparecores/benchmark-vllm-cpu:main > results.jsonl 2> results.log ``` See the manual's [Usage](https://docs.sparecores.com/images/vllm-common.md#usage) for the Hugging Face token, the model cache, the 2-hour time budget, and the [settings](https://docs.sparecores.com/images/vllm-common/usage.md#options) that this image takes. #### Requirements and Versions The image is built on the official vLLM CPU server images from Docker Hub, `vllm/vllm-openai-cpu:v0.27.1-x86_64` for AMD64 and `vllm/vllm-openai-cpu:v0.27.1-arm64` for Arm64, and its `:main` tag has variants for both. At startup on AMD64, this benchmark reads the CPU flags from `/proc/cpuinfo`. The vLLM CPU image for AMD64 needs AVX-512, so without the `avx512f` flag, this benchmark logs an error that names `ghcr.io/sparecores/benchmark-vllm-cpu-avx2:main` and exits with code 2. Setting `BENCHMARK_VLLM_ALLOW_AVX2_ONLY` to `1`, `true`, or `yes` skips this check; `benchmark-vllm-cpu-avx2` sets it, and this image does not. Arm64 CPUs skip the check, and this benchmark does not check the Arm64 CPU generation either. On Arm64 CPUs without the `bf16` flag, it runs the models in float32; see [Data Type](https://docs.sparecores.com/images/vllm-common/workloads.md#data-type). #### Results The JSON lines in stdout have the fields that the manual's [Results](https://docs.sparecores.com/images/vllm-common.md#results) and [Output Fields](https://docs.sparecores.com/images/vllm-common/usage.md#output-fields) describe for CPU runs. In this image, `arch` is `amd64` or `arm64`, `avx512` is `true` on AMD64 and `null` on Arm64, and `avx2_only_image` is `false`. The process exits with the codes of the manual's [Exit Codes](https://docs.sparecores.com/images/vllm-common/usage.md#exit-codes), and with code 2 on an AMD64 CPU without AVX-512. ### Workloads This benchmark runs the `chat` and `rag` workloads of the vLLM benchmarks on the five default models that run on CPUs; see the manual's [Workloads](https://docs.sparecores.com/images/vllm-common.md#workloads). ### References The terms of the vLLM benchmarks, such as `--max-model-len`, are defined in their [Glossary](https://docs.sparecores.com/images/vllm-common/glossary.md). Common terms, such as GuideLLM, NUMA (Non-Uniform Memory Access), and AVX-512, are defined in the [Spare Cores Glossary](https://docs.sparecores.com/glossary). To change or rebuild this image, see the [contributor guide](https://docs.sparecores.com/images/vllm-common/contributors.md) of the vLLM benchmarks. --- ## vLLM CPU AVX2 Source: [`images/benchmark-vllm-cpu-avx2/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark-vllm-cpu-avx2) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark-vllm-cpu-avx2:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark-vllm-cpu-avx2). This benchmark measures how fast AMD64 CPUs with AVX2 (Advanced Vector Extensions 2) but without AVX-512 (Advanced Vector Extensions 512) serve LLMs to many concurrent requests. It runs the vLLM benchmarks on a vLLM build for these CPUs: it starts each default model with `vllm serve` on the CPU and sends synthetic requests to it with GuideLLM, from one request at a time up to peak load. The [vLLM family manual](https://docs.sparecores.com/images/vllm-common.md) describes the methodology, settings, and output that all vLLM benchmarks share, and this page covers only what this image does differently. Like the other vLLM benchmarks, this benchmark reports the latency and throughput [metrics](https://docs.sparecores.com/images/vllm-common.md) of each model under load; see the manual's [Results](https://docs.sparecores.com/images/vllm-common.md#results). Each line also marks the AVX2 image and the data type that the model ran in; see [Results](#results). ### Purpose The [`benchmark-vllm-cpu`](https://docs.sparecores.com/images/benchmark-vllm-cpu.md) image is built on the [official vLLM CPU server image](https://hub.docker.com/r/vllm/vllm-openai-cpu) from Docker Hub, whose AMD64 build needs AVX-512. On an AMD64 CPU without AVX-512, `benchmark-vllm-cpu` exits with code 2 and names this image in its error message. This image runs the same measurements on vLLM built from source for AVX2, so that server types with these CPUs can get vLLM results too. See the manual's [Purpose](https://docs.sparecores.com/images/vllm-common.md#purpose) for how the vLLM benchmarks relate to the LLM inference speed that Spare Cores Navigator publishes. ### Limitations The results of this image share the [limitations](https://docs.sparecores.com/images/vllm-common.md#limitations) of the vLLM benchmarks on CPUs. Note the following limitations of this image in addition: - **[No CPU Feature Check](#requirements-and-versions):** This image skips the harness's AVX-512 check and does not check for AVX2 either. Production tries this image on every AMD64 server type where the two earlier vLLM images fail their probes, without checking the CPU flags first. See also [Production Setup](#production-setup). - **[Data Type and Memory](#data-type):** On CPUs without AVX-512, the models run in float32 by default. The memory check counts the weights of a bfloat16 model at twice their size, because they run in float32, so a host can fit fewer models than a host with the same memory and bfloat16 support. - **[Separate vLLM Build](#requirements-and-versions):** This image runs vLLM built from source for AVX2, not the official Docker Hub image that `benchmark-vllm-cpu` runs. Both images use the same vLLM version. ### Usage Run the image via Docker with the container settings of production, with `` set as the manual's [Production Setup](https://docs.sparecores.com/images/vllm-common/usage.md#production-setup) describes: ```bash docker run --rm --privileged --network host --shm-size=4g --memory= --memory-swap= --memory-swappiness=0 -e HF_TOKEN ghcr.io/sparecores/benchmark-vllm-cpu-avx2:main > results.jsonl 2> results.log ``` A minimal run needs only `--shm-size=4g` and `-e HF_TOKEN`; the other options of the first command only reproduce production: ```bash docker run --rm --shm-size=4g -e HF_TOKEN ghcr.io/sparecores/benchmark-vllm-cpu-avx2:main > results.jsonl 2> results.log ``` See the manual's [Usage](https://docs.sparecores.com/images/vllm-common.md#usage) for the Hugging Face token, the model cache, and the 2-hour time budget. #### Requirements and Versions This image is built on [`vllm-cpu-base-avx2`](https://docs.sparecores.com/images/vllm-cpu-base-avx2.md), which builds vLLM from source, including a variant of its CPU extension for AVX2. This image and its base are published for AMD64 only. This image and `benchmark-vllm-cpu` take the vLLM version from the same pin, 0.27.1. The [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-vllm-cpu-avx2/Dockerfile) sets `BENCHMARK_VLLM_ALLOW_AVX2_ONLY=true`, which skips the harness's AVX-512 check on AMD64. This image does not check for AVX2 itself. To check a host before a run, look for the `avx2` flag in `/proc/cpuinfo`; the following command prints `avx2` only when the CPU has it: ```bash grep -o -m 1 avx2 /proc/cpuinfo ``` At startup, the log in stderr lists the CPU flags that the harness found, such as `cpu_flag_avx2=yes`, and `cpu_bf16=False` on a CPU without bfloat16 support. On a CPU without AVX-512, the log has no `cpu_flag_avx512f` line. #### Settings This image takes the [options and environment variables](https://docs.sparecores.com/images/vllm-common/usage.md#options) of the vLLM benchmarks. The only default that differs from `benchmark-vllm-cpu` is `BENCHMARK_VLLM_ALLOW_AVX2_ONLY`, which this image sets to `true`. #### Results The JSON lines in stdout have the fields that the manual's [Results](https://docs.sparecores.com/images/vllm-common.md#results) and [Output Fields](https://docs.sparecores.com/images/vllm-common/usage.md#output-fields) describe for CPU runs. The following fields read differently in this image: - `avx2_only_image` is `true`, because this image sets `BENCHMARK_VLLM_ALLOW_AVX2_ONLY`. - `avx512` is `false` on CPUs without AVX-512. - `mode` is `cpu`, and `arch` is `amd64`. - `tuning` holds the data type in `dtype`, which is `float32` by default on CPUs without AVX-512. The process exits with the codes of the manual's [Exit Codes](https://docs.sparecores.com/images/vllm-common/usage.md#exit-codes). With its default settings, this image does not exit with code 2, the code of `benchmark-vllm-cpu` on CPUs without AVX-512, because it skips that check. Any `BENCHMARK_VLLM_ALLOW_AVX2_ONLY` value other than `1`, `true`, or `yes`, such as `-e BENCHMARK_VLLM_ALLOW_AVX2_ONLY=0`, turns the check back on. #### Production Setup Production tries this image last of the three vLLM images, without checking the CPU flags of an AMD64 server type first; see the manual's [Production Setup](https://docs.sparecores.com/images/vllm-common/usage.md#production-setup). To test this image on a server type before a full run, run its [`--probe-only`](https://docs.sparecores.com/images/vllm-common/usage.md#plan-and-probe-modes) check: ```bash docker run --rm --shm-size=4g -e HF_TOKEN ghcr.io/sparecores/benchmark-vllm-cpu-avx2:main --probe-only ``` ### Workloads This benchmark runs the `chat` and `rag` workloads of the vLLM benchmarks on the five default models that run on CPUs, unchanged; see the manual's [Workloads](https://docs.sparecores.com/images/vllm-common.md#workloads). #### Data Type An AMD64 CPU without AVX-512 has no `avx512_bf16` flag, so on such a CPU, this image runs the models in float32 by default, and the [memory check](https://docs.sparecores.com/images/vllm-common/workloads.md#cpu-memory-fit) doubles the size of a bfloat16 model's weights; see [Data Type](https://docs.sparecores.com/images/vllm-common/workloads.md#data-type). Setting `VLLM_CPU_DTYPE`, such as `-e VLLM_CPU_DTYPE=bfloat16`, overrides the data type, and the memory check then uses the data type set. To see which models fit on a host before a full run, start this image with the [`--plan-only`](https://docs.sparecores.com/images/vllm-common/usage.md#plan-and-probe-modes) option. It prints the host's resources and whether each model fits in memory, as JSON, without starting vLLM: ```bash docker run --rm -e HF_TOKEN ghcr.io/sparecores/benchmark-vllm-cpu-avx2:main --plan-only ``` ### References The terms of the vLLM benchmarks, such as `--max-model-len`, are defined in their [Glossary](https://docs.sparecores.com/images/vllm-common/glossary.md). Common terms, such as AVX2, AVX-512, and float32, are defined in the [Spare Cores Glossary](https://docs.sparecores.com/glossary). To change or rebuild this image, see the [contributor guide](https://docs.sparecores.com/images/vllm-common/contributors.md) of the vLLM benchmarks. --- ## vLLM GPU Source: [`images/benchmark-vllm-gpu/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark-vllm-gpu) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark-vllm-gpu:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark-vllm-gpu). This benchmark measures how fast NVIDIA GPUs serve LLMs to many concurrent requests. It is the GPU image of the vLLM benchmarks: it starts each default model with vLLM (`vllm serve`), from the smallest to the largest, and sends synthetic requests to it with GuideLLM, from one request at a time up to peak load. The [vLLM family manual](https://docs.sparecores.com/images/vllm-common.md) describes the methodology, settings, and output that all vLLM benchmarks share, and this page covers only what this image does differently. Like the other vLLM benchmarks, this benchmark reports the latency and throughput [metrics](https://docs.sparecores.com/images/vllm-common.md) of each model under load; see the manual's [Results](https://docs.sparecores.com/images/vllm-common.md#results). ### Purpose This image runs the vLLM benchmarks on NVIDIA GPUs, with the [official vLLM server image](https://hub.docker.com/r/vllm/vllm-openai) from Docker Hub. Production tries it first on every server type, and runs the CPU images only where it does not run. See the manual's [Purpose](https://docs.sparecores.com/images/vllm-common.md#purpose) for how the vLLM benchmarks relate to the LLM inference speed that Spare Cores Navigator publishes. ### Limitations The results of this image share the [limitations](https://docs.sparecores.com/images/vllm-common.md#limitations) of the vLLM benchmarks on GPUs. Note the following limitation of this image in addition: - **[NVIDIA GPUs Only](#gpu-run):** This benchmark needs NVIDIA GPUs with CUDA (Compute Unified Device Architecture) compute capability 8.0 or newer, the Ampere generation or later. If no GPU is visible or every visible GPU is older, it exits with code 1. ### Usage Run the image via Docker with the GPUs passed and 4 GiB of shared memory: ```bash docker run --rm --gpus all --shm-size=4g -e HF_TOKEN ghcr.io/sparecores/benchmark-vllm-gpu:main > results.jsonl ``` To reproduce the container settings of production, except the memory limit, run the following command: ```bash docker run --rm --privileged --network host --gpus all --shm-size=4g -e HF_TOKEN ghcr.io/sparecores/benchmark-vllm-gpu:main > results.jsonl ``` See the manual's [Usage](https://docs.sparecores.com/images/vllm-common.md#usage) for the Hugging Face token, the model cache, the 2-hour time budget, and the [settings](https://docs.sparecores.com/images/vllm-common/usage.md#options) that this image takes. #### GPU Run The host needs the NVIDIA driver and the NVIDIA Container Toolkit for `--gpus`. The image is built on `vllm/vllm-openai:v0.27.1` from Docker Hub, and its `:main` tag has variants for AMD64 and Arm64. At startup, this benchmark reads the CUDA compute capability of each visible GPU. It needs compute capability 8.0 or newer, the Ampere generation or later, such as the NVIDIA A10G or L40S, but not the older T4G. If every visible GPU is below 8.0, it logs an error and exits with code 1. A GPU whose compute capability cannot be read is allowed. If no GPU is visible (for example, when `--gpus` is missing), the check passes. Every model then fails the [GPU memory check](https://docs.sparecores.com/images/vllm-common/workloads.md#gpu-memory-fit), so this benchmark logs each model as skipped for insufficient memory and exits with code 1. #### Results The JSON lines in stdout have the fields that the manual's [Results](https://docs.sparecores.com/images/vllm-common.md#results) and [Output Fields](https://docs.sparecores.com/images/vllm-common/usage.md#output-fields) describe for GPU runs. ### Workloads This benchmark runs all three workloads of the vLLM benchmarks, `chat`, `rag`, and `long`, on the six default models; see the manual's [Workloads](https://docs.sparecores.com/images/vllm-common.md#workloads). The [Load Settings](https://docs.sparecores.com/images/vllm-common/workloads.md#load-settings) give the settings of production runs on GPU server types. ### References The terms of the vLLM benchmarks, such as `--max-model-len`, are defined in their [Glossary](https://docs.sparecores.com/images/vllm-common/glossary.md). Common terms, such as GuideLLM, CUDA, and tensor parallelism, are defined in the [Spare Cores Glossary](https://docs.sparecores.com/glossary). To change or rebuild this image, see the [contributor guide](https://docs.sparecores.com/images/vllm-common/contributors.md) of the vLLM benchmarks. --- ## Web Server Source: [`images/benchmark-web/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark-web) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark-web:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark-web). This benchmark measures how fast one `binserve` process serves static files over HTTP, with `wrk` as the load generator. Server and client run in the same container and talk over loopback. It sweeps five file sizes, from 1 KiB to 512 KiB, and the number of `wrk` threads and connections, which scale with the number of CPUs. Each of the 69 configurations runs once for 10 seconds. It reports the requests per second and the average latency of each configuration, together with the CPU time the server and the client used. [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes requests per second, throughput in bytes per second, and latency for each file size and number of connections per vCPU. It also publishes extrapolated requests per second and throughput, which estimate how fast `binserve` would serve if `wrk` did not share its CPUs; see [Results](#results). ### Purpose This benchmark shows how fast static files can be served over HTTP on a server type, and how throughput and latency change with the file size and the number of concurrent connections. We serve the files with `binserve` because it is a single binary that needs no tuning. Widely used web servers, such as nginx, have many settings, some of them best set per server type, which would make a like-for-like comparison across server types hard. The web server and the load generator run side by side in the same container: `wrk` sends its requests to `binserve` at `localhost:8080`, over the loopback interface. Loopback is a virtual network interface that the operating system provides for traffic between programs on the same machine, so the requests never reach a network card or leave the server. This setup needs only the server under test, not a separate client machine, which reduces provisioning and benchmark costs. It also keeps network latency out of the results. However, `wrk` uses CPU time that `binserve` could otherwise use. This benchmark records both processes' CPU time so the Navigator can estimate `binserve` performance without the client's CPU cost; see [Results](#results). ### Limitations These results compare static file serving by one `binserve` process on one host, not the capacity of a tuned production web server. The main limitations are the following: - **[Shared CPUs](#results):** `binserve` and `wrk` share the same CPUs, and `wrk` runs up to four threads per CPU, so `rps` is not the maximum a dedicated server would reach. The Navigator also publishes CPU-time-adjusted scores. - **Large Servers:** This benchmark does not scale well on servers with 100 or more vCPUs because of a listener bottleneck in the single `binserve` process. - **[Static Files Over HTTP](#workload):** This benchmark serves five static files, filled with zero bytes, from `binserve`'s in-memory file cache over plain HTTP. It does not measure dynamic content or HTTPS. - **[Loopback Only](#purpose):** `wrk` and `binserve` exchange requests over the loopback interface of the same machine, so no traffic crosses a network card or a real network. Results do not include network throughput or latency, and a server type's network performance does not affect them. - **Untuned Server:** `binserve` runs with the settings in [`binserve.json`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-web/binserve/binserve.json) and its defaults otherwise. Results do not show how a tuned web server, such as nginx, would perform on the same server type. - **Single, Short Runs:** Each configuration runs once for 10 seconds, with no warmup and no repetitions. - **CPU Count:** The thread and connection counts follow the CPUs the container may run on. Docker's `--cpuset-cpus` changes them, but `--cpus` does not: with `--cpus`, this benchmark still uses the host's CPU count. - **Error Checks:** `failed` counts only responses with a status other than 2xx or 3xx, and `wrk`'s connect, read, write, and timeout errors are not recorded. If `wrk`'s output cannot be parsed, this benchmark prints the error to stderr, writes the row with an `rps` of 0, and still exits with code 0, as if the run had succeeded. The Navigator publishes such a row only if every thread count in its group returned zero. ### Usage Run the image via Docker: ```bash docker run --rm --privileged ghcr.io/sparecores/benchmark-web:main ``` The harness runs `binserve` and `wrk` at the highest scheduling priority (`nice -n -20`), which needs the `CAP_SYS_NICE` capability that `--privileged` grants. Without it, they run at normal priority. The harness also raises its open-file limit to 1,048,576 before starting them. Production (k8s-inspector) runs the container the same way, but in its own Pod network namespace instead of the host's: with host networking, every loopback packet passes the host's netfilter rules (kube-proxy, conntrack, and similar), which slows this benchmark. On an Azure `Standard_D2ds_v5` (2 vCPU), the Pod namespace raised 1 KiB `rps` with 2 threads and 2 connections from 77186 to 103235 (legacy VM: 84206) and with 32 connections from 106296 to 135849 (legacy VM: 116874). The full table, with the other settings tried, is in the [k8s-inspector node profile](https://github.com/SpareCores/k8s-inspector/blob/main/docs/explanation/node-profile.md#measurement-conditions). Outside a Pod namespace, with host networking, `binserve` listens on port 8080 of the host's loopback interface, so that port must be free. If it is not, `binserve` cannot listen on it, and this benchmark usually stops with `Couldn't start server` and exit code 1. Without host networking, the traffic stays on loopback inside the container. The container entrypoint runs this benchmark under `resource-tracker`, which samples resource usage during the run. Its data is not published. Measurement takes about 12 minutes: 69 configurations of 10 seconds each, plus server startup. A production run on an [`aws/m5.large`](https://sparecores.com/server/aws/m5.large) took 11 minutes 42 seconds ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m5.large/0/static_web/meta.json)). The run metadata also records the tool versions in its `version` field, as one string, for example `binserve 0.2.1, wrk 4.2.0`. The image builds `binserve` from commit `1e32f94` and `wrk` from version 4.2.0. #### Settings This benchmark reads no environment variables or command-line options. The file sizes, thread and connection counts, and run time are fixed in [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-web/benchmark.py); see [Workload](#workload). To change the thread and connection counts, limit the container's CPUs with `--cpuset-cpus`. #### Results This benchmark prints a comma-separated table to stdout: a header row with quoted column names, then one row per configuration. ```text "size","threads","connections","rps","latency","failed","server_usr","server_sys","client_usr","client_sys" ``` The columns mean the following: - `size` is the label of the served file in KiB, such as `"1k"`. - `threads` and `connections` are the `wrk` thread count and the number of open connections. - `rps` is the requests per second that `wrk` reports, as an integer. - `latency` is the average latency from `wrk`'s thread statistics in seconds. - `failed` is the number of responses with a status other than 2xx or 3xx. - `server_usr` and `server_sys` are the user and system CPU seconds that `binserve` used during the configuration. - `client_usr` and `client_sys` are the user and system CPU seconds that `wrk` used during the configuration. For example, on an `aws/m5.large` (2 vCPUs), serving the `1k` file with two threads, `rps` rises from 43,808 with two connections to 64,606 with 32 connections, while `latency` rises from 0.05 ms to 0.55 ms ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m5.large/0/static_web/stdout)). The Navigator groups the rows by file size and by connections per vCPU (`connections` divided by the server's vCPU count), so that servers with different vCPU counts can be compared. In each group, it keeps the row with the highest `rps`, whatever its thread count, and publishes the following five scores from it: - **`static_web:rps`:** `rps` in requests per second. - **`static_web:rps-extrapolated`:** `rps` × (CPU time of server and client / CPU time of server), in requests per second. - **`static_web:throughput` and `static_web:throughput-extrapolated`:** the two scores above multiplied by the file size in bytes per second. - **`static_web:latency`:** `latency` of the same row in seconds; lower is better. In the `aws/m5.large` example, for the `1k` file at 16 connections per vCPU, the row with two threads (64,606 requests/s) is kept over those with four and eight threads. Note that the published latency is that of the highest-`rps` row, not the lowest latency in the group. The Navigator's Web UI shows these scores with charts on each server type's page, for example [`aws/g5g.xlarge`](https://sparecores.com/server/aws/g5g.xlarge). ### Workload This benchmark runs one workload: a sweep of file sizes, `wrk` threads, and connections against one `binserve` process. [`benchmark.py`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-web/benchmark.py) first runs the following steps: 1. Create five files in `/usr/local/binserve/data/`, with sizes of 1, 16, 64, 256, and 512 KiB, filled with zero bytes. 2. Start one `binserve` process with [`binserve.json`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-web/binserve/binserve.json), which listens on `127.0.0.1:8080`, routes `/1k` to `/512k` to the files, and turns on the in-memory file cache and turns off logging. This process serves every configuration. 3. Wait for `binserve` to be ready: send a `HEAD /1k` request up to 10 times, 1 second apart, until it answers `200 OK`. If it never does, print `Couldn't start server` and exit with code 1. Then, for each file size from the smallest to the largest, the harness runs `wrk` once for each combination of the following counts: - **Threads:** 1, 2, or 4 per CPU. - **Connections:** 1, 2, 4, 8, 16, or 32 per CPU, but at most 16 per CPU for the 256 KiB and 512 KiB files. A comment in `benchmark.py` says smaller files likely need more connections to saturate the machine. Combinations with fewer connections than threads are skipped. This leaves 15 configurations for each of the three smaller files and 12 for each of the two larger ones, 69 in all, whatever the CPU count. Each configuration runs the following command, one after another, with no warmup: ```bash wrk -d 10 -t -c http://localhost:8080/ ``` Before and after each run, the harness records the CPU times of `binserve` and of `wrk`, which give the CPU columns of the row. ### References Common terms, such as `binserve`, `wrk`, and HTTP, are defined in the [Spare Cores Glossary](https://docs.sparecores.com/glossary). --- ## nvbandwidth (Images) Source: [`images/nvbandwidth/`](https://github.com/SpareCores/sc-images/tree/main/images/nvbandwidth) in the `sc-images` repository. Image: [`ghcr.io/sparecores/nvbandwidth:main`](https://github.com/orgs/SpareCores/packages/container/package/nvbandwidth). This benchmark measures how fast data moves between the host CPU and its NVIDIA GPUs, and between the GPUs themselves. It runs `nvbandwidth` v0.8, an open-source NVIDIA tool that times memory copies to measure bandwidth and memory access to measure latency. The copies run between the CPU and each GPU, between GPUs, and within the memory of a single GPU. The image runs every `nvbandwidth` test case in sequence, with the tool's default settings, on all GPUs passed to the container with `--gpus all`. It reports one bandwidth matrix per test case in GB/s, or a latency matrix in nanoseconds, plus the matrix sum. The image adds no harness and no score: the output is the unchanged `nvbandwidth` report. ### Purpose [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes empirical performance measurements, such as [raw CPU speed](https://docs.sparecores.com/images/stress-ng.md), [memory bandwidth](https://docs.sparecores.com/images/benchmark/bw-mem.md), and [LLM inference speed](https://docs.sparecores.com/images/benchmark-llm.md), for more than 5,000 cloud server types. This benchmark adds measured raw GPU performance: how fast data moves between the CPU and the GPUs of a server type, and between its GPUs. The results depend on the following properties of the host: - GPU model and count - links between the CPU and the GPUs and between GPUs, such as PCIe (Peripheral Component Interconnect Express) or NVLink - host CPU and memory - NVIDIA driver version, recorded by each run ### Limitations This benchmark's results compare data movement on one server, not GPU compute speed or application performance. The main limitations are the following: - **Copies Only:** Every test case copies memory or measures memory access latency. Compute throughput, GPU memory capacity, and real workloads are not measured. - **Single Server:** `nvbandwidth` is built without its multinode mode, so only the CPU and GPUs of one host are measured, not links between servers or network throughput. - **[No Peer Access](#results):** The 17 test cases between GPUs need P2P (Peer-to-Peer) access between at least two GPUs. On a server with one GPU, or with GPUs that cannot access each other, they report `"status": "Waived"` and no matrix. - **NVIDIA Only:** `nvbandwidth` uses CUDA (Compute Unified Device Architecture), so it needs NVIDIA GPUs. The image does not check for them; production skips servers without NVIDIA GPUs. - **[Fixed Settings](#settings):** The image passes no options, so the upstream defaults apply. The bandwidth test cases use a 512 MiB copy buffer, four untimed warmup copies before the timed copies, and the median of three iterations per measurement. The two latency test cases always use a 2 MiB buffer and one timed pass, whatever the options. The image adds no warmup or repetitions of its own. See also [Workload](#workload). - **Host Driver:** The host provides the NVIDIA driver, so its version varies between runs. The image fixes only the `nvbandwidth` version and the CUDA Toolkit 12.6.1 it is built with. ### Usage Run the image via Docker, with the host's GPUs passed to the container: ```bash docker run --rm --gpus all ghcr.io/sparecores/nvbandwidth:main ``` The host needs an NVIDIA GPU, the NVIDIA driver, and the NVIDIA Container Toolkit. The default command prints the `nvbandwidth` report as plain text. Production runs `nvbandwidth -j` instead, which prints JSON: ```bash docker run --rm --gpus all ghcr.io/sparecores/nvbandwidth:main nvbandwidth -j ``` Arguments after the image name replace the default command, and still run under `resource-tracker`, which samples resource usage during the run. Its data is not published. Production also runs the container privileged and with host networking, with a 30-minute timeout. Production runs with `nvbandwidth` v0.8 took between 55 seconds and \~20 minutes, with a median of \~3.5 minutes; the slowest was on a server with eight GPUs. #### Settings This benchmark has no settings of its own in environment variables. The image sets only `TRACKER_QUIET=true`, which silences the output of `resource-tracker`. To change a setting, pass `nvbandwidth` options after the image name, as in the JSON example under [Usage](#usage). The most common options are the following: | Option | Meaning | Default | | ------ | ------- | ------- | | `-j` | Print JSON instead of plain text | Off | | `-t ` | Run only the given test cases | All | | `-p ` | Run only the test cases whose names start with the prefix | All | | `-l` | List the test cases and exit | Off | | `-b ` | Copy buffer size | 512 | | `-i ` | Iterations per measurement | 3 | | `-m` | Report the mean instead of the median of the iterations | Off | | `-s` | Skip the data check after each copy | Off | | `-d` | Turn off automatic CPU affinity | Off | | `-v` | Verbose output | Off | See the [official `nvbandwidth` v0.8 documentation](https://github.com/NVIDIA/nvbandwidth/blob/v0.8/README.md) for all options and test cases. #### Results With `-j`, `nvbandwidth` prints one JSON object to stdout, with the following fields under its top-level `nvbandwidth` key: - `CUDA Runtime Version` and `Driver Version` record the CUDA version and the host's NVIDIA driver, for example `13000` (CUDA 13.0) and `580.126.09`. Despite its name, `CUDA Runtime Version` holds the highest CUDA version that the host's driver supports, not the CUDA runtime in the image, which is built with CUDA Toolkit 12.6.1. - `GPU Device list` names each GPU, with its index, name, bus address, and hostname. - `version` is the `nvbandwidth` version (`v0.8`). The `git_version` field is empty, because the image builds `nvbandwidth` from a release archive. - `testcases[]` has one entry per test case, with its `name` and `status`. A test case that ran has `"status": "Passed"` and the following fields: - `bandwidth_description` says what the matrix holds and in which unit, for example `memcpy CE CPU(row) -> GPU(column) bandwidth (GB/s)`. - `bandwidth_matrix` is a two-dimensional array of strings, with rows and columns as the description says. Pairs that were not measured hold `N/A`. - `sum` is the sum of the matrix cells, as a number. The four `device_to_device_bidirectional_memcpy_*` test cases are the exception: their `bandwidth_matrix` stacks three GPU-by-GPU matrices, one for each direction and then their total, where each cell adds up both directions. Their `sum` and `bandwidth_description` cover only the last, total matrix. The 17 test cases between GPUs need P2P access between at least two GPUs. On a server with one GPU, or with GPUs that cannot access each other, they report `"status": "Waived"` and have no matrix. In production, 16 of 27 runs with `nvbandwidth` v0.8 on servers with two to four GPUs waived all 17. For example, on an [`alicloud/ecs.gn5-c4g1.xlarge`](https://sparecores.com/server/alicloud/ecs.gn5-c4g1.xlarge#nvbandwidth) with one Tesla P100 GPU, `host_to_device_memcpy_ce` measured 11.06 GB/s, `host_device_latency_sm` 799 ns, and `device_local_copy` 268.75 GB/s, while all 17 test cases between GPUs were waived ([production output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/alicloud/ecs.gn5-c4g1.xlarge/0/nvbandwidth/stdout)). [GPU Bandwidth and Latency of ecs.gn5-c4g1.xlarge](https://sparecores.com/embed/server/alicloud/ecs.gn5-c4g1.xlarge/nvbandwidth) On a fatal error, such as a GPU that CUDA cannot initialize or a failed data check, `nvbandwidth` adds an `error` field to the JSON, prints it with the test cases that ran before the error, and exits with code 1. The test case that was running keeps `"status": "Running"`. A failed data check also prints `Invalid value when checking the pattern at ...` before the JSON. The Navigator stores the following metrics from each run, computed only from test cases with `"status": "Passed"`, and skips runs with an `error` field. Its Web UI shows them in the GPU Bandwidth and Latency card of each server type's page. The table uses the following terms: - CE (Copy Engine) and SM (Streaming Multiprocessor) name the copy method; see [Workload](#workload). - P2P means direct copies between GPUs. - "Averaged" means the `sum` divided by the number of cells that are not `N/A`. For a stacked bidirectional matrix, only the cells of the total matrix count, and the result is also halved, which gives the rate per direction. | Metric | Meaning | Unit | Computed from | | ------ | ------- | ---- | ------------- | | `nvbandwidth:all:host_to_gpu` | Total rate when the CPU copies to all GPUs at once (CE) | GB/s | `host_to_all_memcpy_ce` `sum` | | `nvbandwidth:all:gpu_to_host` | Total rate when all GPUs copy to the CPU at once (CE) | GB/s | `all_to_host_memcpy_ce` `sum` | | `nvbandwidth:all:duplex` | Per-direction rate when copying both ways at once, the lower of the two directions (CE) | GB/s | Lower `sum` of `host_to_all_bidirectional_memcpy_ce` and `all_to_host_bidirectional_memcpy_ce` | | `nvbandwidth:slot:host_to_gpu` | Average PCIe slot speed per GPU, CPU to GPU (CE) | GB/s | `host_to_device_memcpy_ce`, averaged | | `nvbandwidth:slot:gpu_to_host` | Average PCIe slot speed per GPU, GPU to CPU (CE) | GB/s | `device_to_host_memcpy_ce`, averaged | | `nvbandwidth:slot:local_copy` | Average copy speed within each GPU's own memory (CE) | GB/s | `device_local_copy`, averaged | | `nvbandwidth:slot:latency` | Average CPU-GPU round-trip time (SM); lower is better | ns | `host_device_latency_sm`, averaged | | `nvbandwidth:p2p:single` | Write speed between two GPUs with P2P copies (CE) | GB/s | `device_to_device_memcpy_write_ce`, averaged | | `nvbandwidth:p2p:duplex` | Per-direction speed between two GPUs copying both ways at once (CE) | GB/s | `device_to_device_bidirectional_memcpy_write_ce`, averaged | | `nvbandwidth:p2p:latency` | Latency between GPU pairs with P2P access (SM); lower is better | ns | `device_to_device_latency_sm`, averaged | | `nvbandwidth:p2p:gather` | Rate into one GPU when all other GPUs write to it at once (CE) | GB/s | `all_to_one_write_ce`, averaged | | `nvbandwidth:efficiency:sm_ce_ratio` | SM copy speed relative to CE copy speed, capped at 1 | Ratio | `host_to_device_memcpy_sm` `sum` divided by `host_to_device_memcpy_ce` `sum` | The card also shows the following, which each stored result records: - driver version - CUDA version that the driver supports - `nvbandwidth` version - GPU count - whether P2P is supported, that is, whether any `device_to_device_*` test case passed ### Workload This benchmark runs one workload: the image's default command, `nvbandwidth` with no options, which runs all 35 test cases in sequence. The [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/nvbandwidth/Dockerfile) builds `nvbandwidth` v0.8 from NVIDIA's release archive with CUDA Toolkit 12.6.1. Each nvbandwidth test case uses one of the following copy methods, named by its suffix: - **CE:** `_ce` test cases copy with the GPU's copy engines, through CUDA's `memcpy` functions. - **SM:** `_sm` test cases copy with a kernel that runs on the GPU's streaming multiprocessors, with 512 threads per block. The copy size is rounded down so that it divides evenly across the SMs. The 16 CE and 16 SM test cases cover the following copy directions: - `host_to_device_*` and `device_to_host_*`: between the CPU and each GPU, one GPU at a time. - `host_to_all_*` and `all_to_host_*`: between the CPU and all GPUs at once. - `*_bidirectional_*`: the same copies in both directions at once. - `device_to_device_memcpy_read_*` and `device_to_device_memcpy_write_*`: between each pair of GPUs. - `all_to_one_*` and `one_to_all_*`: from all GPUs to one, and from one GPU to all others, with a read and a write variant each. Three more test cases complete the set: `host_device_latency_sm` and `device_to_device_latency_sm` measure memory access latency between the CPU and each GPU and between GPUs, and `device_local_copy` measures copies within each GPU's own memory. Each bandwidth measurement times a fixed number of copies between start and stop events, repeats three times, and reports the median. Four warmup copies run before the timed copies, outside the timed interval. `nvbandwidth` queues all copies before releasing them, so the time spent queuing them is not measured. It checks the copied data after each copy and sets CPU affinity automatically. The latency test cases instead follow a chain of pointers through a 2 MiB buffer, so each read waits for the one before it. They time one million such reads in one pass, without warmup, and report the average time per read. The `-b`, `-i`, and `-m` options do not apply to them. ### Design History This benchmark has no harness of its own: the image runs the upstream `nvbandwidth` binary, so the test cases and their settings are NVIDIA's. The image first shipped `nvbandwidth` v0.5 and moved to v0.8 in 2026. Production records the version of each run, and many server types measured before the update still have v0.5 results. ### References This image's [Glossary](https://docs.sparecores.com/images/nvbandwidth/glossary.md) defines its own terms. --- ## stress-ng Source: [`images/stress-ng/`](https://github.com/SpareCores/sc-images/tree/main/images/stress-ng) in the `sc-images` repository. Image: [`ghcr.io/sparecores/stress-ng:main`](https://github.com/orgs/SpareCores/packages/container/package/stress-ng). This benchmark measures the throughput of CPU, memory, and kernel-heavy workloads with `stress-ng`. It runs 85 curated stressors in seven categories, each for 5 seconds (15 seconds for `stream`), first with one worker and then with one worker per available CPU. A second mode runs the `cpu` stressor at increasing worker counts to trace how throughput scales across cores. This benchmark reports stress-ng bogo ops/s (bogus operations per second) for each stress-ng stressor and worker count, as one JSON document. The scaling mode prints one `,` line per worker count. ### Purpose [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes empirical performance measurements for over 5,000 cloud server types, such as raw CPU speed, [memory bandwidth](https://docs.sparecores.com/images/benchmark/bw-mem.md), and [compression throughput](https://docs.sparecores.com/images/benchmark/compression.md). This benchmark covers a wide range of CPU and memory work in one run, from integer and floating-point math to sorting, hashing, and memory bandwidth. It also includes a `hypervisor` category: stressors such as context switches, page faults, system calls, and timers, whose throughput on a VM is dominated by hypervisor overhead. These stressors are meant to expose differences in virtualization overhead across providers. The Navigator's Inspector uses the scaling mode to determine a server type's SCore (Spare Cores score). See [CPU Scaling Loop](https://docs.sparecores.com/images/stress-ng/workloads.md#cpu-scaling-loop). The [`stress-ng-longrun`](https://docs.sparecores.com/images/stress-ng-longrun.md) image pins an older `stress-ng` version for an experimental 24-hour run on a few server types. The run shows the following: - sustained CPU throughput over time - throttling on shared-core server types - noisy-neighbor variance by time of day ### Limitations These results are synthetic `stress-ng` throughput figures, not application performance. The following are the main limitations: - **[Not Comparable Across Stressors](https://docs.sparecores.com/images/stress-ng/limitations.md#cross-stressor-comparison):** Each stressor counts its own kind of operation, so compare bogo ops/s only for the same stressor and the same `stress-ng` version. - **[No Single Score](https://docs.sparecores.com/images/stress-ng/limitations.md#a-single-score):** The stressor suite reports one value per stressor and worker count, and does not combine them. - **[Short, Single Runs](https://docs.sparecores.com/images/stress-ng/limitations.md#run-length):** Each stressor runs once for 5s (15s for `stream`), with no warm-up and no repetitions. - **[Logical CPUs, Not Physical Cores](https://docs.sparecores.com/images/stress-ng/limitations.md#worker-count):** The multi-worker run uses one worker per logical CPU available to the container, even though the output field is named `physical_cpus`. - **[Missing Results Are `null`](https://docs.sparecores.com/images/stress-ng/limitations.md#missing-results):** A stressor that fails, times out, or is not supported on the CPU architecture is recorded as `null`, and the run still succeeds. ### Usage The image has no default command. Append the stressor suite's command after the image name: ```bash docker run --rm ghcr.io/sparecores/stress-ng:main \ -c 'python3 /usr/local/bin/run_stressng_benchmarks.py' > stress-ng.json ``` Production also runs the command under `nice -n -20`, which needs `--privileged`. See [Production Setup](https://docs.sparecores.com/images/stress-ng/usage.md#production-setup) for the production commands, including the CPU scaling loop. The stressor suite took about 7 to 66 minutes in production, about 15 minutes at the median. See [Run Duration](https://docs.sparecores.com/images/stress-ng/usage.md#run-duration). #### Settings The following settings shorten a run, for example for a quick check; see the [full environment-variable reference](https://docs.sparecores.com/images/stress-ng/usage.md#environment-variables) for details: - `STRESSNG_QUICK=1` runs each stressor for 2 seconds instead of 5 seconds (`stream` still runs for 15 seconds). - `STRESSNG_LIMIT=` runs only the first N stressors in alphabetical order. #### Results The stressor suite prints one JSON document to stdout when the run ends. The JSON document's main fields are the following: - `stressors.` holds one entry per worker count: `"1"`, and the CPU count for the multi-worker run. Each entry is `{"bogo_ops_per_sec": }`, the total across all workers, or `null` if the run failed. - `categories` lists the stressors in each of the seven categories. - `meta.physical_cpus` is the worker count of the multi-worker run, and `meta.stressor_count` the number of stressors run. See [Output](https://docs.sparecores.com/images/stress-ng/usage.md#output) for every field. ### Workloads This benchmark runs the following workloads: - **[Stressor Suite](https://docs.sparecores.com/images/stress-ng/workloads.md#stressor-suite):** [`run_stressng_benchmarks.py`](https://github.com/SpareCores/sc-images/blob/main/images/stress-ng/run_stressng_benchmarks.py) runs 85 stressors in seven categories, each with one worker and then one worker per CPU. - **[CPU Scaling Loop](https://docs.sparecores.com/images/stress-ng/workloads.md#cpu-scaling-loop):** The `cpu` stressor with the stress-ng div16 method runs for 10 seconds at each worker count from 1 up to the CPU count, with [`count.awk`](https://github.com/SpareCores/sc-images/blob/main/images/stress-ng/count.awk) picking the counts. For more information on stressor categories and run order, see [Workloads](https://docs.sparecores.com/images/stress-ng/workloads.md). ### Design History The CPU scaling loop uses the `div16` method of the `cpu` stressor. We ran every `--cpu-method` on selected x86_64 and Arm servers, with and without SMT (Simultaneous Multithreading). Other methods scaled more or less than expected: on a server with 2 vCPUs and SMT, some reached up to 1.8 times the single-worker throughput with two workers, while `div16` stayed at about the single-worker throughput. The stressor suite came with [an upgrade from `stress-ng` 0.17.08 to 0.20.01](https://docs.sparecores.com/images/stress-ng/design-history.md#stressor-suite-and-stress-ng-02001). At first, only a subset of 23 stressors also ran with all CPUs; now every stressor does. See the [changelog](https://docs.sparecores.com/images/stress-ng/design-history.md) for the changes to this benchmark. ### References This image's [Glossary](https://docs.sparecores.com/images/stress-ng/glossary.md) defines its own terms. --- ## Usage (stress-ng) ### Running the Image The container entrypoint runs `sh` under `resource-tracker`, and has no default command. Pass the command to run with `-c`: ```bash docker run --rm ghcr.io/sparecores/stress-ng:main \ -c 'python3 /usr/local/bin/run_stressng_benchmarks.py' > stress-ng.json ``` The stressor suite needs no environment variables. For a quick check, the following command runs the first five stressors for 2 seconds each: ```bash docker run --rm -e STRESSNG_QUICK=1 -e STRESSNG_LIMIT=5 \ ghcr.io/sparecores/stress-ng:main \ -c 'python3 /usr/local/bin/run_stressng_benchmarks.py' ``` The image includes `stress-ng` itself, so `-c` also accepts any `stress-ng` command, such as `-c 'stress-ng --cpu 1 -t 10 --metrics'`. ### Production Setup The Navigator's Inspector runs this image in two production tasks, each with `--privileged` and `--network host`, and with the command under `nice -n -20`. The `nice -n -20` command needs `--privileged`; a plain run, without `nice`, runs at normal priority. The image itself does not set a priority. The stressor suite runs as follows: ```bash docker run --rm --privileged --network host ghcr.io/sparecores/stress-ng:main \ -c 'nice -n -20 python3 /usr/local/bin/run_stressng_benchmarks.py' ``` The CPU scaling loop runs the `cpu` stressor at each worker count that [`count.awk`](https://github.com/SpareCores/sc-images/blob/main/images/stress-ng/count.awk) prints for the CPU count: ```bash docker run --rm --privileged --network host ghcr.io/sparecores/stress-ng:main \ -c 'for ncpu in $(awk -f /usr/local/bin/count.awk $(nproc)); do echo -n "$ncpu,"; nice -n -20 stress-ng --metrics --cpu $ncpu --cpu-method div16 -t 10 | egrep "metrc.*cpu" | awk "{print \$9}"; done' ``` Both tasks run on every server type that the Inspector benchmarks. ### Run Duration The stressor suite took the following times in production: - about 7 minutes at the shortest, on a server with 1 vCPU - about 15 minutes at the median - about 66 minutes at the longest The CPU scaling loop took the following times in production with `stress-ng` 0.20.01: - about 19 seconds at the shortest - about 2.8 minutes at the median - about 50 minutes at the longest ### Output #### Stressor Suite The stressor suite prints nothing while it runs: it captures the output of each `stress-ng` run and prints one JSON document to stdout at the end, indented with two spaces. It has the following fields: | Field | Type | Meaning | | ----- | ---- | ------- | | `stressors.."1"` | object or `null` | Result with one worker | | `stressors..""` | object or `null` | Result with N workers, where N is `meta.physical_cpus`; present only when N is greater than 1 | | `stressors...bogo_ops_per_sec` | float | Throughput in stress-ng bogo ops/s (bogus operations per second), in real time, the total across all workers | | `categories.` | list of strings | The stressors of each category that `stress-ng --stressors` lists, in category order | | `meta.timeout_sec_per_stressor` | integer | Seconds per stressor run: `5`, or `2` with `STRESSNG_QUICK=1`; does not reflect the 15s of `stream` | | `meta.physical_cpus` | integer | Worker count of the multi-worker runs: the number of logical CPUs available to the container | | `meta.stressor_count` | integer | Number of stressors run, after `STRESSNG_LIMIT` | The `categories` field is not shortened by `STRESSNG_LIMIT`, so it can list stressors that did not run. The following is an excerpt from a production run on a server with 2 vCPUs: ```json "atomic": {"1": {"bogo_ops_per_sec": 869.33}, "2": {"bogo_ops_per_sec": 868.79}} ``` The value is the bogo ops/s (real time) column of the stress-ng metrc line that `stress-ng --metrics-brief` prints for each stress-ng stressor. For a full document, see a run on a Hetzner Cloud [`ccx13`](https://sparecores.com/server/hcloud/ccx13) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/hcloud/ccx13/0/stressng_benchmarks/stdout)). The script exits with code 0 even when some stressors fail. If `stress-ng` cannot list its stressors, it prints `{"error": "could not get stressor list"}` to stderr and exits with code 1. #### CPU Scaling Loop The CPU scaling loop prints one `,` line per worker count, for example: ```text 1,3059.78 2,3062.79 ``` For a production example, see a run on a Hetzner Cloud [`ccx13`](https://sparecores.com/server/hcloud/ccx13) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/hcloud/ccx13/0/stressngfull/stdout)). ### Environment Variables | Variable | Meaning | Default | | -------- | ------- | ------- | | `STRESSNG_QUICK` | `1` runs each stressor for 2s instead of 5s; `stream` still runs for 15s. Any other value keeps 5s. | unset | | `STRESSNG_LIMIT` | Runs only the first N stressors in alphabetical order. A value that is not an integer is ignored. | unset (all stressors) | | `TRACKER_QUIET` | Set in the image to quiet `resource-tracker`. | `true` | --- ## Workloads (stress-ng) ### Stressor Suite [`run_stressng_benchmarks.py`](https://github.com/SpareCores/sc-images/blob/main/images/stress-ng/run_stressng_benchmarks.py) runs the stressor suite as follows: 1. It gets the list of stressors from `stress-ng --stressors`, and keeps the curated stressors on that list, in alphabetical order. 2. It runs each stress-ng stressor with one worker, then with one worker per logical CPU available to the container, if there is more than one. Stressors run one at a time. 3. Each run is `stress-ng --metrics --metrics-brief -- -t `, for 5 seconds, or 15 seconds for `stream`. 4. It reads stress-ng bogo ops/s (bogus operations per second) in real time from the stress-ng metrc line of the run's output. There is no warm-up and no repetition. A run that exits with an error, takes 30 seconds longer than its duration, or prints no `metrc` line for the stressor is recorded as `null`. #### Stressor Categories The 85 stressors fall into the following seven categories: | Category | Stressors | Exercises | | -------- | --------- | --------- | | `cpu_integer` | 13 | [Integer arithmetic, branching, and string handling](#integer-stressors) | | `cpu_float_simd` | 18 | [Floating-point math and vector operations](#floating-point-and-simd-stressors) | | `crypto` | 2 | [Password hashing and encryption](#crypto-and-compression-stressors) | | `compression` | 2 | [Data and image compression](#crypto-and-compression-stressors) | | `memory` | 11 | [Caches and memory bandwidth](#memory-stressors) | | `algorithms` | 13 | [Searching, sorting, and memory allocation](#algorithm-stressors) | | `hypervisor` | 26 | [System calls, process creation, page tables, timers, and scheduling](#hypervisor-stressors) | The following tables summarize what each stressor does. Each stressor name links to its entry in the [`stress-ng` manual](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html), which describes a newer `stress-ng` version than the 0.20.01 this image pins. #### Integer Stressors | Stressor | What it does | | -------- | ------------ | | [`cpu`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#c~2) | Works through all methods of the `cpu` stressor in turn | | [`branch`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#branch) | Branches to random locations, loading the branch predictor | | [`atomic`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#atomic) | Runs atomic operations on integers shared among workers | | [`funccall`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#funccall) | Calls functions with 1 to 9 arguments of various types | | [`funcret`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#funcret) | Passes and returns small to large data types by value | | [`hash`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#hash) | Hashes random short strings with various hash functions | | [`rotate`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#rotate) | Rotates unsigned integers of 8 to 128 bits | | [`str`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#str) | Runs C library string functions on random strings | | [`wcs`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#wcs) | Runs C library wide-character string functions on random strings | | [`nop`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#nop) | Issues no-op instructions | | [`bitops`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#bitops) | Runs 32-bit bit-manipulation tricks | | [`intmath`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#intmath) | Runs the basic arithmetic operations on signed integers of 8 to 128 bits | | [`prime`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#prime) | Finds ever larger primes, so its bogo ops/s drop over the run | #### Floating-Point and SIMD Stressors These stressors cover floating-point math and SIMD (Single Instruction, Multiple Data) vector operations: | Stressor | What it does | | -------- | ------------ | | [`fma`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#fma) | Runs multiply-add operations on floating-point arrays, as fused instructions where available | | [`fp`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#fp) | Adds, multiplies, and divides a range of floating-point types | | [`trig`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#trig) | Computes trigonometric functions at three precisions | | [`matrix`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#matrix) | Runs floating-point operations on a 2D matrix, mixing memory, cache, and math work | | [`matrix-3d`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#matrix~6) | Runs the same kind of operations on a 3D matrix | | [`eigen`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#eigen) | Runs matrix arithmetic with the Eigen C++ library | | [`vecmath`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#vecmath) | Runs integer math on 128-bit vectors | | [`vecfp`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#vecfp) | Runs floating-point arithmetic on vectors | | [`vecshuf`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#vecshuf) | Shuffles and repacks the elements of vectors | | [`vecwide`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#vecwide) | Runs 8-bit math on vectors of 4 to 2,048 bytes, showing how well the compiler vectorizes it | | [`monte-carlo`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#monte) | Estimates pi and e with Monte Carlo experiments | | [`mpfr`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#mpfr) | Runs multi-precision floating-point math with the GNU (GNU's Not Unix!) MPFR library | | [`expmath`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#expmath) | Computes exponential functions | | [`logmath`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#logmath) | Computes logarithms | | [`powmath`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#powmath) | Computes power functions | | [`hyperbolic`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#hyperbolic) | Computes hyperbolic functions at three precisions | | [`fractal`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#fractal) | Computes a Mandelbrot set in double precision | | [`veccmp`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#veccmp) | Compares integers in 128-bit vectors | #### Crypto and Compression Stressors | Stressor | What it does | | -------- | ------------ | | [`crypt`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#crypt) | Hashes a random password with many `crypt(3)` methods, such as bcrypt and yescrypt | | [`ipsec-mb`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#ipsec) | Runs cryptographic routines with Intel's multi-buffer crypto library; supported only on modern Intel x86_64 CPUs | | [`zlib`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#zlib) | Compresses random data in one process and decompresses it in another | | [`jpeg`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#jpeg) | Compresses a generated image with lossy image compression | #### Memory Stressors | Stressor | What it does | | -------- | ------------ | | [`cache`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#C) | Reads and writes memory at random, widespread addresses to thrash the CPU cache | | [`cacheline`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#cacheline) | Has several processes read and write the bytes of one shared cache line | | [`l1cache`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#l1cache) | Reads and writes a buffer twice the size of the L1 cache, forcing evictions | | [`memcpy`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#memcpy) | Copies and moves memory at three alignments | | [`memrate`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#memrate) | Reads and writes a buffer with 8- to 1024-bit accesses at full speed | | [`memthrash`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#memthrash) | Thrashes a 16 MB buffer with at least one thread per CPU | | [`stream`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#stream) | Measures memory bandwidth on buffers the size of the L3 cache, loosely based on the STREAM benchmark | | [`vm`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#m) | Repeatedly maps, writes, and unmaps memory | | [`cachehammer`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#cachehammer) | Mixes random reads, writes, prefetches, and cache flushes | | [`ptr-chase`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#ptr) | Follows random pointers across thousands of memory pages | | [`spinmem`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#spinmem) | Keeps two processes in sync through shared memory with busy spin loops | #### Algorithm Stressors | Stressor | What it does | | -------- | ------------ | | [`bsearch`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#bsearch) | Binary-searches a sorted array of integers | | [`hsearch`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#hsearch) | Searches a hash table that is 80% full | | [`qsort`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#Q,) | Sorts integers with quicksort | | [`heapsort`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#heapsort) | Sorts integers with heapsort | | [`mergesort`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#mergesort) | Sorts integers with merge sort | | [`bitonicsort`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#bitonicsort) | Sorts integers with bitonic sort | | [`skiplist`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#skiplist) | Stores and searches integers in a skip list | | [`tree`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#tree) | Adds, finds, and removes integers in several kinds of trees | | [`malloc`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#malloc) | Allocates, resizes, and frees memory at random | | [`mcontend`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#mcontend) | Has several threads contend for one physical memory page while moving between CPUs | | [`insertionsort`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#insertionsort) | Sorts integers with insertion sort | | [`bubblesort`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#bubblesort~2) | Sorts integers with bubble sort | | [`fibsearch`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#fibsearch) | Searches a sorted array of integers with Fibonacci search | #### Hypervisor Stressors The `hypervisor` stressors are the ones whose throughput on a VM is dominated by hypervisor overhead, such as the cost of each VM exit, the extra page-table lookups of nested paging, and the emulation of timers and traps: | Stressor | What it does | | -------- | ------------ | | [`context`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#context) | Switches between threads in user space | | [`switch`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#s) | Forces context switches between two processes that block each other | | [`clone`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#clone) | Rapidly creates and reaps clones | | [`fork`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#f) | Forks children that exit immediately | | [`vfork`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#vfork~2) | Vforks children that exit immediately | | [`fault`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#fault) | Generates minor and major page faults | | [`tlb-shootdown`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#tlb~6) | Changes shared memory mappings, forcing TLB (Translation Lookaside Buffer) flushes on other CPUs | | [`mprotect`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#mprotect) | Changes the page protection of shared memory, causing TLB flushes | | [`munmap`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#munmap) | Unmaps the shared memory of child processes page by page | | [`null`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#null) | Calls I/O (Input/Output) system calls on `/dev/null` | | [`zero`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#zero) | Calls I/O system calls on `/dev/zero` | | [`getrandom`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#getrandom) | Reads random bytes from the kernel | | [`pipe`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#p) | Writes and reads large blocks through a pipe between two processes | | [`eventfd`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#eventfd) | Passes short event messages between two processes through the kernel | | [`hrtimers`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#hrtimers) | Runs many high-resolution timers with short, random intervals | | [`clock`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#clock) | Reads clocks and waits on timers, causing frequent context switches | | [`yield`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#y) | Has at least two processes per CPU yield the CPU to each other | | [`resched`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#resched) | Moves processes through priority levels and scheduling policies | | [`vdso`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#vdso) | Calls the kernel functions mapped into each process that avoid a full system call | | [`usersyscall`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#usersyscall) | Handles system calls in user space with a signal handler | | [`priv-instr`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#priv) | Executes privileged instructions that the kernel traps | | [`tsc`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#tsc) | Reads the CPU's time-stamp counter | | [`x86syscall`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#x86syscall) | Makes system calls with the x86_64 `syscall` instruction | | [`cpu-sched`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#cpu~9) | Moves processes between CPUs and scheduling policies | | [`timermix`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#timermix) | Generates timer signals at a high rate | | [`mtx`](https://manpages.debian.org/testing/stress-ng/stress-ng.1.en.html#mtx) | Locks and unlocks mutexes | The `tsc`, `usersyscall`, and `x86syscall` stressors return `null` on Arm servers. See [Missing Results](https://docs.sparecores.com/images/stress-ng/limitations.md#missing-results). ### CPU Scaling Loop The CPU scaling loop runs the `cpu` stressor with the stress-ng div16 method (`--cpu-method div16`) for 10 seconds at each worker count that [`count.awk`](https://github.com/SpareCores/sc-images/blob/main/images/stress-ng/count.awk) prints, and prints bogo ops/s for each. The loop itself is a shell command in the Navigator's Inspector; [Production Setup](https://docs.sparecores.com/images/stress-ng/usage.md#production-setup) shows it in full. The `count.awk` script takes the CPU count N and prints the following worker counts: - every count from 1 to N, if N is 32 or less - otherwise, 1, N, and the even counts below N that are divisible by N / 32 (rounded down) The Inspector uses this loop to determine a server type's SCore (Spare Cores score). The `div16` method was chosen because it scaled as expected across x86_64 and Arm servers, with and without SMT (Simultaneous Multithreading). See [Design History](https://docs.sparecores.com/images/stress-ng.md#design-history). --- ## Limitations (stress-ng) ### Disclaimer: What This Benchmark Does *Not* Deliver #### Cross-Stressor Comparison Bogo ops/s (bogus operations per second) results are *not* comparable across stressors. Each stress-ng stressor counts how many times it completes its own unit of work per second, and defines that unit differently. Compare a stressor only with itself, on the same `stress-ng` version. The image pins `stress-ng` 0.20.01 through the tag of its base image. #### A Single Score The stressor suite reports one value per stressor and worker count, and does *not* combine them into a category or overall score. It also does not attribute the results of the `hypervisor` stressors to a specific cause, such as the hypervisor or the CPU. #### Application Performance The stressors are synthetic loops. Results show how fast a server runs each loop, *not* how fast a given application runs. This benchmark does not measure disk or network performance. For disk performance, see the [`benchmark-storage`](https://docs.sparecores.com/images/benchmark-storage.md) image. ### Scope Decisions #### Run Length Each stressor runs once, for 5 seconds (15 seconds for `stream`), with no warm-up and no repetitions. A full run took about 15 minutes at the median in production. A single short run does not show variance between runs or effects that build up over time, such as CPU-credit throttling on shared-core server types. The [`stress-ng-longrun`](https://docs.sparecores.com/images/stress-ng-longrun.md) image covers sustained load in an experimental 24-hour run. #### Worker Count The multi-worker run uses one worker per logical CPU available to the container, not one per physical core. The script would use the physical core count only if the `psutil` Python package were installed, and the image does not install it. On a server with SMT (Simultaneous Multithreading), the worker count therefore includes both threads of each core, even though the output field is named `physical_cpus`. ### Design Constraints #### Missing Results A stressor run that fails, takes 30 seconds longer than its duration, or prints no result is recorded as `null`, and the script still exits with code 0. The following stressors are `null` in some or all production runs: - `ipsec-mb` has been `null` in every successful production run so far. - `tsc`, `usersyscall`, and `x86syscall` are x86-only. On Arm servers, `stress-ng` still lists them, so they run and return `null`. - `l1cache`, `vm`, `zlib`, and `cpu` were `null` in a few production runs. Because these stressors are still listed, `meta.stressor_count` counts them. Check each entry for `null` instead of relying on the count. --- ## stress-ng Long Run Source: [`images/stress-ng-longrun/`](https://github.com/SpareCores/sc-images/tree/main/images/stress-ng-longrun) in the `sc-images` repository. Image: [`ghcr.io/sparecores/stress-ng-longrun:main`](https://github.com/orgs/SpareCores/packages/container/package/stress-ng-longrun). This benchmark measures how the sustained CPU throughput of a server type changes over 24 hours. Once a minute, it runs the `cpu` stressor of `stress-ng` with the stress-ng div16 method and one worker per CPU. The load lasts 5 seconds per minute in the first hour and rises to 55 seconds per minute from about the 11th hour on. For each one-minute sample, this benchmark reports stress-ng bogo ops/s (bogus operations per second) measured over wall-clock (real) time, along with the sample's end time and load time. A full run has 1,440 samples. The [stress-ng manual](https://docs.sparecores.com/images/stress-ng.md) describes `stress-ng`, its stressors, and their results, and this page covers only what this image does differently. ### Purpose [Spare Cores Navigator](https://docs.sparecores.com/overview) measures CPU speed with the [`stress-ng`](https://docs.sparecores.com/images/stress-ng.md) image, which runs each stress-ng stressor for 15 seconds or less. A run that short does not show effects that build up over time. This benchmark loads the CPU once a minute for 24 hours, so that its results can expose the following effects: - changes in sustained CPU throughput over time - CPU-credit throttling on shared-core server types - noisy-neighbor variance by time of day The load rises during the run to test whether a higher sustained load triggers throttling or another penalty. These runs are experimental: a run of 24 hours costs far more than a standard run of a few minutes, so production runs this benchmark on only eight server types. ### Limitations Two limitations of the `stress-ng` image also apply to this benchmark: [bogo ops/s compare only for the same stressor](https://docs.sparecores.com/images/stress-ng/limitations.md#cross-stressor-comparison), and the [worker count is one per logical CPU, not per physical core](https://docs.sparecores.com/images/stress-ng/limitations.md#worker-count). This benchmark also has the following limitations: - **[Older `stress-ng` Version](#design-history):** This image pins `stress-ng` 0.17.08, while the `stress-ng` image uses 0.20.01, and bogo ops/s compare only within one `stress-ng` version. - **[CPU Only](#workload):** Every sample runs the same `cpu` stressor with the div16 method, so this benchmark measures CPU throughput, not [disk](https://docs.sparecores.com/images/benchmark-storage.md) or network performance. - **[No Cause Attribution](#workload):** Within a run, sample load times and time of day both vary, and no recorded field shows the cause of a change, such as a CPU credit balance. The samples show throughput drops, but this benchmark does not attribute them to a specific cause, such as CPU credits or a neighboring server. - **[Eight Server Types](#production-setup):** Production runs this benchmark on only eight server types, and its completed runs are from 2024. - **[Loop Not in the Image](#usage):** The image contains `stress-ng` and `resource-tracker` only. The loop of 24 hours is a command that the caller passes, and production, not the image, collects the samples. ### Usage The image has no default command: its [entrypoint](https://github.com/SpareCores/sc-images/blob/main/images/stress-ng-longrun/Dockerfile) runs `sh` under `resource-tracker`, so pass the command to run with `-c`. To run one sample with 5 seconds of load and one worker per CPU and save its stress-ng YAML report from stderr: ```bash docker run --rm ghcr.io/sparecores/stress-ng-longrun:main \ -c 'stress-ng --metrics --cpu $(nproc) --cpu-method div16 -t 5 -Y /dev/stderr' 2> sample.yaml ``` To run the full 24-hour loop as production does and save stdout and stderr: ```bash docker run --rm --privileged --network host ghcr.io/sparecores/stress-ng-longrun:main \ -c "nice -n -20 sh -c 'for i in \$(seq 1 1440); do SPM=\$((\$((\$i / 60 + 1)) * 5)); SPM=\$(( \$SPM > 55 ? 55 : \$SPM )); stress-ng --metrics --cpu \$(nproc) --cpu-method div16 -t \$SPM -Y /dev/stderr; sleep \$((60 - \$(date +%-S) )); done'" > longrun.log 2> longrun.yaml ``` In `bash` and other `sh`-compatible shells, the backslashes keep the host shell from expanding the `$` signs; the shell in the container evaluates them. The `nice -n -20` command needs `--privileged`. Without `--privileged`, remove `nice -n -20` from the command, and the loop runs at normal priority. The loop runs no network workload, so `--network host`, which production sets with its other Docker options, is optional. #### Production Setup The Navigator's [Inspector](https://github.com/SpareCores/sc-inspector) runs the loop above as its `stressnglongrun` task, defined in [`inspector/tasks.py`](https://github.com/SpareCores/sc-inspector/blob/main/inspector/tasks.py). It uses `--privileged` and `--network host` and runs the loop under `nice -n -20`. The Inspector runs no other benchmark in parallel with this one and stops a run that lasts longer than 26 hours. Full production runs took about 24 hours. Production retries failed runs, so a server type's latest result can be a failed or partial run. For example, the latest `cax11` attempts (2026-09-29 and 2026-10-23) ended early. Production runs this benchmark on only the following server types: - AWS (Amazon Web Services): `t4g.medium`, `c7g.large` - GCP (Google Cloud Platform): `e2-medium`, `c2d-highcpu-2` - Hetzner Cloud: `cx21`, `cx22`, `cax11`, `ccx13` The completed production runs are from 2024. The image itself does not limit the server types it runs on. #### Results Each sample prints a stress-ng metrc table to stdout, along with other `info` lines. The bogo ops/s (real time) column holds the headline result, as in the first sample of a production run on [`c7g.large`](https://sparecores.com/server/aws/c7g.large) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c7g.large/0/stressnglongrun/stdout)): ```text stress-ng: metrc: [9] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s CPU used per RSS Max stress-ng: metrc: [9] (secs) (secs) (secs) (real time) (usr+sys time) instance (%) (KB) stress-ng: metrc: [9] cpu 15177 5.00 9.91 0.00 3035.31 1531.58 99.09 1192 ``` Each sample also writes one stress-ng YAML report to stderr. The report's `system-info` section describes the run and system, including the `stress-ng` version and the time at the end of the sample. Its `metrics` section holds the following main fields of the `cpu` stressor: - `bogo-ops-per-second-real-time`: the headline result: the bogo ops/s over wall-clock (real) time, summed across all workers - `wall-clock-time`: the load time of the sample, the duration of the stress-ng run in seconds - `bogo-ops-per-second-usr-sys-time`: the bogo ops/s over the user and system CPU time of all workers - `bogo-ops`, `user-time`, and `system-time`: the count and times behind the result The image does not extract a time series from the YAML reports; it leaves that to the caller. The Navigator's Inspector extracts the time series with its [`parse.stressnglongrun`](https://github.com/SpareCores/sc-inspector/blob/main/inspector/parse.py) parser. The parser writes one line per sample to [`parsed.csv`](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c7g.large/0/stressnglongrun/parsed.csv), which has no header. Each line holds the sample's end time, `wall-clock-time`, and `bogo-ops-per-second-real-time`. For example, the first line of a production run on `c7g.large` is: ```text 2024-07-09T12:07:32,5.000142,3035.313593 ``` See the full [`parsed.csv`](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c7g.large/0/stressnglongrun/parsed.csv), [`stdout`](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c7g.large/0/stressnglongrun/stdout), and [`stderr`](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c7g.large/0/stressnglongrun/stderr) of that run. ### Workload The loop of the `stressnglongrun` task in [`inspector/tasks.py`](https://github.com/SpareCores/sc-inspector/blob/main/inspector/tasks.py) runs 1,440 samples, one per minute. Each sample runs the `cpu` stressor with the div16 method (`--cpu-method div16`) and one worker per logical CPU available to the container (`nproc`), then waits until the start of the next minute. The load time for each sample depends on its sample number: | Samples | Load time | | ------- | --------- | | 1-59 | 5s | | 60-119 | 10s | | 120-539 | 15s-45s, 5s more every 60 samples | | 540-599 | 50s | | 600-1,440 | 55s | The load times total 62,750 seconds, about 17.4 hours of the 24-hour run. There is no warm-up: the first sample, with 5 seconds of load, counts like the others. The load time and the time of day change together during a run, so its samples do not show the separate effects of load time and time of day. ### Design History This image pins `stress-ng` 0.17.08 through the tag of its base image, `ghcr.io/colinianking/stress-ng`, in its [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/stress-ng-longrun/Dockerfile). The `stress-ng` image used 0.17.08 until its update to 0.20.01 (see the `stress-ng` [changelog](https://docs.sparecores.com/images/stress-ng/design-history.md#stressor-suite-and-stress-ng-02001)). The completed production runs from 2024 used this version, and we keep it so that new runs stay comparable with them. We do not plan to update it. ### References The terms on this page are defined in the following places: - The [Glossary](https://docs.sparecores.com/images/stress-ng/glossary.md) of the [stress-ng manual](https://docs.sparecores.com/images/stress-ng.md) defines the terms of `stress-ng`, such as stress-ng bogo ops/s. - This image's [Glossary](https://docs.sparecores.com/images/stress-ng-longrun/glossary.md) defines the stress-ng YAML report and stress-ng bogo ops/s (real time). - The [Spare Cores Glossary](https://docs.sparecores.com/glossary) defines common terms, such as CPU-credit throttling and shared-core. --- ## dmidecode Source: [`images/dmidecode/`](https://github.com/SpareCores/sc-images/tree/main/images/dmidecode) in the `sc-images` repository. Image: [`ghcr.io/sparecores/dmidecode:main`](https://github.com/orgs/SpareCores/packages/container/package/dmidecode). This image runs `dmidecode` to read a server's SMBIOS (System Management BIOS) tables, also called DMI (Desktop Management Interface) tables. The tables describe the server's parts, such as its firmware, system, baseboard, processors, and memory devices. The cloud vendor's firmware or hypervisor reports these details. This image only installs `dmidecode` from Ubuntu 24.04, with no harness or default command of its own. This image is not a benchmark, so nothing is timed or repeated. This image prints the text output of `dmidecode` on stdout, one block per SMBIOS structure. In production, the [Inspector](https://github.com/SpareCores/sc-inspector) of [Spare Cores Navigator](https://docs.sparecores.com/overview), which runs the images on each server type, also parses the text into JSON. The Navigator takes the memory generation and speed of each server type from the JSON. It also takes some processor details from the JSON when `lscpu` reports none. See [How the Navigator Uses the Output](#how-the-navigator-uses-the-output) for the fields it reads. ### Usage To run the production command and print all SMBIOS structures of a host via Docker: ```shell docker run --rm --privileged ghcr.io/sparecores/dmidecode:main dmidecode ``` The output describes the machine whose kernel runs the container. This image keeps the `bash` default command of `ubuntu:24.04`, so pass `dmidecode` after the image name. The `--privileged` option is required. To change what it prints, append a `dmidecode` option after the command. For example, to print only the memory structures: ```shell docker run --rm --privileged ghcr.io/sparecores/dmidecode:main \ dmidecode -t memory ``` The main options are listed below. The [`dmidecode(8)`](https://manpages.ubuntu.com/manpages/noble/man8/dmidecode.8.html) man page lists all options: | Option | Prints | | ------ | ------ | | `-t ` | Only the structures of one kind: `bios`, `system`, `baseboard`, `chassis`, `processor`, `memory`, `cache`, `connector`, or `slot` | | `-t ` | Only the structures of one DMI type, such as `17` for the memory devices | | `-s ` | Only one string, such as `system-product-name` or `processor-version` | | `-q` | Less detail: no unknown, inactive, or OEM-specific entries, and no handles | | `-u` | The structures as hexadecimal dumps, without decoding them | This image defines no environment variables or build arguments, and runs `dmidecode` as root, the default user of `ubuntu:24.04`. Unlike the [benchmark images](https://docs.sparecores.com/images.md#benchmarks), it does not run `dmidecode` under `resource-tracker`. This image is built for AMD64 and Arm64. The [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/dmidecode/Dockerfile) installs `dmidecode` from the Ubuntu 24.04 archive after an `apt-get upgrade`, without a pinned version, so the version can change between image builds. Since production started recording the version in May 2024, every successful run in the [`sc-inspector-data`](https://github.com/SpareCores/sc-inspector-data) repository has recorded version 3.5. #### Production Setup The Navigator's Inspector runs the same command as the [first example](#usage) above, `dmidecode` with no options. Its runs differ from the commands above in the following ways: - **Docker Options:** Production runs the container detached, with `--privileged` and host networking (`--network host`). The commands above use Docker's default network. - **Timeout:** Production stops the container if it still runs 5 minutes after it starts. A plain `docker run` sets no time limit. From when the Inspector picks up a run (including the image pull), the median successful production run took \~10 seconds, and 95% of successful runs finished within \~27 seconds. - **Version and Parsing:** Production records the output of `dmidecode --version` as the version of each run, and parses the text into JSON, as [Output](#output) describes. A plain `docker run` prints the text only. - **Servers:** Production runs `dmidecode` on every server type, except those on the blocklist in [`inspector_rules.py`](https://github.com/SpareCores/sc-crawler/blob/main/src/sc_crawler/inspector_rules.py) in [`sc-crawler`](https://github.com/SpareCores/sc-crawler). The production settings are in the `dmidecode` task of [`inspector/tasks.py`](https://github.com/SpareCores/sc-inspector/blob/main/inspector/tasks.py) in [`sc-inspector`](https://github.com/SpareCores/sc-inspector), with the default Docker options of [`inspector/lib.py`](https://github.com/SpareCores/sc-inspector/blob/main/inspector/lib.py). #### Output This image adds nothing to the output of `dmidecode` and writes no files. The text on stdout starts with a header that gives the `dmidecode` and SMBIOS versions and the number of structures. Each SMBIOS structure follows in a block with lines in the following order. The table shows the lines for the memory device of [`aws/m5.large`](https://sparecores.com/server/aws/m5.large) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m5.large/0/dmidecode/stdout)): | Line | Contents | Example | | ------ | ------ | ------ | | Header | The structure's handle (the number other structures use to refer to it, as `Array Handle` does), DMI type, and size in bytes | `Handle 0x0009, DMI type 17, 34 bytes` | | Name | The structure's name | `Memory Device` | | Fields | One indented `Key: Value` line per field; a field with several values, such as `Characteristics`, lists one value per line, indented further | `Size: 8 GB` | The content depends on what the cloud vendor's firmware or hypervisor exposes. On AWS (Amazon Web Services), the `System Information` structure gives `Amazon EC2` as the manufacturer and the server type, such as `m5.large`, as the product name. On Hetzner Cloud, it gives `Hetzner` and `vServer`. The SMBIOS version and the number of structures also vary by server type: for example, [`aws/m5.large`](https://sparecores.com/server/aws/m5.large) reports SMBIOS 2.7 with 13 structures, and [`hcloud/cx22`](https://sparecores.com/server/hcloud/cx22) reports SMBIOS 2.8 with 11. Fields that the vendor does not fill in read `Not Specified`, `Unknown`, or `Not Provided` on `aws/m5.large`, and the parser keeps them as text. The output also includes identifiers of the individual server, such as the `Serial Number` and `UUID` fields and, on AWS, the instance ID as the baseboard's `Asset Tag`. In production, the Inspector's [`parse.dmidecode`](https://github.com/SpareCores/sc-inspector/blob/main/inspector/parse.py) function turns the text into `parsed.json`, a JSON array with one object per SMBIOS structure. The function is part of the Inspector, not of this image. Each object has the following fields: | Field | Meaning | | ------ | ------ | | `handle` | The `id`, `type`, and `bytes` of the structure's header line, all as strings | | `name` | The structure's name, such as `BIOS Information` or `Memory Device` | | `props` | The structure's fields as key-value pairs, with a list for a field with several values | In `props`, a value with a unit, such as a size, speed, or width, becomes a number in the base unit (`B`, `Hz`, `T/s`, `bits`, `V`, or `s`), with the unit in a separate `:unit` field, and a date becomes a timestamp. Byte sizes use multiples of 1,024, and other units multiples of 1,000, as the following examples from `aws/m5.large` show: | In the text | In `props` | | ------ | ------ | | `ROM Size: 64 kB` | `"ROM Size": 65536` and `"ROM Size:unit": "B"` | | `Size: 8 GB` | `"Size": 8589934592` | | `Speed: 2666 MT/s` | `"Speed": 2666000000` | | `Release Date: 10/16/2017` | `"Release Date": "2017-10-16T00:00:00"` | #### Production Results On [`aws/m5.large`](https://sparecores.com/server/aws/m5.large) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m5.large/0/dmidecode/stdout)), `dmidecode` printed the following, shortened here to the header and the `Memory Device` structure: ```text # dmidecode 3.5 Getting SMBIOS data from sysfs. SMBIOS 2.7 present. 13 structures occupying 567 bytes. Table at 0xBBE5A000. ... Handle 0x0009, DMI type 17, 34 bytes Memory Device Array Handle: 0x0008 ... Size: 8 GB Form Factor: DIMM ... Type: DDR4 ... Speed: 2666 MT/s ... ``` The Inspector parsed the same structure into the following object ([recorded parsed output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m5.large/0/dmidecode/parsed.json)), shortened here: ```json { "handle": { "id": "0x0009", "type": "17", "bytes": "34" }, "name": "Memory Device", "props": { "Array Handle": "0x0008", ... "Size": 8589934592, "Type": "DDR4", "Speed": 2666000000, ... "Size:unit": "B", "Speed:unit": "T/s" } } ``` ### How the Navigator Uses the Output The Navigator reads only the following SMBIOS structures from the parsed output to fill in the attributes of each server type: - **Memory Device:** The memory generation comes from `Type`, and the memory speed from `Speed`. The memory amount comes from the memory devices only when the tools of the [Hardware Info](https://docs.sparecores.com/images/hwinfo.md) image report none. - **Processor Information:** The CPU speed (`Max Speed`) and the CPU manufacturer, family, and model (`Version`) come from this structure, each only when `lscpu` reports none. The Navigator discards a CPU speed of 2 GHz on GCP (Google Cloud Platform) as unreliable. ### References This image's [Glossary](https://docs.sparecores.com/images/dmidecode/glossary.md) defines the terms of its own tool, such as DMI type. The [Spare Cores Glossary](https://docs.sparecores.com/glossary) defines common terms, such as SMBIOS, SMBIOS structure, and `dmidecode`. --- ## Hardware Info Source: [`images/hwinfo/`](https://github.com/SpareCores/sc-images/tree/main/images/hwinfo) in the `sc-images` repository. Image: [`ghcr.io/sparecores/hwinfo:main`](https://github.com/orgs/SpareCores/packages/container/package/hwinfo). This image bundles Linux command-line tools, such as `lshw` (Hardware Lister) and `lscpu` (CPU architecture information), that report a server's CPU, memory, disk, and topology details. The Inspector of [Spare Cores Navigator](https://docs.sparecores.com/overview) runs them on cloud servers. This image has no default command and no harness of its own: each run executes the one command passed after the image name. This image is not a benchmark, so nothing is timed or repeated. In production, the Inspector runs up to six commands on each server type. The commands print JSON (`lshw`, `lscpu`, and three `lsblk` commands) or XML (`lstopo`). The Inspector stores their output in the [`sc-inspector-data`](https://github.com/SpareCores/sc-inspector-data) repository. This image adds nothing to what the command prints. ### Tools This image is built on `ubuntu:24.04` and includes the following tools: | Tool | Package | Version | Production task | | ------ | --------- | --------- | ----------------- | | `lshw` | `lshw` from Ubuntu | Ubuntu archive at build time | `lshw` | | `lscpu` | util-linux, from the base image | 2.39.3 in production | `lscpu` | | `lsblk` | util-linux, from the base image | 2.39.3 in production | `lsblk`, `lsblk_discard`, `lsblk_topo` | | `lstopo` | `hwloc-nox` from Ubuntu | 2.10.0 in production | `lstopo` | | `jq` | `jq` from Ubuntu | Ubuntu archive at build time | `lscpu` | | LIKWID (Like I Knew What I'm Doing) tools | built from source | 5.3.0 | none | Despite its name, this image does not install the [`hwinfo`](https://github.com/openSUSE/hwinfo) tool. The `hwloc-nox` package is the hwloc (Portable Hardware Locality) build without graphical display support, and provides `lstopo`. In production, `jq` only reformats the JSON that `lscpu` prints. LIKWID is the only pinned tool: the [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/hwinfo/Dockerfile) builds release 5.3.0 from the upstream source, installs it under `/usr/local`, and adds `/usr/local/bin` to `PATH`. No production task runs it. The other tools come from the Ubuntu 24.04 archive after an `apt-get upgrade`, so their versions can change between image builds. The versions marked "in production" come from the `version` field that each production run records in its `meta.json` file in `sc-inspector-data`; for the `lshw` task, the field is empty. The Inspector collects more hardware details with the following images: - **[`dmidecode`](https://docs.sparecores.com/images/dmidecode.md):** Prints the SMBIOS (System Management BIOS) tables, from which the Navigator takes the memory generation and speed of each server type. - **[Virtualization](https://docs.sparecores.com/images/virtualization.md):** Checks whether KVM (Kernel-based Virtual Machine) can be used, which the Navigator shows as the hardware virtualization attribute of each server type. ### Usage This image sets no default command, so append the command to run after the image name. To print the CPU details as JSON, matching the `lscpu` production task: ```shell docker run --rm --privileged --network host ghcr.io/sparecores/hwinfo:main \ bash -c 'lscpu -JB | jq' ``` To print the hardware tree as JSON, as the `lshw` production task does: ```shell docker run --rm --privileged --network host ghcr.io/sparecores/hwinfo:main \ lshw -json ``` To print the hwloc topology as XML, as the `lstopo` production task does: ```shell docker run --rm --privileged --network host ghcr.io/sparecores/hwinfo:main \ lstopo --of xml ``` These commands use the same Docker options as production. This image reads no environment variables or configuration files of its own, and runs each command as root in `/`. This image is built for AMD64 and Arm64. Unlike the [benchmark images](https://docs.sparecores.com/images.md#benchmarks), it runs the command outside `resource-tracker`, so no resource usage is sampled. #### Production Setup The Inspector runs each command as a separate task, with the following commands and timeouts: | Task | Command | Timeout | | ------ | --------- | --------- | | `lshw` | `lshw -json` | 5 min | | `lscpu` | `bash -c 'lscpu -JB \| jq'` | 5 min | | `lsblk` | `lsblk -O -Jdb` | 1 min | | `lsblk_discard` | `lsblk -DJdb` | 1 min | | `lsblk_topo` | `lsblk -tJdb` | 1 min | | `lstopo` | `lstopo --of xml` | 30s | Production runs also differ from a plain `docker run` in the following ways: - **Docker Options:** Production runs every task with `--privileged` and host networking (`--network host`), as the commands above do. A plain `docker run` without these options runs unprivileged on Docker's default network. - **Timeout:** Production stops each task after the timeout in the table. A plain `docker run` sets no time limit. Production runs take a few seconds per task. - **Servers:** Production runs the tasks on every server type, except those on the blocklist in [`inspector_rules.py`](https://github.com/SpareCores/sc-crawler/blob/main/src/sc_crawler/inspector_rules.py) in [`sc-crawler`](https://github.com/SpareCores/sc-crawler). - **Server Start:** The `lsblk`, `lsblk_discard`, `lsblk_topo`, and `lstopo` tasks never start a server on their own; they run only when another task, such as `lshw` or `lscpu`, has started the server. These four tasks have results for fewer server types than `lshw` and `lscpu`. The commands and timeouts are in the six tasks above in [`inspector/tasks.py`](https://github.com/SpareCores/sc-inspector/blob/main/inspector/tasks.py) in [`sc-inspector`](https://github.com/SpareCores/sc-inspector), and the default Docker options are in [`inspector/lib.py`](https://github.com/SpareCores/sc-inspector/blob/main/inspector/lib.py). #### Outputs The production commands print the following to stdout: - **`lshw`:** A JSON tree of hardware nodes, each with fields such as `id`, `class`, `description`, `product`, `vendor`, `width`, `configuration`, and `capabilities`. - **`lscpu`:** A JSON object, `{"lscpu": [...]}`, with one `field` and `data` pair per line of the text table that `lscpu` prints by default. The `-B` option prints sizes in bytes. - **`lsblk`, `lsblk_discard`, and `lsblk_topo`:** A JSON object, `{"blockdevices": [...]}`, with one entry per whole disk (`-d`) and sizes in bytes (`-b`). The `lsblk` task prints all columns (`-O`), `lsblk_discard` the discarding capabilities (TRIM, UNMAP) of each device (`-D`), and `lsblk_topo` the block-device topology columns (`-t`). - **`lstopo`:** The hwloc topology as XML. The Inspector also renders it as an `lstopo.svg` image next to the XML. #### Production Results On [`aws/m7g.large`](https://sparecores.com/server/aws/m7g.large) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m7g.large/0/lscpu/stdout)), the `lscpu` task printed the following, shortened here: ```json { "lscpu": [ { "field": "Architecture:", "data": "aarch64" }, ... { "field": "CPU(s):", "data": "2" }, ... { "field": "Model name:", "data": "Neoverse-V1" }, ... ] } ``` The same server type has recorded output for the [`lshw` task](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m7g.large/0/lshw/stdout), the [`lsblk` task](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m7g.large/0/lsblk/stdout), and the [`lstopo` task](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m7g.large/0/lstopo/stdout), as well as the rendered [`lstopo.svg`](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m7g.large/0/lstopo/lstopo.svg). ### References This image's [Glossary](https://docs.sparecores.com/images/hwinfo/glossary.md) defines the terms of its own tools, such as `lshw`, hwloc, and LIKWID. The [Spare Cores Glossary](https://docs.sparecores.com/glossary) defines common terms, such as `lscpu`, `lsblk`, and util-linux. --- ## Virtualization Source: [`images/virtualization/`](https://github.com/SpareCores/sc-images/tree/main/images/virtualization) in the `sc-images` repository. Image: [`ghcr.io/sparecores/virtualization:main`](https://github.com/orgs/SpareCores/packages/container/package/virtualization). This image runs in a container and checks whether KVM (Kernel-based Virtual Machine) hardware virtualization can be used on a server. It runs `kvm-ok` once (from Ubuntu's `cpu-checker` package) and reports its answer as JSON. It is a yes/no check, not a benchmark: nothing is timed or repeated, and it does not measure virtualization performance. This image prints one line of JSON. When KVM can be used, the line is `{"kvm":true}`. When it cannot, `kvm` is `false` and `kvm_error` holds what `kvm-ok` printed. [Spare Cores Navigator](https://docs.sparecores.com/overview) publishes the `kvm` flag as its hardware virtualization attribute, `hw_virt`, on each server type's details page. The Navigator does not use `kvm_error`. ### Usage To check whether KVM can be used via Docker: ```bash docker run --rm --privileged ghcr.io/sparecores/virtualization:main \ /usr/local/bin/check_virt.sh ``` The check reports on the machine whose kernel runs the container. The check needs `--privileged`. This image keeps the `/bin/bash` default command of `ubuntu:24.04`, so pass the script path, [`/usr/local/bin/check_virt.sh`](https://github.com/SpareCores/sc-images/blob/main/images/virtualization/check_virt.sh), after the image name. The script reads no environment variables, options, or arguments. [Production runs](#production-setup) take a few seconds. This image is built for AMD64 and Arm64, and runs the check as root. Unlike the [benchmark images](https://docs.sparecores.com/images.md#benchmarks), it does not run the check under `resource-tracker`, because the check uses almost no resources. #### Production Setup The Navigator's [Inspector](https://github.com/SpareCores/sc-inspector) runs the same script with `--privileged`. Its production runs differ from the command above in the following ways: - **Docker Options:** Production runs the container detached and with host networking (`--network host`). The command above uses Docker's default network. - **Timeout:** Production stops the check after 5 minutes. A plain `docker run` sets no time limit. - **Servers:** Production runs the check on every server type, except those on the blocklist in [`inspector_rules.py`](https://github.com/SpareCores/sc-crawler/blob/main/src/sc_crawler/inspector_rules.py) in [`sc-crawler`](https://github.com/SpareCores/sc-crawler). The production settings are in the `virtualization` task of [`inspector/tasks.py`](https://github.com/SpareCores/sc-inspector/blob/main/inspector/tasks.py) in [`sc-inspector`](https://github.com/SpareCores/sc-inspector), with the default Docker options of [`inspector/lib.py`](https://github.com/SpareCores/sc-inspector/blob/main/inspector/lib.py). #### Output This image prints one line of JSON on stdout and writes no files. The JSON has the following fields: | Field | Type | When | Meaning | | ------ | ------ | ------ | ------ | | `kvm` | boolean | always | `true` if KVM can be used (`kvm-ok` exited with code 0), otherwise `false` | | `kvm_error` | string | only when `kvm` is `false` | Everything `kvm-ok` printed to stdout and stderr, joined into one line. If `kvm-ok` is not installed, it reads `kvm-ok command not found`. | To tell whether KVM can be used, read `kvm`, not the script's exit code. The script exits with code 0 whenever `kvm-ok` ran, regardless of whether KVM can be used. It exits with code 1 only when `kvm-ok` is not installed, which means this image is broken. To fit the output of `kvm-ok` on one line, the script replaces each newline with a space and escapes double quotes. A blank line in the output therefore leaves a run of spaces, and a failure without output leaves `kvm_error` empty. The script escapes no other characters, such as backslashes or tabs. An unescaped backslash or control character would make the line invalid JSON; none of the production outputs contains one. #### Production Results The runs in the [`sc-inspector-data`](https://github.com/SpareCores/sc-inspector-data) repository have returned only the following three outputs since production started running this check in January 2025. The examples below pair each output with a server type and its recorded output. **KVM Can Be Used:** Server types such as [`gcp/n2-standard-2`](https://sparecores.com/server/gcp/n2-standard-2) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/gcp/n2-standard-2/0/virtualization/stdout)): ```json {"kvm":true} ``` **No CPU Virtualization Flags:** Server types such as [`aws/m7i.large`](https://sparecores.com/server/aws/m7i.large) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/m7i.large/0/virtualization/stdout)) and [`hcloud/cx22`](https://sparecores.com/server/hcloud/cx22) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/hcloud/cx22/0/virtualization/stdout)): ```json {"kvm":false,"kvm_error":"INFO: Your CPU does not support KVM extensions KVM acceleration can NOT be used"} ``` On AMD64, `kvm-ok` prints this message when the CPU flags in `/proc/cpuinfo` include neither `vmx` nor `svm`. **No `/dev/kvm`:** Arm64 server types such as [`aws/c7g.large`](https://sparecores.com/server/aws/c7g.large) ([recorded output](https://github.com/SpareCores/sc-inspector-data/blob/main/data/aws/c7g.large/0/virtualization/stdout)): ```json {"kvm":false,"kvm_error":"INFO: /dev/kvm does not exist HINT: sudo modprobe kvm /usr/sbin/kvm-ok: 93: modprobe: not found"} ``` Although `kvm-ok` suggests loading the `kvm` kernel module with `modprobe`, it runs `modprobe` to load the `msr` module, which reads the CPU's model-specific registers. This image does not include `modprobe`, so `kvm-ok` stops with `modprobe: not found`. ### How the Check Works The [`check_virt.sh`](https://github.com/SpareCores/sc-images/blob/main/images/virtualization/check_virt.sh) script takes the following steps: 1. It checks that `kvm-ok` is installed. If it is not, the script prints `{"kvm":false,"kvm_error":"kvm-ok command not found"}` and exits with code 1. 2. It runs `kvm-ok` once and stores everything it prints to stdout and stderr in a shell variable for `kvm_error`. 3. If `kvm-ok` exited with code 0, it prints `{"kvm":true}`. Otherwise, it prints `kvm` as `false` and the output joined into one line as `kvm_error`. The result depends on the server and on whether `/dev/kvm` exists inside the container. On AMD64, `kvm-ok` checks that the CPU flags in `/proc/cpuinfo` include `vmx` (Intel) or `svm` (AMD), then that `/dev/kvm` exists. On Arm64, it checks only that `/dev/kvm` exists. The [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/virtualization/Dockerfile) installs `cpu-checker` on `ubuntu:24.04` without a pinned version, so the `kvm-ok` version can change between image builds. Ubuntu 24.04 ships `cpu-checker` 0.7-1.3build2, the version of its April 2024 release. Production records no tool version for this check. ### References This image's [Glossary](https://docs.sparecores.com/images/virtualization/glossary.md) defines its tool, `kvm-ok`. The [Spare Cores Glossary](https://docs.sparecores.com/glossary) defines common terms, such as KVM, `/dev/kvm`, and `modprobe`. --- ## PostgreSQL Server Source: [`images/benchmark-postgres-server/`](https://github.com/SpareCores/sc-images/tree/main/images/benchmark-postgres-server) in the `sc-images` repository. Image: [`ghcr.io/sparecores/benchmark-postgres-server:main`](https://github.com/orgs/SpareCores/packages/container/package/benchmark-postgres-server). This image runs a PostgreSQL 18 server that the [PostgreSQL (pgbench) benchmark](https://docs.sparecores.com/images/benchmark-pgbench-postgres.md) can connect to in remote mode. It is the upstream [`postgres:18`](https://hub.docker.com/_/postgres) image with `resource-tracker` added; the image starts the server with `nice -n -20` and default settings. The image measures nothing itself. This image reports no results: its container log holds only the PostgreSQL server log. The [PostgreSQL (pgbench) manual](https://docs.sparecores.com/images/benchmark-pgbench-postgres.md) describes how the benchmark runs `pgbench` against this server in remote mode and how to read its results. This page covers only how to run the server. ### Usage Start the server in the background via Docker: ```bash docker run -d --rm --name postgres-server --privileged -p 5432:5432 \ -e POSTGRES_PASSWORD= \ ghcr.io/sparecores/benchmark-postgres-server:main ``` Replace `` with a password of your choice. The upstream `postgres:18` entrypoint requires `POSTGRES_PASSWORD`. The `--privileged` option is optional: the image needs it only so that `nice -n -20` can raise the server's priority. Raising priority takes only the `CAP_SYS_NICE` capability, while `--privileged` grants the container far more. Without `--privileged`, the server runs at normal priority. Once the server accepts connections, run the benchmark in [remote mode](https://docs.sparecores.com/images/benchmark-pgbench-postgres/usage.md#remote-mode) against it from the same machine or another one, and save its JSON result. The benchmark does not wait for the server to accept connections, so check the server log with `docker logs postgres-server` first: ```bash docker run --rm \ -e SC_DB_HOST= \ -e SC_DB_PASSWORD= \ -e SC_DB_VCPUS= \ ghcr.io/sparecores/benchmark-pgbench-postgres:main > result.json ``` Fill in the following placeholders: - ``: the hostname or IP address of the machine that runs the server container. Port 5432 of that machine must be reachable from the benchmark machine. When both containers run on the same machine, use an IP address of the host, such as its private IP address, not `localhost`, which points to the benchmark container itself. - ``: the `POSTGRES_PASSWORD` value of the server container. - ``: the vCPU count of the server machine, as `nproc` prints it on that machine. The benchmark derives its concurrency points from that count. `SC_DB_PORT` and `SC_DB_USER` keep their defaults, `5432` and `postgres`. When `POSTGRES_USER` is set on the server, set `SC_DB_USER` to the same value. When both containers run on one machine, add `-e SC_TOPOLOGY=single_vm` to the benchmark command; otherwise, the benchmark records `topology` as `multi_vm` in its output. Stop the server with `docker stop postgres-server`. Because of `--rm`, this also removes the container and its database. #### Settings This image sets no PostgreSQL settings. It adds only the environment variable `TRACKER_QUIET` (default: `true`), which silences `resource-tracker`. The upstream `postgres:18` entrypoint reads the other variables, such as `POSTGRES_PASSWORD`, `POSTGRES_USER`, and `PGDATA`; see the [`postgres` image docs](https://hub.docker.com/_/postgres) on Docker Hub. To change a server setting, append `postgres` and one `-c =` pair per setting after the image name. The benchmark drops the concurrency points above the server's `max_connections` minus 50. Its highest default point is twice the vCPU count, so set `max_connections` to at least (2 × vCPU count) + 50 to keep all points. PostgreSQL's default `max_connections` of 100 leaves room for 50 clients. The benchmark therefore drops every point above 50: the highest point on servers with more than 25 vCPUs, and additional points on servers with more than 50. For example, the following command raises `max_connections` to 242 (twice 96, plus 50) for a server with 96 vCPUs: ```bash docker run -d --rm --name postgres-server --privileged -p 5432:5432 \ -e POSTGRES_PASSWORD= \ ghcr.io/sparecores/benchmark-postgres-server:main \ postgres -c max_connections=242 ``` #### Output The container log holds the PostgreSQL server log. Read it with `docker logs postgres-server`. The `resource-tracker` tool samples the server's resource usage, such as CPU, memory, disk, and network, once per second. In production runs, the Spare Cores team [streams these samples](https://sparecores.com/article/resource-tracker-rs#streaming-to-sentinel) to the [Spare Cores Sentinel](https://sentinel.sparecores.com/) platform for its own monitoring. This resource usage is not published. ### Differences from the Upstream Image The image differs from the upstream `postgres:18` image in the following ways: - **Process Tree:** The [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/benchmark-postgres-server/Dockerfile) starts `resource-tracker -- nice -n -20 docker-entrypoint.sh postgres`. The upstream entrypoint and server run unchanged under `resource-tracker`. - **No Tuning:** The image adds no configuration files, initialization scripts, or settings, so the server runs with PostgreSQL defaults. In [standalone mode](https://docs.sparecores.com/images/benchmark-pgbench-postgres/usage.md#standalone-mode), the benchmark instead tunes its local server to the host's memory and vCPUs. - **Minor Version:** The image builds on `postgres:18`, so only the major version is fixed. Minor versions vary between builds, as described in [Minor Engine Versions](https://docs.sparecores.com/images/benchmark-pgbench-postgres/limitations.md#minor-engine-versions). ### References The terms on this page are defined in the following places: - The [Glossary](https://docs.sparecores.com/images/benchmark-pgbench-postgres/glossary.md) of the [PostgreSQL (pgbench) manual](https://docs.sparecores.com/images/benchmark-pgbench-postgres.md) defines the terms of the benchmark, such as concurrency points. - The [Spare Cores Glossary](https://docs.sparecores.com/glossary) defines common terms, such as `nice` and `resource-tracker`. --- ## llama.cpp Server Source: [`images/llama.cpp/`](https://github.com/SpareCores/sc-images/tree/main/images/llama.cpp) in the `sc-images` repository. Image: [`ghcr.io/sparecores/llama.cpp:main`](https://github.com/orgs/SpareCores/packages/container/package/llama.cpp). This image runs `llama-server`, the HTTP server of llama.cpp, built from source with CUDA (Compute Unified Device Architecture) for NVIDIA GPUs. It includes the server and the libraries of its build on NVIDIA's CUDA 12.4.0 runtime image for Ubuntu 22.04. It is published for AMD64 and Arm64: the upstream llama.cpp CUDA images were built only for AMD64 when this image was created, so it clones their build to add Arm64. This image runs a server, not a benchmark, so it produces no benchmark results. Its container prints the log of `llama-server` and serves the llama.cpp HTTP API on port 8080. No other image in the [`sc-images` repository](https://github.com/SpareCores/sc-images) builds on this one: the [`benchmark-llm`](https://docs.sparecores.com/images/benchmark-llm.md) benchmark runs the upstream llama.cpp images instead. ### Usage To start a server for a GGUF (GGML Universal File) model file on the host via Docker: ```bash docker run --rm --gpus all -p 8080:8080 -v :/models ghcr.io/sparecores/llama.cpp:main -m /models/.gguf ``` The command uses the following options: - **`--gpus all`:** Needs a host with an NVIDIA GPU, the NVIDIA driver, and the NVIDIA Container Toolkit. The [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/llama.cpp/Dockerfile) notes that its CUDA version needs to "generally match the container host's environment", so check that the host's NVIDIA driver supports CUDA 12.4. - **`-v :/models`:** Mounts the host folder that holds the model. Replace `` with its absolute path. `/models` is only an example mount point: the image defines no volume. - **`-m /models/.gguf`:** The `llama-server` option that sets the model file. Replace `.gguf` with the file name of the model. The container entrypoint is `llama-server`, so the arguments after the image name go to that server. The build enables the llama.cpp support for loading models from a URL (`LLAMA_CURL=ON`), so `llama-server` can also download a model instead of reading a mounted file, with its `--model-url` or `--hf-repo` option; see the [llama.cpp server documentation](https://github.com/ggml-org/llama.cpp/tree/master/tools/server#common-params). To check from the host that the server responds: ```bash curl -f http://localhost:8080/health ``` The image's health check runs the same request inside the container, with Docker's default interval, timeout, and retries, and Docker shows the result as the health status of the container. #### Settings The settings are the options of `llama-server`, given after the image name or as `LLAMA_ARG_*` environment variables with `-e`. The [llama.cpp server documentation](https://github.com/ggml-org/llama.cpp/tree/master/tools/server) lists the options and their defaults. The image sets or depends on the following: - **Host:** The `Dockerfile` sets `LLAMA_ARG_HOST=0.0.0.0`, so `llama-server` listens on all interfaces of the container, and `-p` can publish its port. Binding the server to another address than `0.0.0.0` or the loopback address makes the health check fail. - **Port:** The server listens on port 8080, which the image does not declare with `EXPOSE`. The health check always requests port 8080 on `localhost`, so moving the server with `--port` or `LLAMA_ARG_PORT` makes it fail. To use another port on the host, change only the host side of `-p`, such as `-p 9000:8080`. - **API key:** The image sets none, so the API accepts requests from any client that reaches the published port. To require a key, pass the `--api-key` option of `llama-server` or set `LLAMA_API_KEY`. When the health check fails, Docker marks the container `unhealthy`, while the server keeps running. #### Output The container prints the `llama-server` log. Requests get the standard llama.cpp responses, such as the generated text from [`/completion`](https://github.com/ggml-org/llama.cpp/tree/master/tools/server#post-completion-given-a-prompt-it-returns-the-predicted-completion). ### Build The [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/llama.cpp/Dockerfile) clones the [llama.cpp repository](https://github.com/ggml-org/llama.cpp) and builds it with CMake on `nvidia/cuda:12.4.0-devel-ubuntu22.04`, with the following options: - `GGML_CUDA=ON` builds the CUDA backend, which runs the model on NVIDIA GPUs. - `LLAMA_CURL=ON` builds the support for loading a model from a URL, described in [Usage](#usage). - `GGML_NATIVE=OFF` does not tune the CPU code for the processor of the build machine, so the binaries also run on other CPUs of the same architecture. CI builds with the default `CUDA_DOCKER_ARCH`, so the build passes no list of CUDA architectures to CMake, and the llama.cpp build files choose which NVIDIA GPU generations to compile for. The published image is based on `nvidia/cuda:12.4.0-runtime-ubuntu22.04` and contains the `llama-server` binary, the shared libraries of the build, and `curl` for the health check. The image sets no user, so `llama-server` runs as root. The `Dockerfile` also defines a `full` stage with all llama.cpp tools and Python scripts, and a `light` stage with `llama-cli` only. CI builds the last stage, `server`, so only the server is published. #### llama.cpp Version The `Dockerfile` sets the build argument `LLAMA_COMMIT_HASH` to the llama.cpp release `b4753`, but declares it only before the first `FROM`, where it is not visible to the `RUN` steps of the build stage. The `git checkout` therefore gets no ref, and the build compiles the default branch of llama.cpp as it is at build time. Passing `--build-arg LLAMA_COMMIT_HASH=` does not change this. As a result, the llama.cpp version of the published image depends on when CI last built it, and the AMD64 and Arm64 builds of one CI run can contain different llama.cpp commits. ### References The term `llama-server` is defined in its [Glossary](https://docs.sparecores.com/images/llama.cpp/glossary.md). Common terms, such as CUDA, GGUF, and the NVIDIA Container Toolkit, are defined in the [Spare Cores Glossary](https://docs.sparecores.com/glossary). --- ## Resource Tracker Source: [`images/resource-tracker/`](https://github.com/SpareCores/sc-images/tree/main/images/resource-tracker) in the `sc-images` repository. Image: [`ghcr.io/sparecores/resource-tracker:main`](https://github.com/orgs/SpareCores/packages/container/package/resource-tracker). This image carries the `resource-tracker` binary of [Resource Tracker](https://github.com/SpareCores/resource-tracker-rs) and nothing else. [Other images](https://docs.sparecores.com/images/resource-tracker/contributors.md#consumers) of the [`sc-images` repository](https://github.com/SpareCores/sc-images) copy the binary from this image and run their workload under it. The `resource-tracker` binary samples the workload's CPU, memory, disk, network, GPU, and GPU memory use once per second. This image measures nothing by itself. This image prints nothing. In production, Resource Tracker [streams the samples](https://sparecores.com/article/resource-tracker-rs#streaming-to-sentinel) to the [Spare Cores Sentinel](https://sentinel.sparecores.com/) platform for the Spare Cores team's own monitoring. Spare Cores does not publish these samples. ### Purpose [Resource Tracker](https://github.com/SpareCores/resource-tracker) is a separate Spare Cores product, not part of [Spare Cores Navigator](https://docs.sparecores.com/overview). This image carries its Rust implementation, [`resource-tracker-rs`](https://github.com/SpareCores/resource-tracker-rs). The Spare Cores team uses it to check that each Navigator benchmark uses the CPU or GPU cores as intended. Each benchmark image copies the binary from this image's `main` tag (in CI, from `main-amd64` or `main-arm64`) when it is built, so every image built after a version change gets the version that this image pins. This image publishes no version tags. ### Usage To build an image that runs its command under `resource-tracker`, as the benchmark images do, use a `Dockerfile` such as the following: ```dockerfile FROM ghcr.io/sparecores/resource-tracker:main AS resource_tracker FROM ubuntu:24.04 COPY --from=resource_tracker /usr/local/bin/resource-tracker /usr/local/bin/resource-tracker ENV TRACKER_QUIET=true ENTRYPOINT ["/usr/local/bin/resource-tracker", "--"] ``` This image is published for AMD64 and Arm64, as the multi-architecture `main` tag and the per-architecture `main-amd64` and `main-arm64` tags. Replace `ubuntu:24.04` with the base image of the target image. The base image needs glibc (GNU C Library) version 2.17 or newer, because the release builds of Resource Tracker target glibc 2.17 and link it dynamically. With this entrypoint, the arguments after the image name in `docker run` are the command to track: the container runs `resource-tracker -- `. The binary cannot run inside this image. The final stage of the [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/resource-tracker/Dockerfile) starts `FROM scratch` and copies in only `/usr/local/bin/resource-tracker`, so this image has no C library, shell, entrypoint, or default command. To run Resource Tracker on a host or in a project outside the `sc-images` repository, download the binary from the [`resource-tracker-rs` releases](https://github.com/SpareCores/resource-tracker-rs/releases) instead. The releases publish `linux-amd64` and `linux-arm64` archives, and the [CLI flags](https://sparecores.github.io/resource-tracker-rs/Usage.html#cli-flags) section of the project's Usage Guide describes its command-line options. ### Build The [`Dockerfile`](https://github.com/SpareCores/sc-images/blob/main/images/resource-tracker/Dockerfile) downloads a prebuilt release of Resource Tracker from its GitHub releases, and does not build it from source. The version is 0.1.17, pinned in the [`RESOURCE_TRACKER_VERSION`](https://github.com/SpareCores/sc-images/blob/main/images/resource-tracker/RESOURCE_TRACKER_VERSION) file, which CI passes to the build as the build argument of the same name. CI builds this image before any image that copies the binary from it. ### References Common terms, such as `resource-tracker`, glibc, AMD64, and Arm64, are defined in the [Spare Cores Glossary](https://docs.sparecores.com/glossary). ### Contributing The [contributor guide](https://docs.sparecores.com/images/resource-tracker/contributors.md) describes how to change the pinned version and build this image locally, and how CI builds it and the images that depend on it. --- ## vLLM CPU Base (AVX2) Source: [`images/vllm-cpu-base-avx2/`](https://github.com/SpareCores/sc-images/tree/main/images/vllm-cpu-base-avx2) in the `sc-images` repository. Image: [`ghcr.io/sparecores/vllm-cpu-base-avx2:main`](https://github.com/orgs/SpareCores/packages/container/package/vllm-cpu-base-avx2). This image provides a vLLM 0.27.1 server built from source for AMD64 CPUs. It is the base image of [`benchmark-vllm-cpu-avx2`](https://docs.sparecores.com/images/benchmark-vllm-cpu-avx2.md), the vLLM benchmark for AMD64 CPUs with AVX2 (Advanced Vector Extensions 2) but without AVX-512 (Advanced Vector Extensions 512). It builds the `vllm-openai` stage of the upstream vLLM CPU [`Dockerfile`](https://github.com/vllm-project/vllm/blob/v0.27.1/docker/Dockerfile.cpu), so its container starts `vllm serve`. This image runs a server, not a benchmark, so it produces no benchmark results. Its container prints only the log of `vllm serve`. The [vLLM family manual](https://docs.sparecores.com/images/vllm-common.md) describes how the benchmark built on this image measures LLM serving and how to read its results. ### Usage To start a vLLM server for one model via Docker: ```bash docker run --rm ghcr.io/sparecores/vllm-cpu-base-avx2:main / ``` Replace `/` with the Hugging Face model ID of the model to serve. The container [entrypoint](https://github.com/vllm-project/vllm/blob/v0.27.1/docker/Dockerfile.cpu#L307) is `vllm serve`, so the arguments after the image name go to `vllm serve`. The image does not check which instruction sets the host CPU supports. The vLLM benchmarks test an AMD64 host for AVX-512 in their harness, which this image does not include, and `benchmark-vllm-cpu-avx2` skips that test. This image sets no Docker options for ports, shared memory, or the model cache. The vLLM benchmarks need `--shm-size=4g`, because they fail with Docker's default 64 MiB `/dev/shm`; see the family manual's [usage page](https://docs.sparecores.com/images/vllm-common/usage.md#shared-memory-and-versions). The image is published for AMD64 only, under two tags: `main-amd64`, which `benchmark-vllm-cpu-avx2` builds on, and `main`, which CI creates from it. ### Build CI builds this image from the vLLM source at the version that [`VLLM_VERSION`](https://github.com/SpareCores/sc-images/blob/main/vllm-common/VLLM_VERSION) pins. [`benchmark-vllm-cpu`](https://docs.sparecores.com/images/benchmark-vllm-cpu.md) builds on the vLLM CPU image from Docker Hub at the same version. The image has no `Dockerfile` of its own. Its [`prepare.sh`](https://github.com/SpareCores/sc-images/blob/main/images/vllm-cpu-base-avx2/prepare.sh) hook clones vLLM and patches the upstream [`docker/Dockerfile.cpu`](https://github.com/vllm-project/vllm/blob/v0.27.1/docker/Dockerfile.cpu), and CI builds the `vllm-openai` stage of that file. The stage does the following: - installs the vLLM CPU build - installs the `triton-cpu` wheel - copies the `examples/` folder of vLLM - sets the container entrypoint to `vllm serve` The upstream `Dockerfile` builds on `ubuntu:22.04` and uses Python 3.12 by default. The hook patches only this file and its `.dockerignore`; for example, it pins `ubuntu:22.04` by digest. With the compiler cache on, as in CI, the build also points the compiler launchers in vLLM's `setup.py` at a wrapper. See [Dockerfile Patches](https://docs.sparecores.com/images/vllm-cpu-base-avx2/contributors.md#dockerfile-patches) and [Compiler Cache](https://docs.sparecores.com/images/vllm-cpu-base-avx2/contributors.md#compiler-cache) for the details. On AMD64, the vLLM 0.27.1 build compiles three variants of the vLLM CPU extension: one for AVX-512 with AMX (Advanced Matrix Extensions), one for AVX-512, and one for AVX2 ([`cpu_extension.cmake`](https://github.com/vllm-project/vllm/blob/v0.27.1/cmake/cpu_extension.cmake#L131-L152)). The [`BUILD_ARGS`](https://github.com/SpareCores/sc-images/blob/main/images/vllm-cpu-base-avx2/BUILD_ARGS) file passes `VLLM_CPU_AVX2=true` to the build, but the upstream `Dockerfile` of vLLM 0.27.1 declares no such build argument, so the setting does not change the build. We do not plan to change the pinned version, because results with another version would not be comparable; see [Version Changes](https://docs.sparecores.com/images/vllm-common/contributors.md#version-changes). ### References Common terms, such as AVX2, AVX-512, and `vllm serve`, are defined in the [Spare Cores Glossary](https://docs.sparecores.com/glossary). ### Contributing To rebuild this image locally or change how CI builds it, see the [contributor guide](https://docs.sparecores.com/images/vllm-cpu-base-avx2/contributors.md). --- ## Glossary Acronyms and other terms used in these docs, with links to learn more. Hover a term where the docs spell it out, e.g. "CRF (Constant Rate Factor)", or a license such as MPL 2.0, to see its entry here. ### General The terms used across the docs, with a tooltip on every page. #### A ##### AAC **Advanced Audio Coding**: A lossy audio codec standardized in MPEG-2 and MPEG-4 as the successor of MP3. It sounds better than MP3 at the same bitrate, and it is the usual audio track of MP4 files and streaming video. See [FFmpeg AAC encoder](https://ffmpeg.org/ffmpeg-codecs.html#aac). ##### access token A secret string that a program sends to an online service to act for an account, in place of the account's password. The token's permissions set what the program may do; a Hugging Face read token, for example, lets a program download the gated models whose licenses the account has accepted. See [Hugging Face Hub docs](https://huggingface.co/docs/hub/security-tokens). ##### AMD64 The 64-bit version of the x86 instruction set architecture, introduced by AMD in 2003 and also implemented by Intel, which runs most cloud servers. Linux distributions and Docker name it `amd64` or `x86_64`. See [Wikipedia](https://en.wikipedia.org/wiki/X86-64). ##### Ampere Altra A family of Arm server CPUs from Ampere Computing, built from Arm Neoverse N1 cores, with up to 128 cores per socket in the Altra Max model. Cloud providers use it in Arm-based server types. See [Wikipedia](https://en.wikipedia.org/wiki/Ampere_Computing). ##### AMX **Advanced Matrix Extensions**: A set of x86 instructions for matrix multiplication, introduced by Intel in its server CPUs in 2023. It adds two-dimensional registers, called tiles, and instructions that multiply them in 8-bit integer or bfloat16 precision, which speeds up deep learning inference on the CPU. Linux lists it as the `amx_tile`, `amx_int8`, and `amx_bf16` flags in `/proc/cpuinfo`. See [Wikipedia](https://en.wikipedia.org/wiki/Advanced_Matrix_Extensions). ##### API **Application Programming Interface**: A defined set of requests and responses through which one program uses another, such as a web service's HTTP endpoints or a library's functions. See [Wikipedia](https://en.wikipedia.org/wiki/API). ##### Arm64 The 64-bit execution state of the Arm architecture, also called AArch64, used by server CPUs such as AWS Graviton, Ampere Altra, and Google Axion. Linux distributions and Docker name it `arm64` or `aarch64`. See [Wikipedia](https://en.wikipedia.org/wiki/AArch64). ##### ASIC **Application-Specific Integrated Circuit**: An integrated circuit designed for one specific task instead of general-purpose computing. It runs that task faster and with less energy than a CPU or GPU, but cannot be reprogrammed for other work. Examples are Bitcoin mining chips, network switch chips, and AI accelerators such as TPUs. See [Wikipedia](https://en.wikipedia.org/wiki/Application-specific_integrated_circuit). ##### attention head One of several parallel attention computations in a layer of a transformer model. Each head projects the tokens into its own smaller query, key, and value vectors and learns which earlier tokens to focus on, and the layer combines the outputs of all heads. The number of heads per layer is fixed by the model's architecture, and methods that split a layer across devices, such as tensor parallelism, usually assign whole heads to each device. See [Attention Is All You Need](https://arxiv.org/abs/1706.03762). ##### availability zone One or more isolated data centers within a cloud region, with their own power, cooling and network. A server runs in one zone; spreading servers over several zones of a region keeps a service up when one zone fails. Prices and the server types on offer can differ by zone. See [AWS docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html). ##### AVX-512 **Advanced Vector Extensions 512**: A set of x86 SIMD instructions that operate on 512-bit registers, so that one instruction processes, for example, 16 single-precision floating-point numbers at once. Intel introduced it in its server CPUs with the Skylake generation, and AMD supports it from the Zen 4 generation. It is made of several subsets, such as the foundation, `avx512f`, and `avx512_bf16` for bfloat16 arithmetic, which Linux lists as flags in `/proc/cpuinfo`. See [Wikipedia](https://en.wikipedia.org/wiki/AVX-512). ##### AVX2 **Advanced Vector Extensions 2**: A set of x86 SIMD instructions that operate on 256-bit registers, introduced by Intel with the Haswell generation in 2013 and supported by AMD since 2015. It extends most integer vector instructions of the earlier AVX set to 256 bits. Nearly all current x86 CPUs support it, and AVX-512 is its wider successor. See [Wikipedia](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#Advanced_Vector_Extensions_2). ##### AWS **Amazon Web Services**: The cloud computing platform of Amazon, launched in 2006 and the largest public cloud by market share. It offers hundreds of services, from virtual machines (EC2) and object storage (S3) to managed databases and machine learning. See [AWS](https://aws.amazon.com/). #### B ##### bfloat16 A 16-bit floating-point format designed for machine learning by Google Brain, a former AI research team at Google, now part of Google DeepMind. It keeps the 8-bit exponent of float32 but only 7 bits of its mantissa, so it covers the same range of values in half the memory, at a lower precision. Many CPUs, GPUs, and TPUs compute with it natively. See [Wikipedia](https://en.wikipedia.org/wiki/Bfloat16_floating-point_format). ##### `binserve` An open-source static web server written in Rust, distributed as a single binary and configured with one JSON file. It maps URL routes to files and directories, can keep files cached in memory, and can also serve encrypted connections and list directory contents. See [binserve on GitHub](https://github.com/mufeedvh/binserve). ##### `blkdiscard` A Linux command from util-linux that discards (trims) a range of blocks, by default all blocks of a device, and so deletes their data. An SSD then treats those blocks as unwritten and can erase them in the background, which restores the write speed of a fresh drive. See [man page](https://man7.org/linux/man-pages/man8/blkdiscard.8.html). ##### `brotli` A lossless compression format by Google, standardized in RFC 7932. It combines LZ77-style matching, Huffman coding, and context modeling with a built-in dictionary of common web text, and is widely used to compress HTTP responses. Its quality levels range from 0 (fastest) to 11 (smallest output). See [RFC 7932](https://www.rfc-editor.org/rfc/rfc7932). ##### BSD **Berkeley Software Distribution**: A family of Unix-like operating systems that descend from the Unix of the University of California, Berkeley, such as FreeBSD, NetBSD, and OpenBSD. See [Wikipedia](https://en.wikipedia.org/wiki/Berkeley_Software_Distribution). ##### BSL 1.1 **Business Source License 1.1**: The source-available license of the Navigator's Database snapshots. Anyone may copy, modify and redistribute them, and use them outside production. Production use is free for academic research and for organizations with less than USD 1 million in annual revenue that don't build a competing cloud data, benchmarking or price-comparison service; other production use needs a commercial license. Three years after its publication, each snapshot is also available under CC BY-SA 4.0. See [Spare Cores license](https://sparecores.com/legal/license-bsl), [MariaDB FAQ](https://mariadb.com/bsl-faq-mariadb/). ##### BuildKit The build engine of Docker, which builds container images from a Dockerfile. It runs independent build stages in parallel, caches each layer under a key computed from its instruction and inputs, and can export this cache to a registry and import it in a later build. It can also pass secrets to a build step as files that are not stored in the image or its cache. See [Docker docs](https://docs.docker.com/build/buildkit/). ##### burstable A CPU allocation of a cloud server that guarantees only a fraction of its vCPUs' time, and lets it run faster for a while from credits it earns when idle, e.g. the AWS T instances. Compared to dedicated vCPUs, each backed by a hardware thread of its own, and shared ones, which compete with other servers, it is cheap for workloads that are mostly idle, but slow for sustained load. See [AWS docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html). ##### `bw_mem` The memory bandwidth tool of LMbench. It moves data through a buffer of a given size in one of several modes, such as `rd` (read and sum an array), `wr` (write a constant to each element), `rdwr` (read, then write the same location), and the copy modes `cp`, `fcp`, and `bcopy`. It reports the buffer size in MB and the bandwidth in MB/s; with `-P`, it runs several processes, each with its own buffer, and reports their total bandwidth. See [`bw_mem` manual](https://github.com/intel/lmbench/blob/master/doc/bw_mem.8). ##### `bzip2` A lossless file compressor by Julian Seward, first released in 1996. It sorts each block of data with the Burrows-Wheeler transform, then encodes it with move-to-front and Huffman coding. It usually compresses better than gzip but runs slower; its levels 1 to 9 set the block size from 100 to 900 kB. See [bzip2](https://sourceware.org/bzip2/). ##### `bzip3` A lossless compressor by Kamila Szewczyk that, like bzip2, is built on the Burrows-Wheeler transform, combined with context modeling. It typically compresses text better than bzip2, and its configurable block size trades memory use for compression ratio. See [bzip3 on GitHub](https://github.com/kspalaiologos/bzip3). #### C ##### `CAP_SYS_NICE` A Linux capability that lets a process raise its scheduling priority, for example with `nice -n -20`, and change the scheduling policy of other processes. Root has it, and a container gets it with `--privileged` or `--cap-add SYS_NICE`. See [man page](https://man7.org/linux/man-pages/man7/capabilities.7.html). ##### CC BY 3.0 **Creative Commons Attribution 3.0**: A Creative Commons license that allows anyone to copy, adapt and use a work, also commercially, as long as they credit its author. See [License](https://creativecommons.org/licenses/by/3.0/). ##### CC BY-SA 4.0 **Creative Commons Attribution-ShareAlike 4.0**: The open license of the data the Navigator collects, such as the Crawler Data and the Inspector Data. Anyone may copy, share and adapt the data, also commercially, if they credit Spare Cores, indicate their changes, and share their adaptations under the same license. See [Spare Cores license](https://sparecores.com/legal/license-cc-by-sa), [Creative Commons summary](https://creativecommons.org/licenses/by-sa/4.0/). ##### CC0 1.0 **Creative Commons Zero 1.0**: A Creative Commons dedication with which authors waive all their copyright in a work, placing it as close to the public domain as the law allows. Anyone may use the work for any purpose, without attribution. See [License](https://creativecommons.org/publicdomain/zero/1.0/). ##### CDN **Content Delivery Network**: A network of distributed servers that cache content, such as web pages, images or video, and serve it from locations close to its users. It lowers latency for the users and offloads traffic from the origin server. See [Wikipedia](https://en.wikipedia.org/wiki/Content_delivery_network). ##### CE **Copy Engine**: A DMA (Direct Memory Access) engine of an NVIDIA GPU that copies data between GPU memory, host memory, and the memory of other GPUs without using the GPU's compute cores. A GPU has one or more copy engines, which CUDA uses for memory copies, so data transfers can run at the same time as compute kernels. See [CUDA programming guide](https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#asynchronous-concurrent-execution). ##### cgroup v2 **control groups v2**: The Linux kernel feature that organizes processes into a hierarchy of groups, and limits and accounts for the CPU, memory and I/O of each group. Container runtimes such as Docker use it to enforce the resource limits of a container. It replaced the original cgroup v1 with a single, unified hierarchy. See [Linux kernel docs](https://docs.kernel.org/admin-guide/cgroup-v2.html), [Docker resource constraints](https://docs.docker.com/engine/containers/resource_constraints/). ##### CI **Continuous Integration**: The practice of building and testing code automatically on every change, usually on a hosted service such as GitHub Actions, so problems show up before the change is merged. See [Wikipedia](https://en.wikipedia.org/wiki/Continuous_integration). ##### CMake An open-source build tool for C and C++ projects. It reads a project's `CMakeLists.txt` and generates the native build files for a compiler and platform, such as Makefiles or Ninja files. Options given with `-D` when the build is configured, such as `-DCMAKE_BUILD_TYPE=Release`, set the build type and turn a project's optional features on or off. See [CMake docs](https://cmake.org/cmake/help/latest/). ##### compression ratio A measure of how much a compressor shrinks data, from the sizes of the uncompressed and the compressed data. It is most often given as uncompressed size divided by compressed size, where higher is better, but some tools report compressed size divided by uncompressed size as a percentage, where lower is better. See [Wikipedia](https://en.wikipedia.org/wiki/Data_compression_ratio). ##### compute capability A version number, such as 8.0 or 9.0, that NVIDIA assigns to each GPU generation to identify the hardware features and instructions it supports. The major number marks the architecture, for example 7 for Volta and Turing, 8 for Ampere and Ada Lovelace, and 9 for Hopper. CUDA software can require a minimum compute capability, so that it runs only on GPUs of that generation or later. See [NVIDIA](https://developer.nvidia.com/cuda-gpus). ##### container entrypoint The executable that a container image runs when a container starts, set by the `ENTRYPOINT` instruction of its Dockerfile. The image's default command (`CMD`), or the arguments given after the image name in `docker run`, are passed to it as arguments, so an entrypoint can wrap any command, for example to set up the environment or record resource usage first. The `docker run --entrypoint` option replaces it. See [Dockerfile reference](https://docs.docker.com/reference/dockerfile/#entrypoint). ##### CPU **Central Processing Unit**: The general-purpose processor of a computer, which runs the operating system and programs. A CPU has one or more physical cores, and with SMT each core runs two or more hardware threads. See [Wikipedia](https://en.wikipedia.org/wiki/Central_processing_unit). ##### CPU affinity The set of CPU cores that a thread or process may run on, which the operating system's scheduler keeps to when it places the thread. It includes every core by default; restricting it to chosen cores is called thread binding or CPU pinning. See [Linux man page](https://man7.org/linux/man-pages/man2/sched_setaffinity.2.html). ##### CPU cache Small, fast memory inside a CPU that holds copies of recently used data, so that most accesses avoid the slower RAM. Server CPUs have three levels, each larger and slower than the one before. The L1 cache is split into a data cache (L1d) and an instruction cache (L1i) and belongs to one core, as the L2 cache usually does, while the L3 cache is shared by the cores of a socket, a die, or a group of cores. See [Wikipedia](https://en.wikipedia.org/wiki/CPU_cache). ##### CPU Mark The overall CPU score of PassMark PerformanceTest. It combines the results of the CPU tests, such as integer and floating-point math, prime numbers, sorting, encryption, compression, physics, and a single-threaded test, into one unitless number, where higher is better. PassMark Software publishes CPU Mark results submitted by users for thousands of processors. See [PassMark CPU Benchmarks](https://www.cpubenchmark.net/). ##### CPU-credit throttling A limit on burstable cloud server types, which earn CPU credits while they run below a baseline CPU usage and spend them to run above it. When the credits run out, the provider throttles the server to its baseline, so sustained load runs slower than a short burst. See [AWS burstable instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html). ##### CSV **Comma-Separated Values**: A plain-text format for tables, with one record per line and the fields of each record separated by commas. The first line often holds the column names. Spreadsheets, databases, and data analysis tools read and write it. See [RFC 4180](https://www.rfc-editor.org/rfc/rfc4180). ##### CTE **Common Table Expression**: A named temporary result set, defined with `WITH` at the start of a SQL statement, that the rest of the statement can query like a table. CTEs make complex queries easier to read, and recursive CTEs can walk hierarchies such as trees. See [PostgreSQL docs](https://www.postgresql.org/docs/current/queries-with.html). ##### CUDA **Compute Unified Device Architecture**: The parallel computing platform and programming model of NVIDIA GPUs. It runs general-purpose code on the GPU, and most machine learning frameworks rely on its libraries, such as cuBLAS and cuDNN. See [NVIDIA docs](https://docs.nvidia.com/cuda/). ##### CUDA Toolkit NVIDIA's development kit for building CUDA programs, with the nvcc compiler, headers, and libraries such as the CUDA runtime and cuBLAS. A program is built against one toolkit version and runs on any host whose NVIDIA driver supports that CUDA version, so the toolkit used for the build and the CUDA version a host reports can differ. See [NVIDIA docs](https://docs.nvidia.com/cuda/). ##### CV **Coefficient of Variation**: The standard deviation of a set of measurements divided by their mean, often given as a percentage. As it is scale-free, it compares the variability of measurements of different magnitudes, such as how much repeated runs of different benchmarks vary. See [Wikipedia](https://en.wikipedia.org/wiki/Coefficient_of_variation). #### D ##### DBaaS **Database as a Service**: A cloud service model in which the vendor runs a database for its users, handling provisioning, backups, patching and replication. Examples are Amazon RDS and Google Cloud SQL. See [Wikipedia](https://en.wikipedia.org/wiki/Cloud_database). ##### dependent load A memory load whose address comes from the result of an earlier load, so the CPU cannot start it until that load has finished. A chain of dependent loads, as in pointer chasing, exposes the full latency of each access. ##### `/dev/kvm` The device file through which Linux programs create and run VMs with KVM. It exists when the KVM kernel module is loaded, which needs a CPU with hardware virtualization extensions. Access to it is usually limited to root and the members of the `kvm` group. See [Linux kernel docs](https://docs.kernel.org/virt/kvm/api.html). ##### DMI **Desktop Management Interface**: A standard from the 1990s for describing a computer's hardware to management software. Its data model lives on in SMBIOS, which is why the firmware tables that describe a server's hardware are often called DMI tables, and Linux exposes some of their values under `/sys/class/dmi/id/`. See [Wikipedia](https://en.wikipedia.org/wiki/Desktop_Management_Interface). ##### `dmidecode` A command-line tool that reads a computer's SMBIOS tables and prints them in a human-readable form, one block per SMBIOS structure, such as the system's manufacturer and model, its processors, and its memory devices. It usually needs root privileges to read the tables. Its options select structure types, or single values such as the system's serial number. See [dmidecode](https://www.nongnu.org/dmidecode/). ##### Docker Hub Docker's public registry of container images, where projects publish their images under a name and tag, such as `ubuntu:24.04`. Docker pulls images from it by default when a name gives no other registry. See [Docker docs](https://docs.docker.com/docker-hub/). ##### DRAM **Dynamic Random-Access Memory**: The most common type of volatile computer memory, which stores each bit as a charge in a capacitor that has to be refreshed periodically. Servers use it as main memory, and many storage devices as a cache. See [Wikipedia](https://en.wikipedia.org/wiki/Dynamic_random-access_memory). #### E ##### egress The network traffic leaving a cloud vendor's network, e.g. to the internet. Vendors usually charge for it per GB beyond an included amount, while incoming (ingress) traffic is usually free, so it can make up a large part of the costs of a service that sends a lot of data. #### F ##### flash attention An exact attention algorithm for transformer models, published as FlashAttention in 2022, that computes attention in tiles held in fast on-chip GPU memory instead of writing the full attention matrix to the slower main GPU memory. It cuts memory traffic and memory use, which speeds up inference and training, especially with long inputs. LLM inference engines such as llama.cpp and vLLM offer it as an option. See [FlashAttention paper](https://arxiv.org/abs/2205.14135). ##### float16 A 16-bit floating-point format, also called half precision, defined by the IEEE 754 standard. It has a 5-bit exponent and a 10-bit mantissa, so it takes half the memory of float32 but covers a much narrower range of values, up to 65,504. Machine learning frameworks use it to save memory and speed up computation. See [Wikipedia](https://en.wikipedia.org/wiki/Half-precision_floating-point_format). ##### float32 A 32-bit floating-point format, also called single precision, defined by the IEEE 754 standard. It has a 1-bit sign, an 8-bit exponent, and a 23-bit mantissa, which gives about 7 decimal digits of precision and values up to about 3.4e38. It is the default number format of most machine learning frameworks, and formats such as float16 and bfloat16 trade some of its precision for less memory. See [Wikipedia](https://en.wikipedia.org/wiki/Single-precision_floating-point_format). ##### fps **Frames Per Second**: The number of frames, the individual images of an animation or simulation, that a program produces each second. A higher rate means smoother motion or faster processing. See [Wikipedia](https://en.wikipedia.org/wiki/Frame_rate). #### G ##### gated model A model on the Hugging Face Hub whose files can be downloaded only after a logged-in user accepts the conditions set by its authors, such as a license. Programs that download it then need an access token of an account that has accepted them. See [Hugging Face docs](https://huggingface.co/docs/hub/models-gated). ##### GCP **Google Cloud Platform**: The cloud computing platform of Google. It offers virtual machines (Compute Engine), object storage, managed databases, Kubernetes and machine learning services, among others. See [Google Cloud](https://cloud.google.com/). ##### Geekbench A cross-platform CPU and GPU compute benchmark by Primate Labs. Its CPU benchmark runs workloads modeled on real applications, such as file compression, image processing, and web browsing, first on one core and then on all cores, and reports a Single-Core and a Multi-Core score. Geekbench 6 scores are calibrated so that a baseline system scores 2500. See [Geekbench](https://www.geekbench.com/). ##### GGML **Georgi Gerganov Machine Learning**: An open-source tensor library for machine learning, written in C and C++ without external dependencies. It runs on CPUs of many architectures, with SIMD-optimized code, and on GPUs and other accelerators through backends, and it supports quantized weights of 2 to 8 bits. llama.cpp and the GGUF file format are built on it. The expansion is unofficial, as the project has not spelled out its name. See [ggml on GitHub](https://github.com/ggml-org/ggml), [Naming discussion](https://github.com/ggml-org/ggml/discussions/1373). ##### GGUF **GGML Universal File**: A binary file format for LLM weights and metadata, introduced in 2023 by the GGML (Georgi Gerganov Machine Learning) project behind llama.cpp. One file holds the model's tensors, often quantized, together with its tokenizer and settings, so a model can be loaded quickly with memory mapping and without other files. Hugging Face hosts many models in this format. Both expansions are unofficial, as the GGML project has not spelled out either name. See [GGUF specification](https://github.com/ggml-org/ggml/blob/master/docs/gguf.md), [Hugging Face docs](https://huggingface.co/docs/hub/gguf), [Naming discussion](https://github.com/ggml-org/ggml/discussions/1373). ##### GHCR **GitHub Container Registry**: GitHub's registry of container images, part of GitHub Packages, where images are published as `ghcr.io//:`. Each image gets a package page on GitHub that shows its description, a `docker pull` command, and the README of the repository it is linked to. See [GitHub docs](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry). ##### glibc **GNU C Library**: The GNU project's implementation of the C standard library, which most Linux distributions use as the interface between programs and the kernel. A program linked to it dynamically loads it from the system at run time, so it runs only where glibc is installed, in the version it was built for or a newer one. See [GNU C Library](https://www.gnu.org/software/libc/). ##### GNU **GNU's Not Unix!**: A free software project, started in 1983, that develops a Unix-like operating system and its tools, such as glibc and gzip. Most Linux distributions combine the Linux kernel with GNU tools. Its name is a recursive acronym. See [GNU Project](https://www.gnu.org/). ##### Google Brain A deep learning research team at Google, founded in 2011. It developed the TensorFlow framework and the bfloat16 number format, and its researchers co-authored the paper that introduced the Transformer architecture, the basis of today's LLMs. In 2023, Google merged it with DeepMind into Google DeepMind. See [Wikipedia](https://en.wikipedia.org/wiki/Google_Brain). ##### GPU **Graphics Processing Unit**: A processor with thousands of simple cores that run the same operation on many data elements in parallel. It was built to render graphics, and is now also used for general-purpose parallel work such as machine learning training and inference, scientific simulation, and video encoding. Cloud providers rent GPUs attached to virtual machines, with their own dedicated GPU memory. See [Wikipedia](https://en.wikipedia.org/wiki/Graphics_processing_unit). ##### GuideLLM An open-source tool of the vLLM project for evaluating LLM deployments. It sends synthetic or real requests to an inference server over an OpenAI-compatible HTTP API, at a fixed concurrency, a fixed request rate, or a sweep of rates, and measures latency and throughput, such as the time to first token and output tokens per second. It writes its results as JSON, CSV, or HTML reports. See [GuideLLM on GitHub](https://github.com/vllm-project/guidellm). ##### `gzip` A lossless file compressor of the GNU Project, first released in 1992, and its file format, specified in RFC 1952. It uses the DEFLATE algorithm, which combines LZ77 matching and Huffman coding, and is the most widely supported compression format on Unix-like systems and the web. Its levels range from 1 (fastest) to 9 (smallest output). See [GNU gzip](https://www.gnu.org/software/gzip/). #### H ##### H.264 A lossy video codec standardized in 2003, also called AVC. It is the most widely supported video format, used in Blu-ray, broadcast, streaming, and video calls. Common encoders are x264 and hardware encoders such as NVENC. See [Specification](https://www.itu.int/rec/T-REC-H.264). ##### H.265 Another name for HEVC, from the number of its standard. See [Specification](https://www.itu.int/rec/T-REC-H.265). ##### hardware virtualization extensions CPU features that let virtualization software run a guest operating system's code directly on the processor, and take over only for the operations it has to handle, such as access to devices. Intel and AMD x86 CPUs and Arm64 CPUs each have their own. A VM can run VMs of its own with them only if its host exposes them to it. See [Wikipedia](https://en.wikipedia.org/wiki/Hardware-assisted_virtualization). ##### harness The code that runs a benchmark tool. It prepares the inputs, starts the tool with fixed settings, often several times or in parallel, checks and collects the tool's output, and prints the results in one format. Its settings, not the tool's defaults, decide what the benchmark measures. See [Wikipedia](https://en.wikipedia.org/wiki/Test_harness). ##### HDD **Hard Disk Drive**: A storage device that reads and writes data with magnetic heads on spinning platters. It offers cheap capacity, but each random access waits for a head to move and a platter to turn, so it completes far fewer random operations per second than an SSD. See [Wikipedia](https://en.wikipedia.org/wiki/Hard_disk_drive). ##### Hetzner Cloud The cloud platform of Hetzner Online, a German hosting company founded in 1997. Launched in 2018, it offers VMs with shared or dedicated vCPUs on AMD64 or Arm64 CPUs, block storage, and networking, from data centers in Germany, Finland, the United States, and Singapore. See [Hetzner Cloud](https://www.hetzner.com/cloud). ##### HEVC **High Efficiency Video Coding**: A lossy video codec standardized in 2013 as the successor of H.264, also called H.265. It compresses about twice as well as H.264 at the same quality, at the cost of slower encoding, and is used for 4K video and streaming. Common encoders are x265 and NVENC. See [Specification](https://www.itu.int/rec/T-REC-H.265). ##### HTTP **Hypertext Transfer Protocol**: The request-response protocol of the web, in which a client asks a server for a resource by URL and gets back a status code, headers, and a body. HTTPS is HTTP over an encrypted connection. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP). ##### HTTPS **Hypertext Transfer Protocol Secure**: HTTP, the protocol of the web, encrypted with TLS. It protects requests and responses from eavesdropping and tampering, and its certificates let clients verify the identity of the server. See [Wikipedia](https://en.wikipedia.org/wiki/HTTPS). ##### huge pages Memory pages larger than the usual 4 KiB, such as 2 MiB or 1 GiB on x86-64. One huge page covers the address range of hundreds of regular pages, so a program that uses large buffers needs far fewer TLB entries and misses the TLB less often. On Linux, a program gets them from a pool reserved in advance, or through Transparent Huge Pages. See [Linux kernel docs](https://docs.kernel.org/admin-guide/mm/hugetlbpage.html). ##### Hugging Face A company and online platform that hosts machine learning models, datasets, and demo apps in Git-based repositories, together known as the Hugging Face Hub. Programs download a model's files over HTTPS, optionally pinned to a specific commit, and gated models need an access token. Its Python libraries, such as Transformers, load and run the models. See [Hugging Face Hub docs](https://huggingface.co/docs/hub). ##### hyperscaler One of the largest cloud vendors, operating data centers worldwide at a scale that lets them add capacity on demand, e.g. Amazon Web Services, Microsoft Azure and Google Cloud Platform. ##### hypervisor The software that runs virtual machines on a physical host and shares its CPUs, memory and devices between them, e.g. KVM, Xen, or the AWS Nitro system. Its type and settings can affect the performance of a cloud server, e.g. which CPU features the server sees. See [Wikipedia](https://en.wikipedia.org/wiki/Hypervisor). #### I ##### I/O **Input/Output**: The transfer of data between a computer and the outside world, such as reading and writing disks or sending and receiving network packets. A workload limited by its speed rather than by the CPU is called I/O-bound. See [Wikipedia](https://en.wikipedia.org/wiki/Input/output). ##### IaaS **Infrastructure as a Service**: A cloud service model that rents out compute, storage and network resources, such as virtual machines and disks, on demand. The vendor runs the hardware, and the user manages the operating system and everything above it. See [Wikipedia](https://en.wikipedia.org/wiki/Infrastructure_as_a_service). ##### ID **identifier**: A name or number that refers to exactly one item, such as a server type, a benchmark run, or a database row. ##### IETF **Internet Engineering Task Force**: The open standards organization that develops the protocols of the internet, such as TCP/IP, HTTP, and TLS. It publishes its standards as numbered RFC (Request for Comments) documents. See [IETF](https://www.ietf.org/). ##### IOPS **Input/Output Operations Per Second**: The number of read and write operations a storage device completes per second. It is the main measure of random-access performance, and depends on the block size, the queue depth and the mix of reads and writes. See [Wikipedia](https://en.wikipedia.org/wiki/IOPS). #### J ##### JDBC **Java Database Connectivity**: The standard Java API for connecting to relational databases and running SQL statements against them. Each database vendor supplies a JDBC driver, so one program can work with many databases through the same interface. See [Java tutorial](https://docs.oracle.com/javase/tutorial/jdbc/). ##### JIT **Just-in-Time Compilation**: The compilation of a program's code to machine code while the program runs, instead of before. The compiler can use what is known only at run time, such as the actual data, but the compile time adds to the run time, so it pays off mostly on long-running code. PostgreSQL, for example, compiles parts of long, CPU-bound analytical queries, such as their expressions, with LLVM. See [Wikipedia](https://en.wikipedia.org/wiki/Just-in-time_compilation), [PostgreSQL docs](https://www.postgresql.org/docs/current/jit.html). ##### `jq` A command-line JSON processor. It reads JSON, filters and transforms it with its own expression language, and prints the result, by default indented and colored for reading. See [jq](https://jqlang.org/). ##### JSON **JavaScript Object Notation**: A text format for structured data, built from objects (key-value pairs), arrays, strings, numbers, booleans, and null. Most languages and tools read and write it, which makes it a common format for API responses and benchmark output. See [JSON](https://www.json.org/). ##### JSON Lines A text format that stores one JSON value, usually an object, per line, so a file can be written and read one record at a time. It suits logs and streamed results, and line-based tools such as grep can process it. Files in this format usually end in `.jsonl`. See [JSON Lines](https://jsonlines.org/). #### K ##### key-value cache The memory in which a transformer model keeps the attention keys and values of every token processed so far, so that each new token computes them only for itself. It grows with the context length and the number of concurrent sequences, and often limits how many requests an LLM server can batch at once. Serving engines such as vLLM manage it in fixed-size blocks. See [Hugging Face docs](https://huggingface.co/docs/transformers/kv_cache). ##### KVM **Kernel-based Virtual Machine**: The virtualization module of the Linux kernel, which lets Linux run VMs with the hardware virtualization extensions of Intel, AMD, and Arm64 CPUs. A server can run VMs with it only if its CPU exposes these extensions to the operating system, which many cloud VMs do not. See [Wikipedia](https://en.wikipedia.org/wiki/Kernel-based_Virtual_Machine). #### L ##### layer cache The layers of earlier container image builds that BuildKit stores and reuses. Each Dockerfile instruction adds one layer to the image, stored under a key computed from the instruction and its inputs; when a later build reaches an instruction with the same key, it reuses the stored layer instead of running the step again. A build with `--no-cache` ignores the cache and runs every step. See [Docker docs](https://docs.docker.com/build/cache/). ##### `llama-bench` The benchmark tool of llama.cpp. It measures the speed of prompt processing and text generation in tokens per second, for given models, token counts, and settings. Each test is repeated several times, and the tool reports the average and standard deviation, as a table or in machine-readable formats such as JSON Lines. See [llama-bench README](https://github.com/ggml-org/llama.cpp/tree/master/tools/llama-bench). ##### llama.cpp An open-source C/C++ library and set of tools for LLM inference, started by Georgi Gerganov in 2023 and built on the ggml tensor library. It runs models in the GGUF format, usually quantized, on CPUs of many architectures, with code optimized for their SIMD instruction sets, and on GPUs through backends such as CUDA, Metal, and Vulkan. Its tools include a command-line client, an HTTP server, and a benchmark tool, `llama-bench`. See [llama.cpp on GitHub](https://github.com/ggml-org/llama.cpp). ##### LLM **Large Language Model**: A neural network, typically with billions of parameters, trained on large amounts of text to predict the next token. It can generate, summarize and translate text, answer questions and write code. See [Wikipedia](https://en.wikipedia.org/wiki/Large_language_model). ##### LLM inference speed How fast hardware runs an LLM, usually measured in tokens per second. It is measured separately for prompt processing, in which the model reads the input prompt, and text generation, in which it produces output tokens one at a time, because the first is usually limited by compute and the second by memory bandwidth. Benchmarks of LLM servers also measure latency, such as the time to first token, and the throughput of many concurrent requests. ##### LMbench A suite of portable micro-benchmarks for Unix-like systems, written by Larry McVoy and Carl Staelin. Its tools each measure one basic operation, such as memory bandwidth and latency, context switches, or system call overhead. See [LMbench](https://lmbench.sourceforge.net/). ##### `lsblk` A Linux command of util-linux that lists block devices, such as disks and their partitions, with attributes such as size, type, and mount point. It can print a table or JSON, with sizes in bytes or in human-readable units. See [man page](https://man7.org/linux/man-pages/man8/lsblk.8.html). ##### `lscpu` A Linux command of util-linux that reports the CPU architecture of a system, such as the CPU model, the number of sockets, cores, and threads, the cache sizes, and the NUMA nodes. It can print a table or JSON. See [man page](https://man7.org/linux/man-pages/man1/lscpu.1.html). ##### LVM **Logical Volume Manager**: The Linux tool that pools disks or partitions into volume groups and divides these into logical volumes, which can be resized while in use. It also supports snapshots, and striping or mirroring across disks. See [man page](https://man7.org/linux/man-pages/man8/lvm.8.html). ##### `lz4` A lossless compression algorithm and format by Yann Collet from the LZ77 family, built for speed rather than compression ratio. It compresses and especially decompresses much faster than gzip, at a lower ratio; its higher levels use a slower high-compression mode that keeps decompression fast. See [LZ4](https://lz4.org/). ##### `lzma` **Lempel-Ziv-Markov chain Algorithm**: A lossless compression algorithm by Igor Pavlov, used in the 7z and xz formats. It combines LZ77 matching over a large dictionary with range coding, reaching high compression ratios with slow compression and fast decompression. Its presets range from 0 to 9. See [7-Zip LZMA SDK](https://www.7-zip.org/sdk.html). #### M ##### Memory Mark The overall memory score of PassMark PerformanceTest. It combines the results of the memory tests, such as database operations, cached and uncached reads, writes, and latency, into one unitless number, where higher is better. See [PassMark Memory Benchmarks](https://www.memorybenchmark.net/). ##### `memtier_benchmark` An open-source load generator for Redis and Memcached, developed by Redis Ltd. It runs many concurrent connections over one or more threads, sends a configurable mix of SET and GET requests, and reports operations per second, latency averages, and latency percentiles per request type. See [memtier_benchmark on GitHub](https://github.com/RedisLabs/memtier_benchmark). ##### MobileNet v1 SSD A neural network for object detection in images. It combines MobileNet v1, a small convolutional network designed for mobile devices, with a Single Shot Detector, which finds and classifies all objects in one pass of the network, so it is light enough to run on phones and is often used to measure the speed of machine-learning inference. See [MobileNets paper](https://arxiv.org/abs/1704.04861), [SSD paper](https://arxiv.org/abs/1512.02325). ##### `modprobe` A Linux command that loads a module into the running kernel, or removes one, together with the modules it depends on. Loading a module needs root privileges. See [man page](https://man7.org/linux/man-pages/man8/modprobe.8.html). ##### MP3 **MPEG-1 Audio Layer III**: A lossy audio codec and file format from the 1990s, still the most widely supported format for compressed music. See [Wikipedia](https://en.wikipedia.org/wiki/MP3). ##### MP4 **MPEG-4 Part 14**: A container file format that holds video, audio, and subtitle tracks, most often H.264 or HEVC video with AAC audio. It is the common format for video on the web and on phones. See [Wikipedia](https://en.wikipedia.org/wiki/MP4_file_format). ##### MPL 2.0 **Mozilla Public License 2.0**: The open-source license of the Navigator's software components. Anyone may use, modify and distribute the code, also commercially and combined with closed-source code, but changes to the licensed files must be published under the same license. See [Spare Cores license](https://sparecores.com/legal/license-mpl), [Mozilla FAQ](https://www.mozilla.org/en-US/MPL/2.0/FAQ/). #### N ##### nested paging Hardware support for memory virtualization, in which the CPU translates a guest's virtual addresses through the guest's page tables and then through a second set of page tables kept by the hypervisor. It removes the need for the hypervisor to maintain shadow page tables, but a TLB miss then needs more memory lookups. Intel calls it Extended Page Tables and AMD Rapid Virtualization Indexing. See [Wikipedia](https://en.wikipedia.org/wiki/Second_Level_Address_Translation). ##### `netem` **Network Emulator**: A Linux traffic control queueing discipline that adds delay, jitter, packet loss, duplication or reordering to the packets leaving a network interface. It is used to test how software behaves on slow or unreliable networks. See [SRT cookbook](https://srtlab.github.io/srt-cookbook/how-to-articles/using-netem-to-emulate-networks.html). ##### `--network host` A `docker run` option that runs a container in the network of the host instead of Docker's default bridge network, so the container uses the network interfaces and IP address of the host directly. It removes the network isolation between the two, and port publishing options such as `-p` are ignored. See [Docker docs](https://docs.docker.com/engine/network/drivers/host/). ##### nginx An open-source web server, also used as a reverse proxy, load balancer, and HTTP cache. It handles many connections in a few worker processes, each running an event loop, and has many settings for workers, buffers, caching, and timeouts that are usually tuned per deployment. See [nginx docs](https://nginx.org/en/docs/). ##### `nice` A Unix command that runs a program with a changed scheduling priority, from -20 (highest) to 19 (lowest). Raising a process's priority above the default needs the `CAP_SYS_NICE` capability, which root has. See [man page](https://man7.org/linux/man-pages/man1/nice.1.html). ##### noisy neighbor A server or tenant that shares physical hardware, such as CPU cores, caches, memory bandwidth, or disks, with others and slows them down with its own load. On shared cloud hosts, it makes the performance of a server vary with the load of the other servers on the same host, which can change by time of day. See [Azure Architecture Center](https://learn.microsoft.com/en-us/azure/architecture/antipatterns/noisy-neighbor/noisy-neighbor). ##### non-temporal store A CPU instruction that writes data to memory without first loading the target cache line into the cache. It avoids one read per written cache line, which raises the write speed of buffers much larger than the caches, and is used by optimized `memcpy` and `memset` routines. See [Wikipedia](https://en.wikipedia.org/wiki/Cache_control_instruction). ##### NTP **Network Time Protocol**: A protocol that keeps computer clocks in sync with reference time servers over a network. A client adjusts its system clock in small steps or, when it is far off, in one jump, so wall-clock time on a server can move backward or skip ahead. See [NTP](https://www.ntp.org/). ##### NUMA **Non-Uniform Memory Access**: A memory design where each CPU socket or chiplet has its own local memory, which its cores reach faster than the memory of the others. Software that keeps its threads and their memory on the same NUMA node avoids the slower remote accesses. See [Linux kernel docs](https://docs.kernel.org/mm/numa.html). ##### `numactl` A Linux command that runs a program with a NUMA policy, such as binding it to the CPUs and memory of given NUMA nodes, and shows the NUMA layout of the host. See [man page](https://man7.org/linux/man-pages/man8/numactl.8.html). ##### `nvbandwidth` An open-source NVIDIA tool that measures memory copy bandwidth and latency between the CPU and NVIDIA GPUs, between GPUs, and within one GPU. It copies with the GPU's copy engines or with kernels on its streaming multiprocessors, and reports one matrix per test, with a row and a column for each CPU or GPU taking part. It prints plain text or JSON, and an optional multinode build measures GPUs across several servers. See [GitHub](https://github.com/NVIDIA/nvbandwidth). ##### NVIDIA A10G A data center GPU of NVIDIA's Ampere generation with 24 GB of GDDR6 memory and compute capability 8.6, a variant of the NVIDIA A10 made for AWS. It powers the EC2 G5 instances, which are used for machine learning inference and graphics workloads. See [AWS](https://aws.amazon.com/ec2/instance-types/g5/). ##### NVIDIA Container Toolkit A set of NVIDIA libraries and tools that lets containers use the NVIDIA GPUs of the host. It configures container runtimes such as Docker to make the GPU devices and driver libraries available inside a container. See [NVIDIA docs](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/index.html). ##### NVIDIA driver The kernel module and libraries that let the operating system and programs use NVIDIA GPUs. Each driver version supports CUDA up to a certain version. Containers use the host's driver through the NVIDIA Container Toolkit, so it is installed on the host rather than in container images. See [NVIDIA docs](https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/index.html). ##### NVIDIA L40S A data center GPU of NVIDIA's Ada Lovelace generation with 48 GB of GDDR6 memory and compute capability 8.9. It is built for AI inference and training as well as graphics and video workloads. See [NVIDIA](https://www.nvidia.com/en-us/data-center/l40s/). ##### NVIDIA T4G A data center GPU of NVIDIA's Turing generation with 16 GB of GDDR6 memory and compute capability 7.5, a variant of the NVIDIA T4 made for AWS. It powers the EC2 G5g instances, which pair it with Arm-based AWS Graviton2 CPUs. See [AWS](https://aws.amazon.com/ec2/instance-types/g5g/). ##### NVLink A high-bandwidth, point-to-point interconnect by NVIDIA that links GPUs to each other, and in some systems to the CPU, directly rather than through PCIe. Between GPUs in the same server, it gives several times the bandwidth of a PCIe link, and NVSwitch chips connect many GPUs over NVLink at once. See [NVIDIA](https://www.nvidia.com/en-us/data-center/nvlink/). ##### NVMe **Non-Volatile Memory Express**: The interface specification for accessing non-volatile storage, most often SSDs, over PCI Express. It is designed for the parallelism of flash memory, with many deep command queues, and NVMe over Fabrics extends it to network transports. See [NVM Express](https://nvmexpress.org/). #### O ##### OLTP **Online Transaction Processing**: A class of workloads made of many short, concurrent transactions that each read or update a few rows, such as orders, payments or bookings. OLTP databases are optimized for the latency and throughput of such transactions, unlike analytical databases built for large scans. See [Wikipedia](https://en.wikipedia.org/wiki/Online_transaction_processing). ##### on-demand A pricing model of cloud servers that charges for the time a server runs, without a commitment, typically per second or hour. The server runs until you stop it, unlike a spot instance, but it costs more than spot or reserved capacity. ##### OpenMP An API for shared-memory parallel programming in C, C++, and Fortran, made of compiler directives, library routines, and environment variables. A program marks loops or regions to run in parallel, and the OpenMP runtime splits them across a team of threads, which can be bound to specific CPU cores. See [OpenMP](https://www.openmp.org/). ##### OS **operating system**: The software that manages a computer's hardware and runs programs on it, such as Linux or Windows. A cloud server runs the OS of the image it was started from. ##### out-of-memory killer The Linux kernel mechanism that frees memory when the system, or a cgroup, runs out of it and cannot reclaim enough. It picks a process by a badness score, mostly based on its memory use, and kills it. Container runtimes rely on it to enforce memory limits. See [Linux kernel docs](https://docs.kernel.org/admin-guide/mm/concepts.html#oom-killer). ##### OVHcloud A French cloud provider, founded in 1999, with data centers in Europe, North America and Asia-Pacific. It offers dedicated (bare-metal) servers, public cloud instances based on OpenStack, and private cloud. See [OVHcloud](https://www.ovhcloud.com/). #### P ##### P2P **Peer-to-Peer**: A model in which devices or computers exchange data directly with each other instead of through a central server or host. In GPU computing, it means copies and memory access between two GPUs over NVLink or PCIe, without staging the data in host memory; whether two GPUs support it depends on the hardware and the driver. See [CUDA programming guide](https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#peer-to-peer-memory-access). ##### PassMark The PerformanceTest benchmark suite of PassMark Software, for Windows, Linux, macOS, and mobile devices. It runs fixed CPU, memory, disk, and graphics tests, such as math workloads involving compression, encryption, and physics simulations, and combines the results into an overall PassMark Rating. See [PerformanceTest](https://www.passmark.com/products/performancetest/). ##### PCIe **Peripheral Component Interconnect Express**: The standard high-speed serial bus that connects expansion devices, such as GPUs, NVMe SSDs, and network cards, to a computer's CPU. A link has 1 to 16 lanes, and each generation roughly doubles the bandwidth per lane. A PCIe 4.0 link with 16 lanes transfers about 32 GB/s in each direction. See [Wikipedia](https://en.wikipedia.org/wiki/PCI_Express). ##### `pgbench` The benchmark tool shipped with PostgreSQL. It runs a SQL script repeatedly over many concurrent client sessions, and reports the throughput in transactions per second and the latency. Its built-in script is modeled on TPC-B, and custom scripts can define any other workload. See [PostgreSQL docs](https://www.postgresql.org/docs/current/pgbench.html). ##### PID **Process Identifier**: The number by which the operating system identifies a running process. On Linux, a PID is assigned when a process starts and can be reused after it exits, and commands such as kill use it to target a process. See [Wikipedia](https://en.wikipedia.org/wiki/Process_identifier). ##### pointer chasing A memory access pattern in which each load fetches the address of the next one, as when following a linked list. Because the CPU cannot start a load before the previous one ends, the accesses do not overlap, and with nodes in random order hardware prefetchers cannot predict them. Benchmarks use it to measure the latency of one memory access at a given buffer size. ##### PostgreSQL An open-source object-relational database system, developed by a global community and descended from the POSTGRES project at UC Berkeley in 1986. It uses and extends SQL, with transactions, many index types, extensions, and JSON data. See [PostgreSQL docs](https://www.postgresql.org/docs/). ##### `--privileged` A `docker run` option that gives a container all Linux capabilities and access to all devices of the host, and lifts the restrictions that normally confine a container, such as the default seccomp profile. The container can then do almost everything that the host can, so use it only for workloads that need device or hardware access. See [Docker docs](https://docs.docker.com/reference/cli/docker/container/run/#privileged). ##### prompt processing The first phase of LLM inference, also called prefill, in which the model reads all tokens of the input prompt and stores their intermediate results in its key-value cache. The prompt's tokens are processed together in batches, so this phase is usually limited by compute and runs much faster per token than text generation. Its speed decides how long a long input takes before the first output token appears. ##### `psutil` A cross-platform Python library for retrieving information on running processes and system utilization, such as CPU, memory, disks, and network. It can count both logical CPUs and physical cores. See [psutil docs](https://psutil.readthedocs.io/). ##### PyPI **Python Package Index**: The official public repository of third-party Python packages, run by the Python Software Foundation. Tools such as pip download and install packages from it by default. See [PyPI](https://pypi.org/). #### Q ##### quantization Storing the weights of a neural network with fewer bits per value than its training format, such as 4 or 8 bits instead of 16, usually with a shared scale factor per block of weights. It shrinks the model's file size and memory use and speeds up inference, especially where memory bandwidth is the limit, at the cost of some accuracy. See [Hugging Face docs](https://huggingface.co/docs/optimum/concept_guides/quantization). #### R ##### RAID **Redundant Array of Independent Disks**: A way to combine several disks into one logical device, for redundancy, speed or both. Common levels are RAID 0 (striping), RAID 1 (mirroring) and RAID 5 or 6 (striping with parity); on Linux, the `md` driver implements RAID in software. See [Wikipedia](https://en.wikipedia.org/wiki/RAID). ##### RAM **Random-Access Memory**: The main memory of a computer, which holds the running programs and their data. It is much faster than disk storage, and its content is lost when the power is off. See [Wikipedia](https://en.wikipedia.org/wiki/Random-access_memory). ##### RAM user A user identity in Alibaba Cloud's Resource Access Management service, with its own credentials and permissions. Programs and people use RAM users to call the cloud's APIs instead of the main account, so each gets only the permissions it needs. See [Alibaba Cloud docs](https://www.alibabacloud.com/help/en/ram/). ##### RDBMS **Relational Database Management System**: A database system that stores data in tables of rows and columns, related through keys and queried with SQL. It keeps data consistent with constraints and transactions; PostgreSQL, MySQL and Oracle Database are examples. See [Wikipedia](https://en.wikipedia.org/wiki/Relational_database). ##### Redis An open-source, in-memory key-value data store, used as a database, cache, and message broker. It keeps its data in RAM, supports data structures such as strings, hashes, lists, and sets, and can persist data to disk with periodic snapshots or an append-only log. See [Redis docs](https://redis.io/docs/latest/). ##### region A geographic area where a cloud vendor runs its data centers, such as Frankfurt or Northern Virginia, made up of one or more availability zones. A server type is offered in some regions only, and its price can differ by region; a region's ID, such as `eu-central-1`, is unique only within its vendor. ##### reserved instance A pricing model of cloud servers that discounts the price in exchange for committing to a server type, and often a region, for one or more years, paid up front or monthly. It suits steady workloads; the Navigator lists the on-demand and spot prices, without such commitments. ##### `resource-tracker` An open-source Spare Cores tool that runs a command and samples resource usage while it runs, such as CPU, memory, disk, network, GPU, and GPU memory use. It can optionally stream the samples to the Spare Cores Sentinel platform, so that a run can be checked to see its aggregated and detailed resource utilization, e.g., whether it used all CPU or GPU cores as intended while running a Navigator benchmark workload. See [resource-tracker on GitHub](https://github.com/SpareCores/resource-tracker-rs). ##### RHEL **Red Hat Enterprise Linux**: A commercial Linux distribution of Red Hat for servers, which installs packages with `dnf` and `yum`. See [Red Hat](https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux). ##### RPS **Requests per Second**: The number of requests a server completes per second over a measurement window. It measures a server's capacity in whole requests, independent of their size, so it is compared only between runs with the same request mix. See [NVIDIA NIM docs](https://docs.nvidia.com/nim/benchmarking/llm/latest/metrics.html). ##### RTT **Round-Trip Time**: The time a network packet takes to reach its destination plus the time its response takes to get back. It sets a lower bound on the latency of every request-response exchange, and grows with the distance between the endpoints. See [Wikipedia](https://en.wikipedia.org/wiki/Round-trip_delay). ##### Rust An open-source programming language that compiles to native code, for fast and reliable software. It checks memory safety when a program is compiled, so its programs need no extra checks for it while they run. See [Rust website](https://www.rust-lang.org/). #### S ##### S3 **Simple Storage Service**: The object storage service of AWS, which stores files as objects in buckets and serves them over HTTP. Its API has become a de facto standard that many other storage services and tools support. See [Amazon S3](https://aws.amazon.com/s3/). ##### `sccache` A compiler cache that wraps C, C++, and Rust compilers and reuses the output of an earlier compilation when the same source is compiled again with the same options. It keeps its cache on a local disk or in remote storage, such as an S3 bucket, so that several build machines can share it. See [GitHub](https://github.com/mozilla/sccache). ##### SCore **Spare Cores score**: A CPU speed score of a server type in Spare Cores Navigator, used to compare the speed of server types. It is measured with the `cpu` stressor of `stress-ng` at increasing worker counts. The single-core SCore is the result with one worker; the multi-core SCore, the raw multi-core CPU speed that SCore means on its own, is the highest result. ##### SHA-256 **Secure Hash Algorithm 256**: A cryptographic hash function of the SHA-2 family that maps any data to a 256-bit digest. Even a one-bit change in the data gives a completely different digest, so it is used to verify that a downloaded file is intact, and in digital signatures and certificates. See [NIST FIPS 180-4](https://csrc.nist.gov/pubs/fips/180-4/upd1/final). ##### shared-core Describes a cloud server type whose vCPUs share physical cores with other servers, often with a guaranteed baseline of only a fraction of a core. Such server types are cheaper, but their CPU performance can vary with the load of neighboring servers or be limited by CPU credits. See [Google Cloud shared-core machine types](https://cloud.google.com/compute/docs/general-purpose-machines#sharedcore). ##### `SIGINT` The interrupt signal of POSIX systems, which a terminal sends to the running process when the user presses Ctrl+C. A process can catch it to clean up before it exits; by convention, a process that exits because of a signal returns 128 plus the signal number, 130 for SIGINT. See [signal(7) man page](https://man7.org/linux/man-pages/man7/signal.7.html). ##### `SIGTERM` The termination signal of POSIX systems, which asks a process to exit cleanly. It is the default signal of the `kill` command, and `docker stop` sends it to a container's main process first, then SIGKILL, which cannot be caught, if the process has not exited after a grace period. By convention, a process that exits because of it returns 143 (128 plus 15). See [signal(7) man page](https://man7.org/linux/man-pages/man7/signal.7.html). ##### Silesia corpus A set of 12 files, ~211 MB in total, compiled by Sebastian Deorowicz at the Silesian University of Technology to test lossless compression on a mix of data types: text, executables, databases, images, and XML. Its `dickens` file holds the collected works of Charles Dickens, ~10 MB of English text. See [Silesia corpus](https://sun.aei.polsl.pl/~sdeor/index.php?page=silesia). ##### SIMD **Single Instruction, Multiple Data**: A form of parallel processing in which one CPU instruction applies the same operation to several data elements at once. CPUs implement it with vector instruction set extensions, which x86 and Arm CPUs both provide. See [Wikipedia](https://en.wikipedia.org/wiki/Single_instruction,_multiple_data). ##### SKU **Stock Keeping Unit**: An identifier of a product a vendor sells, e.g. a server type, or a component that its price is built from, such as a vCPU or a GB of memory in a region. Cloud vendors' price lists are made of SKUs, which the Crawler combines into the price of each server type. ##### SM **Streaming Multiprocessor**: The basic processing unit of an NVIDIA GPU, which runs the threads of a kernel in groups, in parallel. Each SM has its own cores, registers, shared memory, and caches, and a GPU has from a few to more than a hundred SMs, so its compute throughput scales with their number. See [CUDA programming guide](https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#hardware-implementation). ##### SMART **Self-Monitoring, Analysis, and Reporting Technology**: A monitoring system built into HDDs and SSDs that records health and error counters, such as reallocated sectors, power-on hours or wear level. Tools such as `smartctl` read these counters to spot failing disks early. See [Wikipedia](https://en.wikipedia.org/wiki/Self-Monitoring,_Analysis_and_Reporting_Technology). ##### `smartctl` The command-line tool of the smartmontools package that reads SMART data, self-test logs and device information from ATA, SCSI and NVMe disks, and can start self-tests. See [smartmontools](https://www.smartmontools.org/). ##### SMBIOS **System Management BIOS**: A standard for the tables in which a computer's firmware describes its hardware to the operating system, such as the system's manufacturer and model, its CPUs and memory modules, and the firmware version. It grew out of DMI, and on Linux, tools such as `dmidecode` read these tables. In a VM, the virtualization platform sets the values. See [DMTF SMBIOS standard](https://www.dmtf.org/standards/smbios). ##### SMBIOS structure One record of the SMBIOS tables, describing one component or property of a computer, such as its firmware, a processor, a cache, or a memory device. Each structure starts with a header that gives its type number, its length, and its handle, a number that other structures use to refer to it. The SMBIOS specification defines the standard types and their fields, and a structure of type 127 marks the end of the table. See [DMTF SMBIOS standard](https://www.dmtf.org/standards/smbios). ##### SMT **Simultaneous Multithreading**: A CPU technique that runs two (or more) hardware threads on one physical core, sharing its execution units, e.g. Intel Hyper-Threading. It raises throughput when a thread stalls, but the threads compete for the core. Cloud vendors usually sell each thread as a vCPU. See [Wikipedia](https://en.wikipedia.org/wiki/Simultaneous_multithreading). ##### spot instance A cloud server that runs on the vendor's spare capacity, at a large discount from its on-demand price, but which the vendor can stop or take back at short notice when it needs the capacity. Spot prices change with the demand, e.g. several times a day. See [AWS docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html). ##### SQL **Structured Query Language**: The standard language to define, query and modify data in relational databases. Its declarative statements, such as SELECT, INSERT and UPDATE, describe what data to return or change, and the database plans how to do it. See [Wikipedia](https://en.wikipedia.org/wiki/SQL). ##### SSD **Solid-State Drive**: A storage device that keeps data in flash memory instead of on spinning disks, so it reads and writes much faster than an HDD, especially at random locations. A controller with its own firmware maps logical blocks to flash pages, and many SSDs write incoming data to a fast cache first, then move it to slower flash. Cloud servers use SSDs as local disks and behind network block storage. See [Wikipedia](https://en.wikipedia.org/wiki/Solid-state_drive). ##### SSL **Secure Sockets Layer**: A protocol that encrypts network connections and verifies the identity of the server, and optionally of the client, with certificates. TLS has replaced it, but SSL is still the common name for both, including in PostgreSQL's settings. See [PostgreSQL docs](https://www.postgresql.org/docs/current/ssl-tcp.html). ##### stderr The standard error stream of a process, one of the three standard streams with stdin and stdout. Programs write logs, progress, and error messages to it, so that they stay separate from the output on stdout when the output is redirected to a file or another program. See [Wikipedia](https://en.wikipedia.org/wiki/Standard_streams). ##### stdout The standard output stream of a process, one of the three standard streams with stdin and stderr. Programs write their results to it; a shell can redirect it to a file or another program, such as `> results.jsonl`, while logs on stderr still reach the terminal. See [Wikipedia](https://en.wikipedia.org/wiki/Standard_streams). ##### `stress-ng` An open-source tool that loads a computer in selectable ways, with hundreds of stress tests (stressors) that exercise the CPU, memory, file systems, and kernel interfaces. With `--metrics`, it reports each stressor's throughput in bogo ops/s. See [stress-ng on GitHub](https://github.com/ColinIanKing/stress-ng). ##### swappiness A Linux kernel setting, `vm.swappiness`, that sets how readily the kernel swaps out process memory compared with dropping cached file data when it needs free memory. Higher values swap more eagerly; 0 makes the kernel avoid swapping as long as it can. Container runtimes such as Docker can also set it per container. See [Linux kernel docs](https://docs.kernel.org/admin-guide/sysctl/vm.html#swappiness). ##### `sysctl` An interface of Unix-like systems that reads and sets kernel parameters by name. On macOS and the BSDs, it also reports hardware details, such as the CPU count and cache sizes. See [FreeBSD man page](https://man.freebsd.org/cgi/man.cgi?sysctl(8)). #### T ##### tensor parallelism A way to split a model across several devices by dividing the weight matrices of each layer among them, so that every device computes part of every layer. The devices exchange partial results within each layer, which needs fast links between them, such as NVLink. The number of devices usually has to divide dimensions of the model, such as its attention head count. See [Hugging Face docs](https://huggingface.co/docs/transformers/perf_train_gpu_many). ##### text generation The second phase of LLM inference, also called decoding, in which the model produces output tokens one at a time, each depending on the tokens before it. Every step reads all model weights and the key-value cache, so this phase is usually limited by memory bandwidth rather than compute, and runs much slower per token than prompt processing. ##### THP **Transparent Huge Pages**: A Linux kernel feature that backs a program's memory with huge pages automatically, without a reserved pool or changes to the program. Depending on the system setting, it applies to all memory or only to ranges a program marks with the `madvise` system call. See [Linux kernel docs](https://docs.kernel.org/admin-guide/mm/transhuge.html). ##### thread binding Restricting each thread of a program to chosen CPU cores by setting its CPU affinity, also called CPU pinning. It keeps a thread's data in the caches and local memory of its cores, and stops the operating system from moving it between cores during a run, which makes performance faster and more repeatable, especially on hosts with several NUMA nodes. See [Linux man page](https://man7.org/linux/man-pages/man2/sched_setaffinity.2.html). ##### TLB **Translation Lookaside Buffer**: A CPU cache of recent translations from virtual to physical memory addresses. A TLB shootdown invalidates entries on other cores after a mapping changes, which needs an interrupt to each of them. See [Wikipedia](https://en.wikipedia.org/wiki/Translation_lookaside_buffer). ##### token The unit of text that an LLM reads and writes, as defined by the model's tokenizer, such as a word, part of a word, or a punctuation mark. Prompt and output lengths are counted in tokens, and LLM inference speed is usually measured in tokens per second. ##### TPC-B **Transaction Processing Performance Council Benchmark B**: A database benchmark of short, update-heavy banking transactions, each updating an account, a teller and a branch balance and logging the change. The TPC retired it in 1995, but the default script of `pgbench` is still modeled on it. See [TPC](https://www.tpc.org/tpcb/). ##### TPU **Tensor Processing Unit**: An ASIC designed by Google to accelerate machine learning workloads, built around hardware for the matrix multiplications of neural networks. It was first deployed in Google's data centers in 2015, and is offered as a service on Google Cloud. See [Google Cloud docs](https://cloud.google.com/tpu/docs/intro-to-tpu). ##### TTFT **Time to First Token**: The time from sending a request to an LLM server until the first output token arrives. It includes queuing, prompt processing, and the generation of the first token, so it grows with the prompt length and the server's load, and it sets how long a user waits before a response starts. See [NVIDIA NIM docs](https://docs.nvidia.com/nim/benchmarking/llm/latest/metrics.html). #### U ##### URL **Uniform Resource Locator**: The address of a resource on the web or a network, such as https://sparecores.com/, made of a scheme, a host, and a path. ##### UTC **Coordinated Universal Time**: The primary time standard by which the world sets its clocks, the successor of Greenwich Mean Time. It has no time zone offset or daylight saving time, so UTC timestamps compare directly across regions. See [Wikipedia](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). ##### util-linux A standard package of Linux system utilities, maintained by the Linux kernel community and included in most distributions. Its commands cover disks and partitions, file systems, processes, and system information, such as `lsblk`, `lscpu`, and `mount`. See [util-linux on GitHub](https://github.com/util-linux/util-linux). #### V ##### vCPU **virtual CPU**: A CPU of a virtual machine, the unit in which cloud vendors sell compute. It is usually one hardware thread of a physical core with SMT, so two vCPUs may share one physical core. See [Wikipedia](https://en.wikipedia.org/wiki/Virtual_CPU). ##### vLLM **virtual Large Language Model**: An open-source inference and serving engine for LLMs, started at UC Berkeley in 2023. Its PagedAttention technique manages the key-value cache in fixed-size blocks, as an OS pages virtual memory, and it batches concurrent requests continuously, so one server can answer many requests at once. It runs on GPUs and CPUs and serves models through an OpenAI-compatible HTTP API. See [vLLM docs](https://docs.vllm.ai/), [vLLM on GitHub](https://github.com/vllm-project/vllm), [Origin of the name](https://github.com/vllm-project/vllm/issues/835). ##### `vllm serve` The vLLM command that starts an HTTP server for a model, with an API compatible with OpenAI's, such as the `/v1/completions` and `/v1/chat/completions` endpoints. It loads the model on the available devices, batches concurrent requests, and answers on a `/health` endpoint once it is ready. See [vLLM docs](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html). ##### VM **virtual machine**: A computer emulated in software on a physical host, with its own OS and a share of the host's CPUs, memory, and storage. Most cloud servers are VMs. See [Wikipedia](https://en.wikipedia.org/wiki/Virtual_machine). ##### VM exit A transition from a virtual machine's guest code to the hypervisor, triggered by an operation the hypervisor has to handle, such as some privileged instructions, I/O, or interrupts. Each exit and return costs CPU time, so workloads that cause many exits run slower in a VM. ##### VPC **Virtual Private Cloud**: An isolated virtual network within a public cloud account, with its own IP address ranges, subnets, routing and firewall rules. Resources such as virtual machines and databases are placed in it to control how they reach each other and the internet. See [Wikipedia](https://en.wikipedia.org/wiki/Virtual_private_cloud). #### W ##### WAL **Write-Ahead Logging**: A technique in which a database writes each change to a durable log before it changes the data files. After a crash, replaying the log restores a consistent state, and shipping it to other servers drives replication and point-in-time recovery. PostgreSQL, for example, calls its log the WAL, and on write-heavy workloads the speed of WAL writes often limits throughput. See [Wikipedia](https://en.wikipedia.org/wiki/Write-ahead_logging), [PostgreSQL docs](https://www.postgresql.org/docs/current/wal-intro.html). ##### `wrk` An open-source HTTP benchmarking tool written in C. It generates load from a few threads, each handling many open connections through an event loop, and reports latency and requests-per-second statistics. Lua scripts can customize the requests it sends and process the responses. See [wrk on GitHub](https://github.com/wg/wrk). #### X ##### XML **Extensible Markup Language**: A text format for structured documents and data, built from nested, named elements in angle brackets. See [W3C](https://www.w3.org/XML/). #### Y ##### YAML **YAML Ain't Markup Language**: A human-readable text format for structured data, built from indented key-value mappings and lists. It is a superset of JSON, and is widely used for configuration files and for exchanging data between programs. See [YAML specification](https://yaml.org/spec/). ##### YCSB **Yahoo! Cloud Serving Benchmark**: An open-source benchmark framework, released by Yahoo! in 2010, for key-value and NoSQL databases. It runs standard workloads that mix reads, updates, inserts and scans in different proportions, and is widely used to compare cloud data stores. See [Wikipedia](https://en.wikipedia.org/wiki/YCSB). #### Z ##### Zipfian A skewed probability distribution, named after Zipf's law, in which an item's frequency is inversely proportional to its rank, so a few items are accessed far more often than the rest. Benchmarks use it to model real-world hot spots, such as popular products or users. See [Wikipedia](https://en.wikipedia.org/wiki/Zipf%27s_law). ##### `zpaq` A lossless compressor and archive format by Matt Mahoney, based on context mixing, which predicts each bit from many models and combines their predictions. It reaches very high compression ratios, but compresses and decompresses slowly, at about the same speed in both directions. Its methods range from 1 (fastest) to 5 (smallest output). See [ZPAQ](https://mattmahoney.net/dc/zpaq.html). ##### `zram` A Linux kernel module that creates compressed block devices in memory. It is most often used as swap, so swapped-out pages are compressed in RAM instead of written to disk, trading CPU time for memory. See [Linux kernel docs](https://docs.kernel.org/admin-guide/blockdev/zram.html). ##### `zstd` **Zstandard**: A lossless compression algorithm and format by Yann Collet at Facebook, released in 2016 and specified in RFC 8878. It combines LZ77 matching with fast entropy coding, and its levels, from 1 to 22, cover a wide range of trade-offs, from faster than gzip to ratios close to lzma. Decompression stays fast at every level. See [Zstandard on GitHub](https://github.com/facebook/zstd). ### benchmark The terms of the [benchmark](https://docs.sparecores.com/images/benchmark.md) image's `references.md`, with a tooltip on its pages and on the pages of the images that link to that file. Its own [glossary](https://docs.sparecores.com/images/benchmark/glossary.md) lists all acronyms and terms its pages use. ##### Geekbench Browser The online database of Geekbench results run by Primate Labs. The free version of Geekbench uploads every result there, where it is public; the paid Pro version can also keep results offline. See [Geekbench Browser](https://browser.geekbench.com/). ##### `openssl speed` The OpenSSL command that measures the throughput of cryptographic algorithms, such as hashes and ciphers. It runs each algorithm for a fixed time on each of several block sizes and reports the bytes processed per second. With `-multi`, it runs several processes in parallel and reports their total. See [`openssl speed` manual](https://docs.openssl.org/3.4/man1/openssl-speed/). ### benchmark-ffmpeg The terms of the [benchmark-ffmpeg](https://docs.sparecores.com/images/benchmark-ffmpeg.md) image's `references.md`, with a tooltip on its pages and on the pages of the images that link to that file. Its own [glossary](https://docs.sparecores.com/images/benchmark-ffmpeg/glossary.md) lists all acronyms and terms its pages use. ##### AV1 **AOMedia Video 1**: A royalty-free video codec by the Alliance for Open Media, the successor of VP9. It compresses better than H.264 and HEVC at the same quality, at the cost of slower encoding. Common encoders are libaom, SVT-AV1 and rav1e. See [Specification](https://aomedia.org/specifications/av1/). ##### CQ **Constant Quality**: The quality-based rate control of NVIDIA's NVENC hardware encoder, which varies the bitrate to keep a target quality level. Lower values mean higher quality and larger files, as with CRF in software encoders. See [NVENC rate control](https://docs.nvidia.com/video-technologies/video-codec-sdk/13.0/nvenc-video-encoder-api-prog-guide/index.html#rate-control). ##### CRF **Constant Rate Factor**: The quality-based rate control of the x264 and x265 encoders, which varies the bitrate to keep the perceived quality constant across scenes. Lower values mean higher quality and larger files; x264's default is 23 on a scale of 0 to 51. See [FFmpeg wiki](https://trac.ffmpeg.org/wiki/Encode/H.264#crf). ##### FFmpeg A free, open-source collection of libraries and command-line tools to decode, encode, transcode, filter and stream audio and video. Its `ffmpeg` command converts between nearly all media formats, and its libraries, such as libavcodec, power many media players and services. See [`ffmpeg` docs](https://ffmpeg.org/ffmpeg.html). ##### FLAC **Free Lossless Audio Codec**: A lossless audio codec by the Xiph.Org Foundation. It compresses audio without discarding any information, so decoding restores the original samples bit for bit. See [FLAC](https://xiph.org/flac/). ##### null muxer An FFmpeg output format, selected with `-f null`, that discards everything it receives instead of writing a file. It is used to measure decoding, filtering or encoding speed, or to run analysis filters, without the cost of writing to disk. See [FFmpeg formats](https://ffmpeg.org/ffmpeg-formats.html#null). ##### NVDEC **NVIDIA Video Decoder**: The hardware video decoder of NVIDIA GPUs, a dedicated unit next to the CUDA cores. It decodes codecs such as H.264, HEVC, VP9 and, on newer GPUs, AV1, leaving the CPU and the CUDA cores free. See [NVIDIA GPUs in FFmpeg](https://docs.nvidia.com/video-technologies/video-codec-sdk/13.0/ffmpeg-with-nvidia-gpu/index.html). ##### NVENC **NVIDIA Video Encoder**: The hardware video encoder of NVIDIA GPUs, a dedicated unit next to the CUDA cores. It encodes H.264, HEVC and, on newer GPUs, AV1, much faster than software encoders, though usually at a somewhat lower quality for the same bitrate. FFmpeg exposes it as encoders such as `h264_nvenc`. See [NVIDIA GPUs in FFmpeg](https://docs.nvidia.com/video-technologies/video-codec-sdk/13.0/ffmpeg-with-nvidia-gpu/index.html). ##### Opus **audio codec**: A royalty-free, lossy audio codec standardized by the IETF in 2012. It covers speech and music from low to high bitrates with low delay, which makes it common in voice and video calls and web streaming. See [Opus](https://opus-codec.org/). ##### PSNR **Peak Signal-to-Noise Ratio**: A quality metric that compares a processed image or video to its source by the mean squared error of their pixels, in decibels. Higher values mean a closer match. It is simple and widely used, but follows perceived quality only loosely. See [FFmpeg filter](https://ffmpeg.org/ffmpeg-filters.html#psnr). ##### SSIM **Structural Similarity Index Measure**: A quality metric that compares a processed image or video to its source by local patterns of luminance, contrast and structure. A score of 1 means identical, and the score follows perceived quality more closely than PSNR. See [FFmpeg filter](https://ffmpeg.org/ffmpeg-filters.html#ssim). ##### Tears of Steel A 2012 science-fiction short film by the Blender Foundation, made with open-source tools and released under CC BY 3.0. Its high-resolution footage is freely available, which makes it common test material for video codecs. See [Project page](https://mango.blender.org/). ##### VMAF **Video Multimethod Assessment Fusion**: A perceptual video quality metric by Netflix that combines several elementary metrics with a machine learning model trained on human ratings. It scores from 0 to 100, and is widely used to tune and compare video encoders. See [GitHub](https://github.com/Netflix/vmaf). ##### Vorbis A royalty-free, lossy audio codec by the Xiph.Org Foundation, usually stored in Ogg files. It was designed as a free alternative to MP3 and AAC, and is used in games and streaming; Opus has largely replaced it for new uses. See [Vorbis](https://xiph.org/vorbis/). ### benchmark-llm The terms of the [benchmark-llm](https://docs.sparecores.com/images/benchmark-llm.md) image's `references.md`, with a tooltip on its pages and on the pages of the images that link to that file. Its own [glossary](https://docs.sparecores.com/images/benchmark-llm/glossary.md) lists all acronyms and terms its pages use. ##### `-b` The llama.cpp option that sets the logical batch size: the maximum number of prompt tokens passed to the model in one call. Each logical batch is split into physical batches of the size set by `-ub`, so a larger logical batch can process long prompts in fewer calls, at the cost of more memory. See [llama-bench README](https://github.com/ggml-org/llama.cpp/tree/master/tools/llama-bench). ##### `-ngl` The llama.cpp option that sets how many layers of a model are offloaded to the GPUs. The remaining layers run on the CPU, so a model that does not fit in GPU memory can still use the GPU in part, and a value higher than the model's number of layers, such as 999, offloads all of them. See [llama-bench README](https://github.com/ggml-org/llama.cpp/tree/master/tools/llama-bench). ##### `Q4_K_M` A llama.cpp quantization type of the k-quant family. It stores most weights with about 4 bits each, in blocks that share scale factors, and keeps some tensors at higher precision. The M (medium) variant is a common compromise between file size and output quality. See [Hugging Face GGUF docs](https://huggingface.co/docs/hub/gguf). ##### `-sm` The llama.cpp option that sets the split mode: how a model is distributed across several GPUs. The `layer` mode assigns whole layers to each GPU, `row` splits the weight tensors of each layer across the GPUs, and `none` uses a single GPU. See [llama-bench README](https://github.com/ggml-org/llama.cpp/tree/master/tools/llama-bench). ##### `-ub` The llama.cpp option that sets the physical batch size: the number of tokens computed at once within a logical batch (`-b`). It trades memory use against the speed of prompt processing. See [llama-bench README](https://github.com/ggml-org/llama.cpp/tree/master/tools/llama-bench). ### benchmark-passmark The terms of the [benchmark-passmark](https://docs.sparecores.com/images/benchmark-passmark.md) image's `references.md`, with a tooltip on its pages and on the pages of the images that link to that file. Its own [glossary](https://docs.sparecores.com/images/benchmark-passmark/glossary.md) lists all acronyms and terms its pages use. ##### Kops/s **Thousand Operations/s**: The throughput unit of the PassMark database operations test: thousands of operations per second, where higher is better. ##### Kstrings/s **Thousand Strings/s**: The throughput unit of the PassMark string sorting test: thousands of strings sorted per second, where higher is better. ##### Mmat/s **Million Matrices/s**: The throughput unit of the PassMark extended instructions test: millions of matrices processed per second, where higher is better. ##### Mnums/s **Million Primes/s**: The throughput unit of the PassMark prime numbers test: millions of primes per second, where higher is better. ##### Mops/s **Million Operations/s**: The throughput unit of the PassMark integer math, floating-point math, and single-threaded tests: millions of operations per second, where higher is better. ##### `pt_linux` **PerformanceTest for Linux**: The command-line edition of PassMark PerformanceTest for Linux on x86-64 and Arm64 processors. It runs the CPU and memory tests of PerformanceTest in a terminal interface, can run them unattended, and saves the results to a YAML file. See [PerformanceTest Linux](https://www.passmark.com/products/pt_linux/). ### benchmark-pgbench-postgres The terms of the [benchmark-pgbench-postgres](https://docs.sparecores.com/images/benchmark-pgbench-postgres.md) image's `references.md`, with a tooltip on its pages and on the pages of the images that link to that file. Its own [glossary](https://docs.sparecores.com/images/benchmark-pgbench-postgres/glossary.md) lists all acronyms and terms its pages use. ##### BenchBase A framework that benchmarks SQL databases, the successor to OLTPBench. It runs workloads such as YCSB (Yahoo! Cloud Serving Benchmark) and a Wikipedia workload against any relational database with a JDBC (Java Database Connectivity) driver, and collects per-transaction-type latency and throughput logs. See [GitHub](https://github.com/cmu-db/benchbase). ##### BRIN **Block Range Index**: A PostgreSQL index type that stores only a summary, such as the minimum and maximum value, of each range of consecutive table blocks. It is tiny compared to a B-tree, and works well on large tables whose values follow their physical order, such as timestamps of appended rows. See [PostgreSQL docs](https://www.postgresql.org/docs/current/brin.html). ##### concurrency points The client counts at which a database benchmark measures throughput and latency, each with that number of connections open for a fixed time. Measuring several concurrency points, from one client up to a count derived from the server's size, shows how throughput and latency change with load. ##### GIN **Generalized Inverted Index**: A PostgreSQL index type that maps each element of a composite value, such as an array item, a key of a JSON document, or a word of a text, to the rows that contain it. It speeds up containment and full-text searches, at the cost of slower writes than a B-tree. See [PostgreSQL docs](https://www.postgresql.org/docs/current/gin.html). ##### GUC **Grand Unified Configuration**: The configuration system of PostgreSQL, and by extension its individual settings, such as `shared_buffers` or `work_mem`. A setting can be set in `postgresql.conf`, on the command line, per database or role, or per session with `SET`. See [PostgreSQL docs](https://www.postgresql.org/docs/current/config-setting.html). ##### HammerDB An open-source database benchmark engine. It runs standardized workloads, such as TPROC-C, with the same test definitions on SQL Server, Db2, Oracle, PostgreSQL, MariaDB, and MySQL, so that results are comparable across database systems. Runs can be scripted and repeated automatically. See [HammerDB](https://www.hammerdb.com/). ##### Parallel Query A PostgreSQL feature that splits one query across several worker processes, for example to scan, join or aggregate a large table on several CPU cores at once. The `max_parallel_workers_per_gather` setting limits how many workers one part of a query can use. See [PostgreSQL docs](https://www.postgresql.org/docs/current/parallel-query.html). ##### `pgtune` A web tool that suggests PostgreSQL settings, such as `shared_buffers` and `work_mem`, from the memory, CPU count, storage type and workload of a server. Its suggestions are a starting point for tuning rather than an optimum. See [pgtune](https://pgtune.leopard.in.ua/). ##### PL/pgSQL **PostgreSQL Procedural Language**: The built-in procedural language of PostgreSQL, which adds variables, loops, conditionals and error handling to SQL. It is used to write functions, procedures and triggers that run inside the database server. See [PostgreSQL docs](https://www.postgresql.org/docs/current/plpgsql.html). ##### `sysbench` A scriptable, multi-threaded benchmark tool built on LuaJIT. Its tests cover CPU, memory, file I/O, threads, and mutexes, and its Lua scripts run transactional database workloads against MySQL and PostgreSQL. It reports rates and latency percentiles. See [GitHub](https://github.com/akopytov/sysbench). ##### TOAST **The Oversized-Attribute Storage Technique**: The mechanism with which PostgreSQL stores values too large for a regular 8 kB page, by compressing them, moving them out of line into a separate table, or both. It applies automatically to large values, such as long texts or JSON documents. See [PostgreSQL docs](https://www.postgresql.org/docs/current/storage-toast.html). ##### TPM **Transactions Per Minute**: A throughput measure of transaction processing systems: the number of transactions they complete per minute. TPC-C reports a variant of it, tpmC, which counts only new-order transactions, while tools such as `pgbench` report transactions per second (TPS), which is 1/60 of TPM. See [Wikipedia](https://en.wikipedia.org/wiki/Transactions_per_second). ##### TPROC-C **HammerDB's transaction processing workload**: The OLTP workload of the HammerDB benchmark tool, derived from the TPC-C specification of an order-entry system with warehouses, orders and payments. It is not an official TPC-C implementation, so its results are not comparable with published TPC-C results. See [HammerDB docs](https://www.hammerdb.com/docs/). ### benchmark-redis The terms of the [benchmark-redis](https://docs.sparecores.com/images/benchmark-redis.md) image's `references.md`, with a tooltip on its pages and on the pages of the images that link to that file. Its own [glossary](https://docs.sparecores.com/images/benchmark-redis/glossary.md) lists all acronyms and terms its pages use. ##### Redis pipelining A technique in which a client sends several Redis commands without waiting for the reply to each one, then reads all replies together. It reduces the number of network round trips and system calls per command, which raises throughput, while each command waits longer for its reply. See [Redis docs](https://redis.io/docs/latest/develop/use/pipelining/). ##### Redis SET command The Redis command that stores a string value under a key, replacing any existing value. Options can set an expiry time, or store the value only if the key does or does not exist yet. See [Redis docs](https://redis.io/docs/latest/commands/set/). ### benchmark-storage The terms of the [benchmark-storage](https://docs.sparecores.com/images/benchmark-storage.md) image's `references.md`, with a tooltip on its pages and on the pages of the images that link to that file. Its own [glossary](https://docs.sparecores.com/images/benchmark-storage/glossary.md) lists all acronyms and terms its pages use. ##### `fio` The Flexible I/O Tester, an open-source storage benchmark and I/O workload generator. Each job describes an access pattern, such as random or sequential reads and writes, the block size, the queue depth, and the I/O engine, and `fio` reports the resulting IOPS, bandwidth, and latency. See [fio docs](https://fio.readthedocs.io/en/latest/). ##### FTL **Flash Translation Layer**: The firmware layer of an SSD controller that maps the logical blocks the host sees to physical flash pages. Because flash has to be erased in large blocks before it is rewritten, the FTL writes new data to free pages, and runs garbage collection and wear leveling in the background. [Wikipedia](https://en.wikipedia.org/wiki/Flash_memory_controller#Flash_translation_layer_(FTL)_and_mapping). ##### garbage collection The background work in which an SSD frees flash for new writes. Flash can only be erased in large blocks, so the drive copies the still-valid pages out of a block, then erases the whole block. It runs when spare area runs low, and it slows the writes that arrive meanwhile, which is why an SSD's sustained write speed is lower than its burst speed. Programming languages use the same term for reclaiming unused memory. See [Wikipedia](https://en.wikipedia.org/wiki/Garbage_collection_%28SSD%29). ##### SLC **Single-Level Cell**: Flash memory that stores one bit per cell, which makes it faster and more durable than flash storing more bits per cell, such as TLC or QLC. Many SSDs run part of their flash in SLC mode as a write cache, and write more slowly once a long write fills it. See [Wikipedia](https://en.wikipedia.org/wiki/Multi-level_cell). ### dmidecode The terms of the [dmidecode](https://docs.sparecores.com/images/dmidecode.md) image's `references.md`, with a tooltip on its pages and on the pages of the images that link to that file. Its own [glossary](https://docs.sparecores.com/images/dmidecode/glossary.md) lists all acronyms and terms its pages use. ##### DMI type The number that the SMBIOS (System Management BIOS) specification assigns to identify a structure's kind, such as 0 for the firmware information, 4 for a processor, or 17 for a memory device. The `dmidecode` command prints the type in each structure's header line. The command's `--type` (`-t`) option takes these numbers, or keywords such as `memory` or `processor` that stand for one or more types, to print only the matching structures. See [Ubuntu man page](https://manpages.ubuntu.com/manpages/noble/man8/dmidecode.8.html). ### hwinfo The terms of the [hwinfo](https://docs.sparecores.com/images/hwinfo.md) image's `references.md`, with a tooltip on its pages and on the pages of the images that link to that file. Its own [glossary](https://docs.sparecores.com/images/hwinfo/glossary.md) lists all acronyms and terms its pages use. ##### hwloc **Portable Hardware Locality**: An open-source library with command-line tools that detects a machine's hardware topology, including processor packages (sockets), NUMA (Non-Uniform Memory Access) nodes, caches, cores, and hardware threads, as well as attached devices. Parallel programs use it to place their threads and memory close to each other. See [hwloc](https://www.open-mpi.org/projects/hwloc/). ##### LIKWID **Like I Knew What I'm Doing**: A set of command-line tools for performance-oriented programmers on Linux, developed at the Erlangen National High Performance Computing Center. Its tools show the topology of a machine, pin threads to cores, read hardware performance counters, and run micro-benchmarks. See [LIKWID on GitHub](https://github.com/RRZE-HPC/likwid). ##### `lshw` **Hardware Lister**: A Linux command that reports the hardware configuration of a machine, such as its CPUs, memory, firmware, buses, disks, and network adapters, as a tree of nodes. It reads sources such as `/proc`, `/sys`, and the DMI (Desktop Management Interface) tables, and prints text, XML, or JSON. It reports more details when run as root than when run as a normal user. See [Ubuntu man page](https://manpages.ubuntu.com/manpages/noble/man1/lshw.1.html). ##### `lstopo` The hwloc command that shows the topology of a machine, as a drawing or as text. It can also export the topology to a file, such as an XML file that other hwloc programs can load or a vector image. See [Ubuntu man page](https://manpages.ubuntu.com/manpages/noble/man1/lstopo.1.html). ### llama.cpp The terms of the [llama.cpp](https://docs.sparecores.com/images/llama.cpp.md) image's `references.md`, with a tooltip on its pages and on the pages of the images that link to that file. Its own [glossary](https://docs.sparecores.com/images/llama.cpp/glossary.md) lists all acronyms and terms its pages use. ##### `llama-server` The HTTP server of llama.cpp. It loads a model in the GGUF format and serves it over an HTTP API, with endpoints for text completion, chat, and embeddings. It also provides a `/health` endpoint that reports whether the server is ready and a web interface. By default, it listens on port 8080 of `127.0.0.1`. Most of its command-line options can also be set as environment variables named `LLAMA_ARG_