perf: measure reconciliation cost and finalize lab 4 report
This commit is contained in:
@@ -0,0 +1,715 @@
|
||||
{
|
||||
"kind": "reconcile",
|
||||
"label": "baseline",
|
||||
"started": "2026-10-27T20:07:26Z",
|
||||
"profile": {
|
||||
"name": "reconcile",
|
||||
"stages": [
|
||||
[
|
||||
"a",
|
||||
1000,
|
||||
1048576,
|
||||
true,
|
||||
[
|
||||
"batch",
|
||||
"deep",
|
||||
"deep-fast"
|
||||
],
|
||||
0
|
||||
],
|
||||
[
|
||||
"b",
|
||||
10000,
|
||||
4096,
|
||||
true,
|
||||
[
|
||||
"batch",
|
||||
"head",
|
||||
"deep"
|
||||
],
|
||||
0
|
||||
],
|
||||
[
|
||||
"c",
|
||||
30000,
|
||||
4096,
|
||||
false,
|
||||
[
|
||||
"batch",
|
||||
"head"
|
||||
],
|
||||
0
|
||||
],
|
||||
[
|
||||
"d",
|
||||
100000,
|
||||
4096,
|
||||
false,
|
||||
[
|
||||
"batch",
|
||||
"load-stand",
|
||||
"load-unlimited",
|
||||
"load-fast",
|
||||
"load-fast-limited"
|
||||
],
|
||||
0
|
||||
],
|
||||
[
|
||||
"e",
|
||||
10000,
|
||||
4096,
|
||||
true,
|
||||
[
|
||||
"batch",
|
||||
"refuse"
|
||||
],
|
||||
1000
|
||||
]
|
||||
],
|
||||
"repeats": 3,
|
||||
"refuse_max_changes": 100,
|
||||
"seed": 20261023,
|
||||
"grace_s": 30,
|
||||
"cleaner_cpus": 0.25,
|
||||
"cleaner_memory": "256m",
|
||||
"fast_cpus": 1.0,
|
||||
"fill_cpus": 1.0,
|
||||
"fill_memory": "512m",
|
||||
"fill_processes": 3,
|
||||
"fill_threads": 16,
|
||||
"sample_interval_s": 0.5,
|
||||
"users": 4,
|
||||
"load_download_rate": 200.0,
|
||||
"load_write_rate": 50.0,
|
||||
"load_read_rate": 50.0,
|
||||
"load_downloads": 2000,
|
||||
"load_procs": 2,
|
||||
"quiet_s": 20.0,
|
||||
"pass_budget_s": 600.0,
|
||||
"session_ttl": 21600
|
||||
},
|
||||
"host": {
|
||||
"platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
|
||||
"machine": "arm64",
|
||||
"cpu_model": "Apple M4",
|
||||
"cpu_count": 10,
|
||||
"ram_gb": 16.0,
|
||||
"swap_used_mib": 1207.44,
|
||||
"power": "AC Power",
|
||||
"memory_pressure": null,
|
||||
"memory_free_percent": 46,
|
||||
"swapouts": 526434,
|
||||
"loadavg_1m": 2.93
|
||||
},
|
||||
"docker": {
|
||||
"ServerVersion": "28.0.4",
|
||||
"OperatingSystem": "Docker Desktop",
|
||||
"KernelVersion": "6.10.14-linuxkit",
|
||||
"Architecture": "aarch64",
|
||||
"NCPU": 10,
|
||||
"MemTotal": 8218034176,
|
||||
"CgroupVersion": "2",
|
||||
"CgroupDriver": "cgroupfs",
|
||||
"compose_version": "2.34.0-desktop.1",
|
||||
"other_running_containers": []
|
||||
},
|
||||
"budget": {
|
||||
"limits_cpus": 9.75,
|
||||
"limits_memory_gib": 4.88,
|
||||
"vm_cpus": 10,
|
||||
"vm_memory_gib": 7.65
|
||||
},
|
||||
"host_warnings": [],
|
||||
"image": {
|
||||
"tag": "mtusi-messenger-vladimirceva:bench-baseline",
|
||||
"id": "sha256:b36997b53c0bc88cacfb933827deb6dd3f7881391c26d87e9ee4c67ec3e6a876",
|
||||
"created": "2026-10-27T19:15:22.818592346Z",
|
||||
"src_sha256": "bc10d566e2f63173541445a2f6273b967447e13e5dd7f1fb76900934e5692cbe",
|
||||
"versions": {
|
||||
"python": "3.13.15",
|
||||
"fastapi": "0.142.1",
|
||||
"starlette": "1.7.0",
|
||||
"uvicorn": "0.54.0",
|
||||
"pydantic": "2.13.5",
|
||||
"sqlalchemy": "2.1.1",
|
||||
"asyncpg": "0.31.0",
|
||||
"alembic": "1.20.0",
|
||||
"redis": "8.1.0",
|
||||
"argon2-cffi": "25.1.0",
|
||||
"aiobotocore": "3.10.0",
|
||||
"botocore": "1.43.117",
|
||||
"aiohttp": "3.14.5"
|
||||
},
|
||||
"app_defaults": {
|
||||
"pool_size": 10,
|
||||
"pool_overflow": 5,
|
||||
"pool_timeout": 5.0,
|
||||
"operation_timeout": 6.0,
|
||||
"statement_timeout_ms": 5000,
|
||||
"kdf_concurrency": 4,
|
||||
"keep_alive": 60,
|
||||
"shutdown_timeout": 5,
|
||||
"s3_timeout": 5.0,
|
||||
"s3_max_connections": 10,
|
||||
"uploads": {
|
||||
"max_concurrent": 4,
|
||||
"max_waiting": 16,
|
||||
"wait_timeout": 5.0,
|
||||
"body_timeout": 30.0
|
||||
},
|
||||
"cleaner": {
|
||||
"interval": 60.0,
|
||||
"grace": 900,
|
||||
"batch": 100,
|
||||
"reconcile_interval": 3600,
|
||||
"reconcile_page": 1000,
|
||||
"reconcile_max_changes": 100,
|
||||
"reconcile_rate": 2000.0
|
||||
},
|
||||
"malloc_mmap_threshold": "131072"
|
||||
}
|
||||
},
|
||||
"code": {
|
||||
"src_sha256": "bc10d566e2f63173541445a2f6273b967447e13e5dd7f1fb76900934e5692cbe",
|
||||
"git_commit": "e4cc7ee32fbf0abaf8e15c42370ed1c6c01e4002",
|
||||
"git_dirty": true
|
||||
},
|
||||
"reconcile": {
|
||||
"plan": [
|
||||
{
|
||||
"pass": "a-deep-r1",
|
||||
"stage": "a",
|
||||
"cell": "deep",
|
||||
"repeat": 1,
|
||||
"order": 1
|
||||
},
|
||||
{
|
||||
"pass": "a-batch-r1",
|
||||
"stage": "a",
|
||||
"cell": "batch",
|
||||
"repeat": 1,
|
||||
"order": 2
|
||||
},
|
||||
{
|
||||
"pass": "a-deep-fast-r1",
|
||||
"stage": "a",
|
||||
"cell": "deep-fast",
|
||||
"repeat": 1,
|
||||
"order": 3
|
||||
},
|
||||
{
|
||||
"pass": "a-batch-r2",
|
||||
"stage": "a",
|
||||
"cell": "batch",
|
||||
"repeat": 2,
|
||||
"order": 4
|
||||
},
|
||||
{
|
||||
"pass": "a-deep-fast-r2",
|
||||
"stage": "a",
|
||||
"cell": "deep-fast",
|
||||
"repeat": 2,
|
||||
"order": 5
|
||||
},
|
||||
{
|
||||
"pass": "a-deep-r2",
|
||||
"stage": "a",
|
||||
"cell": "deep",
|
||||
"repeat": 2,
|
||||
"order": 6
|
||||
},
|
||||
{
|
||||
"pass": "a-deep-fast-r3",
|
||||
"stage": "a",
|
||||
"cell": "deep-fast",
|
||||
"repeat": 3,
|
||||
"order": 7
|
||||
},
|
||||
{
|
||||
"pass": "a-deep-r3",
|
||||
"stage": "a",
|
||||
"cell": "deep",
|
||||
"repeat": 3,
|
||||
"order": 8
|
||||
},
|
||||
{
|
||||
"pass": "a-batch-r3",
|
||||
"stage": "a",
|
||||
"cell": "batch",
|
||||
"repeat": 3,
|
||||
"order": 9
|
||||
},
|
||||
{
|
||||
"pass": "b-head-r1",
|
||||
"stage": "b",
|
||||
"cell": "head",
|
||||
"repeat": 1,
|
||||
"order": 10
|
||||
},
|
||||
{
|
||||
"pass": "b-deep-r1",
|
||||
"stage": "b",
|
||||
"cell": "deep",
|
||||
"repeat": 1,
|
||||
"order": 11
|
||||
},
|
||||
{
|
||||
"pass": "b-batch-r1",
|
||||
"stage": "b",
|
||||
"cell": "batch",
|
||||
"repeat": 1,
|
||||
"order": 12
|
||||
},
|
||||
{
|
||||
"pass": "b-deep-r2",
|
||||
"stage": "b",
|
||||
"cell": "deep",
|
||||
"repeat": 2,
|
||||
"order": 13
|
||||
},
|
||||
{
|
||||
"pass": "b-head-r2",
|
||||
"stage": "b",
|
||||
"cell": "head",
|
||||
"repeat": 2,
|
||||
"order": 14
|
||||
},
|
||||
{
|
||||
"pass": "b-batch-r2",
|
||||
"stage": "b",
|
||||
"cell": "batch",
|
||||
"repeat": 2,
|
||||
"order": 15
|
||||
},
|
||||
{
|
||||
"pass": "b-deep-r3",
|
||||
"stage": "b",
|
||||
"cell": "deep",
|
||||
"repeat": 3,
|
||||
"order": 16
|
||||
},
|
||||
{
|
||||
"pass": "b-batch-r3",
|
||||
"stage": "b",
|
||||
"cell": "batch",
|
||||
"repeat": 3,
|
||||
"order": 17
|
||||
},
|
||||
{
|
||||
"pass": "b-head-r3",
|
||||
"stage": "b",
|
||||
"cell": "head",
|
||||
"repeat": 3,
|
||||
"order": 18
|
||||
},
|
||||
{
|
||||
"pass": "c-head-r1",
|
||||
"stage": "c",
|
||||
"cell": "head",
|
||||
"repeat": 1,
|
||||
"order": 19
|
||||
},
|
||||
{
|
||||
"pass": "c-batch-r1",
|
||||
"stage": "c",
|
||||
"cell": "batch",
|
||||
"repeat": 1,
|
||||
"order": 20
|
||||
},
|
||||
{
|
||||
"pass": "c-head-r2",
|
||||
"stage": "c",
|
||||
"cell": "head",
|
||||
"repeat": 2,
|
||||
"order": 21
|
||||
},
|
||||
{
|
||||
"pass": "c-batch-r2",
|
||||
"stage": "c",
|
||||
"cell": "batch",
|
||||
"repeat": 2,
|
||||
"order": 22
|
||||
},
|
||||
{
|
||||
"pass": "c-head-r3",
|
||||
"stage": "c",
|
||||
"cell": "head",
|
||||
"repeat": 3,
|
||||
"order": 23
|
||||
},
|
||||
{
|
||||
"pass": "c-batch-r3",
|
||||
"stage": "c",
|
||||
"cell": "batch",
|
||||
"repeat": 3,
|
||||
"order": 24
|
||||
},
|
||||
{
|
||||
"pass": "d-batch-r1",
|
||||
"stage": "d",
|
||||
"cell": "batch",
|
||||
"repeat": 1,
|
||||
"order": 25
|
||||
},
|
||||
{
|
||||
"pass": "d-load-fast-r1",
|
||||
"stage": "d",
|
||||
"cell": "load-fast",
|
||||
"repeat": 1,
|
||||
"order": 26
|
||||
},
|
||||
{
|
||||
"pass": "d-load-fast-limited-r1",
|
||||
"stage": "d",
|
||||
"cell": "load-fast-limited",
|
||||
"repeat": 1,
|
||||
"order": 27
|
||||
},
|
||||
{
|
||||
"pass": "d-load-unlimited-r1",
|
||||
"stage": "d",
|
||||
"cell": "load-unlimited",
|
||||
"repeat": 1,
|
||||
"order": 28
|
||||
},
|
||||
{
|
||||
"pass": "d-load-stand-r1",
|
||||
"stage": "d",
|
||||
"cell": "load-stand",
|
||||
"repeat": 1,
|
||||
"order": 29
|
||||
},
|
||||
{
|
||||
"pass": "d-batch-r2",
|
||||
"stage": "d",
|
||||
"cell": "batch",
|
||||
"repeat": 2,
|
||||
"order": 30
|
||||
},
|
||||
{
|
||||
"pass": "d-load-fast-limited-r2",
|
||||
"stage": "d",
|
||||
"cell": "load-fast-limited",
|
||||
"repeat": 2,
|
||||
"order": 31
|
||||
},
|
||||
{
|
||||
"pass": "d-load-stand-r2",
|
||||
"stage": "d",
|
||||
"cell": "load-stand",
|
||||
"repeat": 2,
|
||||
"order": 32
|
||||
},
|
||||
{
|
||||
"pass": "d-load-unlimited-r2",
|
||||
"stage": "d",
|
||||
"cell": "load-unlimited",
|
||||
"repeat": 2,
|
||||
"order": 33
|
||||
},
|
||||
{
|
||||
"pass": "d-load-fast-r2",
|
||||
"stage": "d",
|
||||
"cell": "load-fast",
|
||||
"repeat": 2,
|
||||
"order": 34
|
||||
},
|
||||
{
|
||||
"pass": "d-load-fast-limited-r3",
|
||||
"stage": "d",
|
||||
"cell": "load-fast-limited",
|
||||
"repeat": 3,
|
||||
"order": 35
|
||||
},
|
||||
{
|
||||
"pass": "d-load-fast-r3",
|
||||
"stage": "d",
|
||||
"cell": "load-fast",
|
||||
"repeat": 3,
|
||||
"order": 36
|
||||
},
|
||||
{
|
||||
"pass": "d-load-unlimited-r3",
|
||||
"stage": "d",
|
||||
"cell": "load-unlimited",
|
||||
"repeat": 3,
|
||||
"order": 37
|
||||
},
|
||||
{
|
||||
"pass": "d-load-stand-r3",
|
||||
"stage": "d",
|
||||
"cell": "load-stand",
|
||||
"repeat": 3,
|
||||
"order": 38
|
||||
},
|
||||
{
|
||||
"pass": "d-batch-r3",
|
||||
"stage": "d",
|
||||
"cell": "batch",
|
||||
"repeat": 3,
|
||||
"order": 39
|
||||
},
|
||||
{
|
||||
"pass": "e-batch-r1",
|
||||
"stage": "e",
|
||||
"cell": "batch",
|
||||
"repeat": 1,
|
||||
"order": 40
|
||||
},
|
||||
{
|
||||
"pass": "e-refuse-r1",
|
||||
"stage": "e",
|
||||
"cell": "refuse",
|
||||
"repeat": 1,
|
||||
"order": 41
|
||||
},
|
||||
{
|
||||
"pass": "e-batch-r2",
|
||||
"stage": "e",
|
||||
"cell": "batch",
|
||||
"repeat": 2,
|
||||
"order": 42
|
||||
},
|
||||
{
|
||||
"pass": "e-refuse-r2",
|
||||
"stage": "e",
|
||||
"cell": "refuse",
|
||||
"repeat": 2,
|
||||
"order": 43
|
||||
},
|
||||
{
|
||||
"pass": "e-batch-r3",
|
||||
"stage": "e",
|
||||
"cell": "batch",
|
||||
"repeat": 3,
|
||||
"order": 44
|
||||
},
|
||||
{
|
||||
"pass": "e-refuse-r3",
|
||||
"stage": "e",
|
||||
"cell": "refuse",
|
||||
"repeat": 3,
|
||||
"order": 45
|
||||
}
|
||||
],
|
||||
"models": {
|
||||
"a": {
|
||||
"objects": 997,
|
||||
"ready_rows": 994,
|
||||
"pending_rows": 3,
|
||||
"found": {
|
||||
"orphan_object": 3,
|
||||
"missing_object": 3,
|
||||
"size_mismatch": 3,
|
||||
"stale_pending": 3
|
||||
},
|
||||
"consistent": 988
|
||||
},
|
||||
"b": {
|
||||
"objects": 9975,
|
||||
"ready_rows": 9950,
|
||||
"pending_rows": 25,
|
||||
"found": {
|
||||
"orphan_object": 25,
|
||||
"missing_object": 25,
|
||||
"size_mismatch": 25,
|
||||
"stale_pending": 25
|
||||
},
|
||||
"consistent": 9900
|
||||
},
|
||||
"c": {
|
||||
"objects": 29925,
|
||||
"ready_rows": 29850,
|
||||
"pending_rows": 75,
|
||||
"found": {
|
||||
"orphan_object": 75,
|
||||
"missing_object": 75,
|
||||
"size_mismatch": 75,
|
||||
"stale_pending": 75
|
||||
},
|
||||
"consistent": 29700
|
||||
},
|
||||
"d": {
|
||||
"objects": 99750,
|
||||
"ready_rows": 99500,
|
||||
"pending_rows": 250,
|
||||
"found": {
|
||||
"orphan_object": 250,
|
||||
"missing_object": 250,
|
||||
"size_mismatch": 250,
|
||||
"stale_pending": 250
|
||||
},
|
||||
"consistent": 99000
|
||||
},
|
||||
"e": {
|
||||
"objects": 10000,
|
||||
"ready_rows": 11000,
|
||||
"pending_rows": 0,
|
||||
"found": {
|
||||
"missing_object": 1000
|
||||
},
|
||||
"consistent": 10000
|
||||
}
|
||||
},
|
||||
"default_rate": 2000.0,
|
||||
"fills": [
|
||||
{
|
||||
"stage": "a",
|
||||
"start": 0,
|
||||
"end": 1000,
|
||||
"missing": 0,
|
||||
"rows_copy_s": 0.07,
|
||||
"objects": 997,
|
||||
"put_per_s": 95.8,
|
||||
"seconds": 10.4,
|
||||
"last_put_at": 1793131673.15275
|
||||
},
|
||||
{
|
||||
"stage": "b",
|
||||
"start": 0,
|
||||
"end": 10000,
|
||||
"missing": 0,
|
||||
"rows_copy_s": 0.14,
|
||||
"objects": 9975,
|
||||
"put_per_s": 416.0,
|
||||
"seconds": 23.98,
|
||||
"last_put_at": 1793131825.227621
|
||||
},
|
||||
{
|
||||
"stage": "c",
|
||||
"start": 10000,
|
||||
"end": 30000,
|
||||
"missing": 0,
|
||||
"rows_copy_s": 0.25,
|
||||
"objects": 19950,
|
||||
"put_per_s": 400.7,
|
||||
"seconds": 49.79,
|
||||
"last_put_at": 1793132174.333636
|
||||
},
|
||||
{
|
||||
"stage": "d",
|
||||
"start": 30000,
|
||||
"end": 100000,
|
||||
"missing": 0,
|
||||
"rows_copy_s": 0.71,
|
||||
"objects": 69825,
|
||||
"put_per_s": 396.6,
|
||||
"seconds": 176.04,
|
||||
"last_put_at": 1793132804.6605282
|
||||
},
|
||||
{
|
||||
"stage": "e",
|
||||
"start": 0,
|
||||
"end": 10000,
|
||||
"missing": 1000,
|
||||
"rows_copy_s": 0.14,
|
||||
"objects": 10000,
|
||||
"put_per_s": 403.3,
|
||||
"seconds": 24.8,
|
||||
"last_put_at": 1793133897.4481752
|
||||
}
|
||||
]
|
||||
},
|
||||
"stand": {
|
||||
"postgres": {
|
||||
"image": "postgres:18.6-trixie@sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722",
|
||||
"version": "18.6 (Debian 18.6-1.pgdg13+2)",
|
||||
"settings": {
|
||||
"checkpoint_timeout": "5min",
|
||||
"fsync": "on",
|
||||
"jit": "on",
|
||||
"max_connections": "100",
|
||||
"max_wal_size": "1GB",
|
||||
"password_encryption": "scram-sha-256",
|
||||
"shared_buffers": "128MB",
|
||||
"synchronous_commit": "on",
|
||||
"wal_level": "replica"
|
||||
}
|
||||
},
|
||||
"valkey": {
|
||||
"image": "valkey/valkey:9.1.2-trixie@sha256:418652cfb58ef879d4978c33553735d7147016032d5aefaa14c828e611eb9dfd",
|
||||
"version": "9.1.2"
|
||||
},
|
||||
"haproxy": {
|
||||
"image": "haproxy:3.4.6-trixie@sha256:e273915691a8eab3f105bf3e39fd4c29a4ecf334e33421903b5589d25e14db26"
|
||||
},
|
||||
"limits": {
|
||||
"api": {
|
||||
"nano_cpus": 1000000000,
|
||||
"memory": 536870912,
|
||||
"memory_swap": 536870912,
|
||||
"published_ports": {}
|
||||
},
|
||||
"postgres": {
|
||||
"nano_cpus": 2000000000,
|
||||
"memory": 1073741824,
|
||||
"memory_swap": 1073741824,
|
||||
"published_ports": {}
|
||||
},
|
||||
"valkey": {
|
||||
"nano_cpus": 500000000,
|
||||
"memory": 134217728,
|
||||
"memory_swap": 134217728,
|
||||
"published_ports": {}
|
||||
},
|
||||
"haproxy": {
|
||||
"nano_cpus": 1000000000,
|
||||
"memory": 268435456,
|
||||
"memory_swap": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
"s3": {
|
||||
"nano_cpus": 1000000000,
|
||||
"memory": 536870912,
|
||||
"memory_swap": 536870912,
|
||||
"published_ports": {}
|
||||
}
|
||||
},
|
||||
"api_replicas": 2,
|
||||
"app_env": {
|
||||
"APP_HOST": "0.0.0.0",
|
||||
"APP_PORT": "8080",
|
||||
"CACHE_HOST": "valkey",
|
||||
"CACHE_PORT": "6379",
|
||||
"DB_HOST": "postgres",
|
||||
"DB_NAME": "bench",
|
||||
"DB_PORT": "5432",
|
||||
"DB_USER": "bench",
|
||||
"IDEMPOTENCY_TTL_SECONDS": "86400",
|
||||
"LOG_LEVEL": "INFO",
|
||||
"MALLOC_MMAP_THRESHOLD_": "131072",
|
||||
"S3_BUCKET": "bench",
|
||||
"S3_ENDPOINT": "http://s3:8333",
|
||||
"SESSION_TTL_SECONDS": "21600",
|
||||
"SHUTDOWN_TIMEOUT": "5"
|
||||
},
|
||||
"api_tcp_rmem": "4096 131072 524288",
|
||||
"s3": {
|
||||
"image": "chrislusf/seaweedfs:4.48@sha256:4e61d15fd35994cb1e43e1e553dff106794841fd9a99ade2fc8c8bfce4d7872d",
|
||||
"command": [
|
||||
"server",
|
||||
"-ip=127.0.0.1",
|
||||
"-ip.bind=127.0.0.1",
|
||||
"-master.telemetry=false",
|
||||
"-master.electionTimeout=1s",
|
||||
"-volume.preStopSeconds=0",
|
||||
"-filer",
|
||||
"-s3",
|
||||
"-s3.ip.bind=0.0.0.0",
|
||||
"-s3.port=8333",
|
||||
"-s3.port.iceberg=0",
|
||||
"-s3.port.lance=0",
|
||||
"-s3.iam=false",
|
||||
"-s3.concurrentUploadLimitMB=64"
|
||||
]
|
||||
}
|
||||
},
|
||||
"finished": "2026-10-27T20:47:07Z",
|
||||
"host_state_end": {
|
||||
"slept_seconds": 0.1,
|
||||
"swapouts_start": 526434,
|
||||
"swapouts_end": 526434,
|
||||
"power_end": "AC Power",
|
||||
"swapouts_delta": 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user