LAVIK 0.2.0 · 2026-10-21

Lavik vs Redis & Valkey for High Throughput

Compare Lavik 0.2.0 SPDK on NVMe SSD with Redis 8.10.2 and Valkey 9.1.2 on DRAM at 10M keys using a 16-vCPU VM, plus a separate billion-key Lavik capacity sweep.

Azure L16aos_v4 · 16 logical CPUs / 8 physical cores · six NVMe SSDs · 1 KiB values · pipeline 1 · 160–1280 connections

1,156,95610M-key GET QPS · p99.9 7.103 ms
945,38410M-key SET QPS · p99.9 10.175 ms
1,129,5971B-key GET QPS · 1,280 connections

Lavik reaches 1,156,956 peak GET QPS and 945,384 peak SET QPS at 10M keys. The separate 1B-key sweep reaches 1,129,597 GET QPS and 910,356 SET QPS.

Test conditions and interpretation

The 10M group uses 16 client threads and 30-second windows; 1B uses 32 threads and 60 seconds. Each curve uses one fixed worker/I/O-thread setting. Redis/Valkey disable AOF and scheduled snapshots. Latency is paired with throughput at the same point; peak SET does not imply the lowest latency.

From setup to results: reproduction roadmap

  1. Prepare the two benchmark VMs, the standard Lavik 0.2.0 package, pinned Redis/Valkey releases, and memtier 2.5.1.
  2. Verify six empty scratch NVMe devices, bind them for SPDK, and reserve 8 GiB hugepages. Independently load the 10M and 1B Lavik datasets; keep defrag enabled.
  3. Build the memory peers with jemalloc 5.3.0. Save one baseline RDB per product, then test 1/2/4/8/16 I/O threads with AOF and scheduled snapshots off.
  4. Run the supplied 160–1280 connection sweeps with the correct dataset-specific duration, seed and warmup policy. Check counts, value lengths, misses and errors.

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.

At the same 1,280 connections

10 million keys × 1 KiB. Peak throughput and same-point p99.9 from the raw memtier results. Redis uses 16 I/O threads; Valkey uses 16 for GET and 8 for SET. QPS is rounded to whole operations.

QPS · higher is better

Lavik 0.2.0 SPDK
1,156,956
Redis 8.10.2
976,087
Valkey 9.1.2
913,756
All results · 1,280 connections
SystemGET QPSGET p99.9 (ms)SET QPSSET p99.9 (ms)
Lavik 0.2.0 SPDK1,156,9567.103945,38410.175
Redis 8.10.2976,0877.039863,8607.391
Valkey 9.1.2913,7567.743793,8097.743

Compare Lavik 0.2.0 SPDK on NVMe SSD with Redis 8.10.2 and Valkey 9.1.2 on DRAM at 10M keys using a 16-vCPU VM, plus a separate billion-key Lavik capacity sweep.

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

Server vCPUsDatasetsClient threads / CPUsTotal connectionsSeconds / pointPoints
16Lavik / Redis / Valkey 10M16 / 0–15160 / 320 / 640 / 12803088
16Lavik 1B32 / 0–31160 / 320 / 640 / 1280608

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

16 vCPUs: 10M and 1B keys

Lavik 10M / 1B and Redis / Valkey 10M use the same 160/320/640/1280 total connection counts. The 10M tests use 16 client threads and 30-second windows; 1B uses 32 client threads and 60-second windows. The eight 1B points are also used in the storage-peer report.

The 10M results retain saved measurements with the original 80-connection points excluded. Peaks and fixed I/O-thread selections are recomputed over retained points. Each command/product curve uses one fixed configuration throughout.

16 vCPU GET / SET throughput and p99.9Open full-size chart ↗

CommandProduct / keysWorkers / I/O threadsClient threadsPeak connectionsPeak ops/sp99.9 ms
GETLavik 0.2.0 / 10M161612801,156,9567.103
GETLavik 0.2.0 / 1B163212801,129,5974.015
GETRedis 8.10.216161280976,0877.039
GETValkey 9.1.216161280913,7567.743
SETLavik 0.2.0 / 10M16161280945,38410.175
SETLavik 0.2.0 / 1B16321280910,3564.319
SETRedis 8.10.216161280863,8607.391
SETValkey 9.1.28161280793,8097.743

Matched-concurrency comparison

ops/s / p99.9 ms:

CommandConnectionsLavik 0.2.0 / 10MLavik 0.2.0 / 1BRedis 8.10.2Valkey 9.1.2
GET160377,857 / 0.855375,966 / 0.823408,159 / 0.871459,449 / 0.895
GET320612,513 / 1.431652,881 / 0.943603,866 / 1.399640,091 / 1.431
GET640876,217 / 3.983985,019 / 1.751800,217 / 3.711791,161 / 3.887
GET12801,156,956 / 7.1031,129,597 / 4.015976,087 / 7.039913,756 / 7.743
SET160431,054 / 1.255409,886 / 0.783384,939 / 0.903453,171 / 0.847
SET320637,287 / 1.375701,241 / 0.959579,902 / 1.423638,517 / 1.383
SET640834,508 / 3.871861,911 / 1.727732,342 / 3.423749,664 / 3.759
SET1280945,384 / 10.175910,356 / 4.319863,860 / 7.391793,809 / 7.743

Redis / Valkey I/O-thread sweep (10M)

All tested configurationsOpen full-size chart ↗

ProductI/O threadsGET peak ops/s (connections)SET peak ops/s (connections)
Redis 8.10.21154,244 (320)142,910 (320)
Redis 8.10.22158,908 (320)147,806 (320)
Redis 8.10.24437,073 (1280)398,372 (1280)
Redis 8.10.28838,330 (1280)822,820 (1280)
Redis 8.10.216976,087 (1280)863,860 (1280)
Valkey 9.1.21152,804 (320)143,996 (320)
Valkey 9.1.22159,958 (640)148,287 (640)
Valkey 9.1.24436,332 (640)395,389 (1280)
Valkey 9.1.28846,926 (1280)793,809 (1280)
Valkey 9.1.216913,756 (1280)773,060 (1280)

1B latency details

CommandConnectionsClient threadsOps/sp50 msp99 msp99.9 msp99.99 ms
GET16032375,9660.4230.7430.8230.927
GET32032652,8810.4950.8150.9431.471
GET64032985,0190.6311.2471.7513.743
GET1280321,129,5971.0952.1594.0158.575
SET16032409,8860.3910.6870.7831.055
SET32032701,2410.4470.8150.9591.519
SET64032861,9110.7351.2711.7273.839
SET128032910,3561.3912.2394.3198.575

Memory and client diagnostics

ProductMax average client CPU / coresMax thread average / coresMax server steal / %INFO used_memory / MiBProcess RSS / MiB
Lavik 0.2.0 / 10M15.0660.9480.0000716.6–716.61,486.1–1,499.8
Redis 8.10.213.1870.8400.000012,677.9–12,681.312,797.9–12,877.8
Valkey 9.1.212.5150.8010.000012,654.7–12,655.812,773.3–13,065.9

Some points approach the client CPU budget; observed peaks do not establish a server-capacity ceiling.

Environment and test method

16 vCPUs: 10M

Versions and hardware

ItemConfiguration
ServerStandard_L16aos_v4; 16 vCPU (8 physical cores) / 128 GiB nominal RAM; AMD EPYC 9V74 80-Core Processor
ClientStandard_F32als_v6; separate VM; CPUs 0–15
RegionJapan East, zone 2
OSUbuntu 24.04; Linux 6.17.0-1022-azure on both hosts
Storage6 × 1,919,850,381,312-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 10M keys for each product.
  • memtier 2.5.1 on 16 pinned client CPUs, pipeline 1, uniform random GET or overwriting SET. Retained connections: 160, 320, 640, 1280. One 30-second run per point, keeping the original default 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 16 workers and dedicated NVMe via SPDK. Overrides: --tomb-raider-interval-ms=0, --spdk-max-completions-per-poll=16, and 8 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, 4, 8, 16. 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.

16 vCPUs: 1B

ItemConfiguration
ServerStandard_L16aos_v4; Japan East zone 2; AMD EPYC 9V74; 8 physical cores / 16 vCPUs; 128 GiB nominal RAM
ClientStandard_F32als_v6; 32 physical CPUs; memtier 2.5.1; 32 threads pinned to CPUs 0–31
OSUbuntu 24.04; Linux 6.17.0-1022-azure on both VMs
Storage6 × 1,919,850,381,312-byte dedicated NVMe; SPDK/VFIO; 8 GiB EAL/hugepage reservation
NetworkPrivate VNet; kernel TCP; accelerated networking
LavikOfficial standard x86_64 v0.2.0; 2908f86f2770e9c6e8acc6585b3bedb4b44d1cd5
  • Decimal keys 1..1,000,000,000, no prefix or TTL, 1,024-byte values: 953.67 GiB logical value payload, excluding keys, index and storage overhead.
  • Fresh sequential fill: exactly 1B SETs, 32 threads and 640 total connections. Formal sweeps use independent client seeds, uniform random GET or overwriting SET, pipeline 1, and 60 seconds per point. GET precedes SET; concurrency increases within each sweep. No additional GET warmup.
  • Lavik uses 16 server workers, SPDK, shutdown checkpointing, tomb-raider interval 0 and SPDK completion cap 16. Other tested defaults are inherited. Defrag stays enabled and is checked around every measured point. Exact DBSIZE and five value lengths are verified before and after the sweep.
  • Each cell has one run; no confidence intervals. Throughput and percentiles come from the complete measurement window. These eight points are reused in the storage-peer report, not counted as independent repeats.
  • The historical report used 16 client threads and included 80 connections. This run uses 32 threads and omits that point. Region also changed from Japan West to Japan East.

Load invocation wall time: 21.6 minutes; reported fill throughput: 940,654 ops/s. Across formal points, maximum average client CPU use is 17.971 cores, maximum individual thread average is 0.579 cores, and maximum server steal in enclosing sampled windows is 0.0000%.

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 16vcpu-10m, 16vcpu-1b evidence namespace(s). The archive includes a per-file SHA-256 manifest; CSV suite and source fields identify each measurement.

Reproduction commands

16 vCPU / 10M

These Bash commands use the measured settings; adapt paths, addresses and PCI identities to the deployment. Run one database and one load generator at a time. Use a separate result directory for each configuration.

Lavik SPDK

Follow the SPDK storage guide to verify six dedicated scratch NVMe devices and prepare VFIO and 8 GiB hugepages. Load the 10M dataset on empty media; do not overwrite system disks or existing application data. After a clean Lavik stop, restore kernel drivers and hugepage reservations before testing the memory databases. The 10M launch command is:

Bash
sudo prlimit --memlock=unlimited:unlimited --nofile=65535:65535 env 'BYCORF_EAL_ARGS=-a 7133:00:00.0 -a 10fc:00:00.0 -a 9c4a:00:00.0 -a ef09:00:00.0 -a fa44:00:00.0 -a 9816:00:00.0' BYCORF_DPDK_MEMORY_MB=8192 taskset \
  -c 0-15 /opt/bench020/downloads/lavik-v0.2.0-linux-x86_64/lavik \
  --storage=spdk \
  --bind=10.96.1.4 \
  --tomb-raider-interval-ms=0 \
  --spdk-max-completions-per-poll=16 \
  --log-dir=/opt/bench020/results/large/memory/lavik-10m/logs \
  --data-file=spdk://7133:00:00.0/1 \
  --data-file=spdk://10fc:00:00.0/1 \
  --data-file=spdk://9c4a:00:00.0/1 \
  --data-file=spdk://ef09:00:00.0/1 \
  --data-file=spdk://fa44:00:00.0/1 \
  --data-file=spdk://9816:00:00.0/1

Wait for startup and background initialization, then check that CONFIG GET defrag-paused returns no; repeat this check before and after each measured point.

Redis / Valkey

Build with jemalloc 5.3.0 using make -j12 BUILD_TLS=no. Redis 8.10.2 uses commit 498ecd0d6d007db11ddb3aea9428552598a78622; Valkey 9.1.2 uses 7f1dffedff6de73058b2c2a389422b6ecd56c8fb. Use 16 I/O threads for the initial fill.

Bash
# On the server; start one product/configuration at a time.
PRODUCT=redis # redis or valkey
IO_THREADS=16 # tested: 1, 2, 4, 8, 16
IO_ARGS=(); if ((IO_THREADS > 1)); then IO_ARGS=(--io-threads "$IO_THREADS"); fi
DATA_DIR=/opt/bench020/results/large/data/$PRODUCT
mkdir -p "$DATA_DIR"
ulimit -n 65535
taskset -c 0-15 "/opt/bench020/bin/$PRODUCT-server" \
  --bind 10.96.1.4 --protected-mode no \
  --dir "$DATA_DIR" --save "" \
    "${IO_ARGS[@]}"

Load, warmup and connection sweep

Bash
# On the client: memtier_benchmark 2.5.1.
KEYS=10000000
SECONDS_PER_POINT=30
SEED=()
mkdir -p results
ulimit -n 65535
COMMON=(--server=10.96.1.4
  --threads=16 --key-minimum=1 --key-maximum="$KEYS"
  --key-prefix= --data-size=1024 --hide-histogram
  --print-percentiles=50,99,99.9,99.99 --show-config)

# Once per fresh dataset; each key is written once across 640 clients.
taskset -c 0-15 memtier_benchmark "${COMMON[@]}" --clients=40 \
  --json-out-file=results/fill.json --requests="$((KEYS / 640))" \
  --ratio=1:0 --key-pattern=P:P
redis-cli -h 10.96.1.4 --raw DBSIZE
redis-cli -h 10.96.1.4 STRLEN 1

For Redis/Valkey, run the baseline commands below after the initial fill. Restart in turn with 1, 2, 4, 8 and 16 I/O threads; wait for RDB loading and DBSIZE=10000000, verify persistence settings, then run the warmup and measurement block. End each configuration with SHUTDOWN NOSAVE so the same dump.rdb remains unchanged. Do not refill or run SAVE during measurement. Skip these RDB baseline commands for Lavik.

Bash
redis-cli -h 10.96.1.4 SAVE
redis-cli -h 10.96.1.4 SHUTDOWN NOSAVE
# On the server, record/check the unchanged RDB baseline hash:
sha256sum "$DATA_DIR/dump.rdb"
# After each restart, run these checks from the client:
redis-cli -h 10.96.1.4 CONFIG GET save
redis-cli -h 10.96.1.4 CONFIG GET appendonly
redis-cli -h 10.96.1.4 INFO persistence
Bash
# Run once for Lavik 10M and once per Redis/Valkey I/O-thread configuration.
if [ "$KEYS" -eq 10000000 ]; then
  taskset -c 0-15 memtier_benchmark "${COMMON[@]}" --clients=40 \
    --json-out-file=results/warmup.json --test-time=10 \
    --command='GET __key__' --command-is-read
fi
for OP in GET SET; do
  COMMAND=(--command='GET __key__' --command-is-read)
  if [ "$OP" = SET ]; then
    COMMAND=(--command='SET __key__ __data__' )
  fi
  for CONNECTIONS in 160 320 640 1280; do
    taskset -c 0-15 memtier_benchmark "${COMMON[@]}" \
      --clients="$((CONNECTIONS / 16))" \
      --json-out-file="results/$OP-c$CONNECTIONS.json" \
      --test-time="$SECONDS_PER_POINT" "${COMMAND[@]}" "${SEED[@]}" \
      > "results/$OP-c$CONNECTIONS.txt" 2>&1
  done
done
redis-cli -h 10.96.1.4 --raw DBSIZE

16 vCPU / 1B

Use the SPDK operations guide to verify six dedicated test devices and prepare VFIO with 8 GiB hugepages. Load only empty test media; wait for PING and check defrag-paused is no. Stop cleanly after measurement, then restore kernel drivers and hugepage reservations using the guide.

Bash
sudo prlimit --memlock=unlimited:unlimited --nofile=65535:65535 env \
  BYCORF_EAL_ARGS='-a 7133:00:00.0 -a 10fc:00:00.0 -a 9c4a:00:00.0 -a ef09:00:00.0 -a fa44:00:00.0 -a 9816:00:00.0' \
  BYCORF_DPDK_MEMORY_MB=8192 \
  taskset -c 0-15 /opt/bench020/downloads/lavik-v0.2.0-linux-x86_64/lavik \
  --storage=spdk --bind=10.96.1.4 --shutdown-checkpoint \
  --tomb-raider-interval-ms=0 --spdk-max-completions-per-poll=16 \
  --log-dir=/opt/bench020/results/large/storage/lavik-1b/logs \
  --data-file=spdk://7133:00:00.0/1 \
  --data-file=spdk://10fc:00:00.0/1 \
  --data-file=spdk://9c4a:00:00.0/1 \
  --data-file=spdk://ef09:00:00.0/1 \
  --data-file=spdk://fa44:00:00.0/1 \
  --data-file=spdk://9816:00:00.0/1

Run on the separate client:

Bash
SERVER=10.96.1.4
mkdir -p results
ulimit -n 65535
COMMON=(--server="$SERVER" --threads=32 --key-minimum=1
  --key-maximum=1000000000 --key-prefix= --data-size=1024
  --hide-histogram --print-percentiles=50,99,99.9,99.99 --show-config)
# 32 threads × 20 connections × 1,562,500 requests = 1,000,000,000 SETs.
taskset -c 0-31 memtier_benchmark "${COMMON[@]}" --clients=20 \
  --requests=1562500 --ratio=1:0 --key-pattern=P:P --json-out-file=results/fill.json
redis-cli -h "$SERVER" --raw DBSIZE
for key in 1 2 500000000 999999999 1000000000; do
  test "$(redis-cli -h "$SERVER" --raw STRLEN "$key")" = 1024
done
# No additional GET warmup for Lavik 1B.
for op in GET SET; do
  COMMAND=(--command='GET __key__' --command-is-read)
  if [[ "$op" == SET ]]; then COMMAND=(--command='SET __key__ __data__'); fi
  for connections in 160 320 640 1280; do
    redis-cli -h "$SERVER" CONFIG GET defrag-paused
    taskset -c 0-31 memtier_benchmark "${COMMON[@]}" \
      --clients="$((connections / 32))" --test-time=60 --distinct-client-seed \
      "${COMMAND[@]}" --json-out-file="results/$op-c$connections.json" \
      > "results/$op-c$connections.txt" 2>&1
    redis-cli -h "$SERVER" CONFIG GET defrag-paused
  done
done
redis-cli -h "$SERVER" --raw DBSIZE