Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 6 min read Case study mediumAdept

How ClickHouse Cloud uses AWS Graviton to boost performance and efficiency

ClickHouse Cloud moved about 83% of its AWS fleet from x86 instances (M5/R5) to Graviton ARM instances, building on AArch64 support work that began in 2016 and grew to cover Neon optimizations, JIT and profiling. Because compute and storage are separated, no data had to move. The main engineering work was replacing Intel-only codecs (deflate_qpl, zstd_qat) and making autoscaling work with mixed m7gd/m6gd instance types. That meant matching memory allocations, routing pods under 236Gi to ARM via a webhook, and overprovisioning to handle "architecture jumps." Benchmarks showed about 25% overall query improvement, only 10% on a network-bound S3 workload, and up to 64% for Graviton4 (r8g) versus Intel on ClickBench.

Related posts

  • ClickHouse Cloud on Google Cloud Now Powered by Google Axion Processors: 30–55% Faster Queries, ~15% Fewer Compute Credits

    ClickHouse easyNovice

    ClickHouse Cloud is migrating its Google Cloud fleet from x86 N2D instances to Arm-based Axion C4A instances, yielding 30–55% faster queries across all 43 ClickBench queries, roughly halved load times, and first place on the combined ClickBench ranking. Across a controlled cohort of 38 production services, compute credits per query fell about 15%, with larger gains for CPU-bound workloads and smaller ones where GCS read throughput dominates. The rollout went from staging to region-by-region migration, gated on SharedCatalog storage, maintenance windows and traffic tier, with the highest-traffic organizations moved last. Contributing factors cited include steadier clock frequency under sustained load and one physical core per vCPU instead of two hyperthreads.

  • When to choose x86-64 vs aarch64

    PlanetScale mediumAdept

    Choosing between aarch64 and x86-64 for a Postgres cluster matters because vCPUs differ: x86 cloud vCPUs are usually hyperthreads sharing a core, while Graviton and Axion vCPUs are full cores. ARM suits many concurrent small queries plus autovacuum and parallel workers, while x86 wins on single-threaded CPU-bound queries through higher clock speeds and wider AVX2/AVX-512 vectors, which TIN bitmap intersection and pgvector distance code exploit. Architecture can't be switched via physical replication because on-disk files aren't portable (e.g. pg_trgm index ordering differs due to signed vs unsigned char defaults), so migrating requires logical replication to a new cluster. ARM is the recommended default for price/performance; benchmark both at expected concurrency when it matters.

  • Running ClickHouse on NVIDIA Vera CPU: Is your favorite database up to the challenge?

    ClickHouse mediumAdept

    ClickHouse, run unmodified on NVIDIA's early-access Vera CPU (2×88 Arm Olympus cores, 352 SMT threads, ~1.2 TB/s memory bandwidth), topped the ClickBench hardware leaderboard. Micro-benchmarks on a 1 TB in-memory table show near-linear scaling for CPU-bound filters, low-cardinality aggregation and parallel hash joins up to the 176 physical cores, with efficiency dropping beyond that as SMT threads give only modest gains. A simple LIKE filter becomes memory-bound at ~64 threads (~813–900 GB/s). Disabling auto-vectorization on a comparison loop made a single-threaded filter 3.5x slower, showing the value of NEON SIMD, with SVE2 support in progress.

  • Announcing On-Demand Compute: Instant compute for your most intensive workloads

    ClickHouse easyNovice

    ClickHouse Cloud On-Demand Compute, now in private preview, lets a query run on a shared pool of ClickHouse workers outside the service's own cluster by setting make_distributed_plan and distributed_plan_workers_num. It uses a new multistage distributed execution framework and a cost-based optimizer. Workers are leased for at least 60 seconds and reused by later queries without cold start, and concurrent queries share workers so the pool grows to the largest single request. On TPC-H SF10, it beat a 5-node autoscaling cluster on complex queries and matched it at 25 concurrent queries using 50% less compute, though short simple reads still favor the stateful cluster.

  • Optimizing ClickHouse for Intel's ultra-high core count processors

    ClickHouse hardMaster

    Intel engineers profiled all 43 ClickBench queries on 160–480 vCPU Xeon systems and landed a series of ClickHouse optimizations targeting lock contention, memory management and other scaling bottlenecks. Examples include double-checked locking with shared locks in the query condition cache (spinlock time cut from 76% to 1%, Q10/Q11 up ~85–89%), thread-local profiler timers, and raising jemalloc's lg_extent_max_active_fit to 8 to match two-level hash table reuse (Q35 up 96%, page faults down 71%). Individual fixes gave up to 10x on single queries and 2–10% geomean gains each, all merged upstream.

The quest for software engineering knowledge.

Look:
Layout: