LAVIK 0.2.0 · 2026-10-21

Lavik vs Redis & Valkey on Compact Instances

Compare Lavik, Redis 8.10.2 and Valkey 9.1.2 at 1M keys on a 2-vCPU, 16 GiB VM, then explore Lavik’s NVMe SSD capacity at 100M keys on the same instance.

Azure L2aos_v5 · 2 vCPUs / 1 physical core · 16 GiB nominal RAM · 1 KiB values · SPDK · pipeline 1 · 30 s per point

95.37 GiBValue payload on a 16 GiB VM
215,644100M-key peak GET ops/s
231,361100M-key peak SET ops/s

At 100M keys, Lavik reaches 215,644 peak GET ops/s and 231,361 peak SET ops/s, retaining 100.0% and 96.6% of its 1M-key peaks. The 95.37 GiB logical value payload is about six times nominal RAM.

Test conditions and interpretation

Valkey leads the 1M-key GET peak at 245,955 ops/s. Lavik leads the 1M-key SET peak at 239,405 ops/s. Peaks occur at different connection counts; compare paired p99.9 and matched-concurrency rows. Redis and Valkey use 1M keys only.

From setup to results: reproduction roadmap

  1. Provision the 2-vCPU server and a separate 16-core client. Install the pinned releases and memtier 2.5.1; record the original host settings.
  2. Prepare one verified empty NVMe namespace for SPDK and reserve 2 GiB hugepages. Load the 1M and 100M Lavik datasets independently.
  3. Run Redis and Valkey one at a time with 1 and 2 I/O threads, resetting from each product’s saved baseline RDB.
  4. Check exact counts and sampled lengths, warm up for 10 seconds, then measure GET and SET at 16–1280 connections. Verify zero misses/errors and restore host/device settings.

The full report below includes release versions, host conditions, server configurations, loading, warmup, measurement and validation commands. Paths, addresses and PCI identities describe the measured environment; adapt them before use. Format or clear only verified empty, dedicated test devices.

Compare Lavik, Redis 8.10.2 and Valkey 9.1.2 at 1M keys on a 2-vCPU, 16 GiB VM, then explore Lavik’s NVMe SSD capacity at 100M keys on the same instance.

This 2-vCPU view contains 84 formal points, with 1 KiB values, measured on 2026-10-21 (UTC).

Server vCPUsDatasetsClient threads / CPUsTotal connectionsSeconds / pointPoints
2Lavik 1M / 100M; Redis / Valkey 1M16 / 0–1516 / 32 / 80 / 160 / 320 / 640 / 12803084

All measured points · Provenance · Validation · Raw logs and receipts

2 vCPUs: 1M and 100M keys

At 100M keys, peak GET / SET throughput is 215,644 / 231,361 ops/s, retaining 100.0% / 96.6% of the smaller dataset’s peaks. Peaks may occur at different connection counts; matched-concurrency results follow below. In the 1M baseline, the highest GET peak is Valkey 9.1.2 (245,955 ops/s), while the highest SET peak is Lavik 0.2.0 / 1M (239,405 ops/s).

Throughput and p99.9 latency

GET and SET throughput and p99.9 latencyOpen full-size chart ↗

CommandProduct / keysWorkers / I/O threadsConnectionsPeak ops/sp99.9 ms
GETLavik 0.2.0 / 1M280215,6400.687
GETLavik 0.2.0 / 100M2640215,6445.535
GETRedis 8.10.22160209,9581.311
GETValkey 9.1.2232245,9550.223
SETLavik 0.2.0 / 1M2320239,4052.527
SETLavik 0.2.0 / 100M2320231,3612.943
SETRedis 8.10.2280188,3710.679
SETValkey 9.1.2280214,1170.511

For each command, each peer uses the single I/O-thread setting with its highest peak for the entire throughput and latency curve; settings are not spliced point by point. Main plots show 16–640 connections; the tables and all-configuration chart retain 1280.

Matched-concurrency comparison

Cells show ops/s / p99.9 ms.

CommandConnectionsLavik 0.2.0 / 1MLavik 0.2.0 / 100MRedis 8.10.2Valkey 9.1.2
GET16105,536 / 0.343105,464 / 0.223124,422 / 0.167172,900 / 0.167
GET32198,832 / 0.335197,851 / 0.271184,549 / 0.271245,955 / 0.223
GET80215,640 / 0.687215,643 / 0.639205,073 / 0.567225,845 / 0.543
GET160214,971 / 3.583215,639 / 1.111209,958 / 1.311240,260 / 1.007
GET320215,632 / 2.303215,644 / 2.159208,124 / 2.831230,637 / 6.367
GET640215,452 / 7.583215,644 / 5.535206,284 / 6.559225,932 / 6.399
GET1280215,620 / 12.479215,439 / 12.927204,466 / 14.207227,679 / 13.503
SET16148,361 / 0.271157,101 / 0.183139,237 / 0.247169,978 / 0.167
SET32204,416 / 0.303208,295 / 0.303182,105 / 0.271199,425 / 0.247
SET80229,009 / 0.639220,759 / 0.655188,371 / 0.679214,117 / 0.511
SET160237,336 / 1.543225,243 / 2.255184,826 / 1.791202,535 / 2.607
SET320239,405 / 2.527231,361 / 2.943178,853 / 3.887194,044 / 2.959
SET640234,839 / 8.255227,927 / 5.567178,734 / 7.935193,103 / 7.103
SET1280231,271 / 13.503220,561 / 13.439175,050 / 17.023193,829 / 13.951

Complete I/O-thread sweep

ProductI/O threadsGET peak ops/s (connections)SET peak ops/s (connections)
Redis 8.10.21189,749 (160)180,645 (320)
Redis 8.10.22209,958 (160)188,371 (80)
Valkey 9.1.21183,408 (32)180,624 (160)
Valkey 9.1.22245,955 (32)214,117 (80)

All measured configurationsOpen full-size chart ↗

Memory and client diagnostics

Product / keysINFO used_memory (MiB)Process RSS (MiB)
Lavik 0.2.0 / 1M96.0–96.0739.2–748.6
Lavik 0.2.0 / 100M5,069.4–5,069.45,513.4–5,521.7
Redis 8.10.21,264.7–1,265.01,287.9–1,978.4
Valkey 9.1.21,268.1–1,268.61,290.6–2,223.3

Ranges use post-point snapshots. INFO memory follows each product’s accounting; RSS is OS-reported resident process memory. Lavik also reserves 2,048 MiB of hugepages. Maximum average client CPU usage is 3.718 cores; the largest individual client thread average is 0.249 cores; maximum server CPU steal in enclosing sampled windows is 0.0000%.

Environment and test method

2 vCPUs

Versions and hardware

ItemConfiguration
ServerStandard_L2aos_v5; 2 vCPU (1 physical core) / 16 GiB nominal RAM; AMD EPYC 9V45 96-Core Processor
ClientStandard_F16as_v7; separate VM; CPUs 0–15
RegionEast US, zone 3
OSUbuntu 24.04; Linux 6.17.0-1022-azure on both hosts
Storage1 × 1,439,887,785,984-byte dedicated local NVMe; SPDK/VFIO
NetworkKernel TCP; same VNet and availability zone; accelerated networking
LavikOfficial standard x86_64 v0.2.0 package; 2908f86f2770e9c6e8acc6585b3bedb4b44d1cd5

Test method

  • Fresh decimal keys 1..N, no prefix, 1,024-byte values, no TTL. Independently load Lavik 1M and 100M; Redis and Valkey each use 1M.
  • memtier 2.5.1 on 16 pinned client CPUs, pipeline 1, uniform random GET or overwriting SET. Connections: 16, 32, 80, 160, 320, 640, 1280. One run per point, 30 seconds for the baseline and 100M-key group. Every timed run uses independent client seeds.
  • Ten-second GET warmup per configuration. GET precedes SET and concurrency increases within each sweep. Products run sequentially on the same server; builds finish before measurement.
  • Lavik uses 2 workers and dedicated NVMe via SPDK. Overrides: --tomb-raider-interval-ms=0, --spdk-max-completions-per-poll=16, and 2 GiB EAL/hugepage memory. Defrag remains enabled and is checked around every point.
  • Redis 8.10.2 and Valkey 9.1.2 use the same releases as the v0.1.0 report, default optimized builds with jemalloc, and I/O threads 1, 2. save "" disables scheduled snapshots; AOF remains disabled. A manual SAVE after initial fill provides the unchanged RDB baseline for each I/O setting; measured writes are memory-only.
  • THP is never, overcommit is 1, no added cgroup memory cap. Exact DBSIZE and five value lengths are verified before/after configurations. Fill operation counts, zero GET misses, connection errors, versions and CPU affinity are checked.

Evidence and measurement limits

Complete point data · Version, hardware and validation provenance

Each point has one measured run; no confidence interval is claimed. Successful responses do not imply equal synchronous durability guarantees. New hosts can differ from the historical run in physical placement, network latency and timing. Raw logs and receipts are stored in eloqdata/lavik-agent with a per-file SHA-256 manifest.

This view uses the 2vcpu evidence namespace(s). The archive includes a per-file SHA-256 manifest; CSV suite and source fields identify each measurement.

Reproduction commands

2 vCPU

Use the L2aos_v5 server and an F16as_v7 client in the same availability zone over the private network. Prepare the standard x86_64 Lavik v0.2.0 binary, Redis 8.10.2, Valkey 9.1.2 and memtier 2.5.1. Redis and Valkey use default optimized builds with jemalloc 5.3.0 and make -j12 BUILD_TLS=yes. The commands below use Bash.

Start the servers

Bash
# Run on the server; replace the address and binary paths for your hosts.
SERVER_IP=10.96.0.4
LAVIK_BIN=/opt/bench020/downloads/lavik-v0.2.0-linux-x86_64/lavik
REDIS_BIN=/opt/bench020/bin/redis-server
VALKEY_BIN=/opt/bench020/bin/valkey-server
ulimit -n 65535
sudo sysctl -w vm.overcommit_memory=1
printf 'never\n' | sudo tee /sys/kernel/mm/transparent_hugepage/enabled

Lavik uses an empty, dedicated NVMe namespace. Identify and bind the test device to VFIO using the SPDK storage guide, with HUGEMEM=2048 and BYCORF_DPDK_MEMORY_MB=2048. This VM did not expose an IOMMU and used the guide's dedicated-test-host no-IOMMU configuration. Load 1M and 100M keys separately. Between them, stop Lavik cleanly, restore the NVMe driver, clear the verified scratch namespace, and rebind it before the independent load.

Bash
# Use the verified PCI address and namespace ID of your empty test NVMe.
NVME_BDF=YOUR_NVME_PCI_ADDRESS
NVME_NSID=1
sudo prlimit --memlock=unlimited:unlimited --nofile=65535:65535 \
  env BYCORF_EAL_ARGS="-a ${NVME_BDF}" BYCORF_DPDK_MEMORY_MB=2048 \
  taskset -c 0-1 "$LAVIK_BIN" \
  --storage=spdk --bind="$SERVER_IP" \
  --tomb-raider-interval-ms=0 --spdk-max-completions-per-poll=16 \
  --log-dir="$PWD/lavik-logs" \
  --data-file="spdk://${NVME_BDF}/${NVME_NSID}"

The command omits v0.2.0 defaults; under taskset -c 0-1, Lavik automatically starts two pinned workers. BYCORF_DPDK_MEMORY_MB=2048 sets the EAL memory used by SPDK to 2 GiB; networking remains the default kernel TCP. The retained tuning options disable the default daily tombstone sweep and raise the SPDK completion cap from 8 to 16.

Test Redis and Valkey with one and two I/O threads, running only one server at a time:

Bash
# Run one product/configuration at a time. Repeat with IO_THREADS=2.
IO_THREADS=1
IO_ARGS=(); if ((IO_THREADS > 1)); then IO_ARGS=(--io-threads "$IO_THREADS"); fi
mkdir -p "$PWD/bench-data/redis" "$PWD/bench-data/valkey"

# Redis 8.10.2
taskset -c 0-1 "$REDIS_BIN" \
  --bind "$SERVER_IP" --protected-mode no \
  --dir "$PWD/bench-data/redis" \
  --save "" \
  "${IO_ARGS[@]}"

# Valkey 9.1.2 (after stopping Redis)
taskset -c 0-1 "$VALKEY_BIN" \
  --bind "$SERVER_IP" --protected-mode no \
  --dir "$PWD/bench-data/valkey" \
  --save "" \
  "${IO_ARGS[@]}"

Load data and run memtier

Run Lavik 1M, Lavik 100M, Redis IO=1/2 and Valkey IO=1/2 in that order. Set N and RUN for each configuration. Confirm DBSIZE=0 before each product's first fill. For Redis and Valkey, issue one SAVE after the initial fill and exit with SHUTDOWN NOSAVE. Start each I/O configuration from the same baseline RDB. Skip the fill on restart, validate the data, and repeat warmup and measurement. Both Lavik datasets start with an empty scratch namespace.

Bash
# Bash, on the separate client, CPUs 0–15; memtier_benchmark 2.5.1.
set -euo pipefail
SERVER_IP=10.96.0.4
N=1000000 # Use 100000000 for the large Lavik dataset.
RUN=lavik-1m # lavik-100m, redis-io1, redis-io2, valkey-io1, valkey-io2
mkdir -p "$RUN"
ulimit -n 65535
COMMON=(--server="$SERVER_IP" \
  --threads=16 --key-minimum=1 --key-maximum="$N" \
  --key-prefix= --data-size=1024 --hide-histogram \
  --print-percentiles=50,99,99.9,99.99 --show-config)

# Fill an empty dataset using disjoint sequential key streams: exactly N writes.
taskset -c 0-15 memtier_benchmark "${COMMON[@]}" --clients=10 \
  --requests="$((N / 160))" --ratio=1:0 --key-pattern=P:P \
  --json-out-file="$RUN/fill.json" > "$RUN/fill.txt" 2>&1

check_data() {
  test "$(redis-cli -h "$SERVER_IP" --raw DBSIZE)" = "$N"
  for key in 1 2 "$((N / 2))" "$((N - 1))" "$N"; do
    test "$(redis-cli -h "$SERVER_IP" --raw STRLEN "$key")" = 1024
  done
}
check_data

# For each memory peer only: create its baseline RDB once after the first fill.
# redis-cli -h "$SERVER_IP" SAVE

# Warmup, then GET and SET sweeps. Reuse this part after loading a baseline RDB.
taskset -c 0-15 memtier_benchmark "${COMMON[@]}" --clients=10 \
  --distinct-client-seed --test-time=10 \
  --command='GET __key__' --command-is-read \
  --json-out-file="$RUN/warmup.json" > "$RUN/warmup.txt" 2>&1

for kind in GET SET; do
  if [ "$kind" = GET ]; then
    COMMAND='GET __key__'; READ_FLAG=(--command-is-read)
  else
    COMMAND='SET __key__ __data__'; READ_FLAG=()
  fi
  for connections in 16 32 80 160 320 640 1280; do
    taskset -c 0-15 memtier_benchmark "${COMMON[@]}" \
      --clients="$((connections / 16))" --distinct-client-seed --test-time=30 \
      --command="$COMMAND" "${READ_FLAG[@]}" \
      --json-out-file="$RUN/${kind}-c${connections}.json" \
      > "$RUN/${kind}-c${connections}.txt" 2>&1
  done
done
check_data

After each configuration, check that all GETs hit, connection errors are zero, and DBSIZE is unchanged.