Files
mtusi2026lab4/evidence/experiment/summary.json

353 lines
12 KiB
JSON

{
"experiment": "lab4 concurrent upload: peak API process RSS",
"generated_at": "2026-12-04T11:34:58.139639Z",
"git_revision": "02fc97b78aff9a1890bd2bade40f6cd8654e2000",
"api_image_id": "sha256:9f46ec2a6cf007f77202d3ae97afc0f710ee3cd191b8c620405f397b193932ce",
"base_url": "http://127.0.0.1:8084",
"started_at": "2026-12-04T11:34:56.471905Z",
"finished_at": "2026-12-04T11:34:57.559844Z",
"wall_seconds": 1.088,
"configured_concurrency": 12,
"observed_peak_concurrency": 12,
"successful_uploads": 12,
"failed_uploads": 0,
"api_instances": [
"255348db8382",
"291762b7fcf7"
],
"uploads_per_instance": {
"291762b7fcf7": {
"uploads": 6,
"bytes": 23765280
},
"255348db8382": {
"uploads": 6,
"bytes": 29467820
}
},
"profile": {
"files": 12,
"total_bytes": 53233100,
"min_bytes": 2101403,
"max_bytes": 10406995,
"max_pixels": 3467200,
"small": {
"count": 6,
"width": 1000,
"height": 700
},
"medium": {
"count": 4,
"width": 1500,
"height": 1100
},
"near_max_bytes": {
"count": 2,
"width": 1600,
"height": 2167
}
},
"limits": {
"api_memory_limit_bytes": 402653184,
"GOMEMLIMIT": "300MiB",
"UPLOAD_DECODE_CONCURRENCY": "1",
"S3_PUT_CONCURRENCY": "1",
"MAX_UPLOAD_BYTES": "10485760",
"MAX_IMAGE_PIXELS": "40000000"
},
"memory_metrics": {
"process_rss_source": "/proc/1/status VmRSS inside each API container, sampled by docker exec",
"process_hwm_source": "/proc/1/status VmHWM inside each API container",
"cgroup_source": "/sys/fs/cgroup/memory.current and memory.peak (whole container cgroup)",
"sample_interval_seconds": 0.2,
"samples_taken": 4,
"first_sample_at": "2026-12-04T11:34:56.471876Z",
"last_sample_at": "2026-12-04T11:34:57.897775Z",
"max_sample_gap_seconds": 0.581,
"per_instance": {
"255348db8382": {
"samples": 4,
"baseline_rss_bytes": 32636928,
"baseline_hwm_bytes": 32636928,
"peak_sampled_rss_bytes": 53067776,
"peak_sampled_rss_delta_bytes": 20430848,
"final_hwm_bytes": 53592064,
"peak_cgroup_current_bytes": 58441728,
"peak_cgroup_memory_peak_bytes": 68681728,
"api_memory_limit_bytes": 402653184
},
"291762b7fcf7": {
"samples": 4,
"baseline_rss_bytes": 32636928,
"baseline_hwm_bytes": 32636928,
"peak_sampled_rss_bytes": 43819008,
"peak_sampled_rss_delta_bytes": 11182080,
"final_hwm_bytes": 53338112,
"peak_cgroup_current_bytes": 54124544,
"peak_cgroup_memory_peak_bytes": 59400192,
"api_memory_limit_bytes": 402653184
}
}
},
"uploads": [
{
"index": 0,
"profile": "small",
"filename": "load-00.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "79cbb720f624ede46a0cfa457295be4d59a01c89d5655eee9fec1c20709a9192",
"started_at": "2026-12-04T11:34:56.513575Z",
"finished_at": "2026-12-04T11:34:56.747488Z",
"started_monotonic": 5.4561885,
"finished_monotonic": 5.690098791,
"duration_ms": 233.91,
"status": 201,
"instance_id": "291762b7fcf7",
"attachment_id": "762a1f02-1f07-4491-afc6-d91048e6fe6f",
"server_sha256": "79cbb720f624ede46a0cfa457295be4d59a01c89d5655eee9fec1c20709a9192",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 1,
"profile": "small",
"filename": "load-01.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "56ff9e9df4640588383f1f3697e63fc47786486287765a6ec046692e792b3248",
"started_at": "2026-12-04T11:34:56.517488Z",
"finished_at": "2026-12-04T11:34:56.764786Z",
"started_monotonic": 5.46010075,
"finished_monotonic": 5.707392291,
"duration_ms": 247.292,
"status": 201,
"instance_id": "255348db8382",
"attachment_id": "f787c937-07a5-4cf5-a04e-35dc05b5f9c3",
"server_sha256": "56ff9e9df4640588383f1f3697e63fc47786486287765a6ec046692e792b3248",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 2,
"profile": "small",
"filename": "load-02.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "12e55905a3f9f4472750c35137b43d948a9d3e3091e7f3587b58869f4333885d",
"started_at": "2026-12-04T11:34:56.513663Z",
"finished_at": "2026-12-04T11:34:56.725265Z",
"started_monotonic": 5.456276791,
"finished_monotonic": 5.667872375,
"duration_ms": 211.596,
"status": 201,
"instance_id": "291762b7fcf7",
"attachment_id": "2e6dee21-0133-4726-b999-86d0a9c10207",
"server_sha256": "12e55905a3f9f4472750c35137b43d948a9d3e3091e7f3587b58869f4333885d",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 3,
"profile": "small",
"filename": "load-03.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "f2b7dbdb007111bf6370726e98deeee88ad950678c131ecb33fbf1b81309ad27",
"started_at": "2026-12-04T11:34:56.517612Z",
"finished_at": "2026-12-04T11:34:56.840134Z",
"started_monotonic": 5.460225791,
"finished_monotonic": 5.782738166,
"duration_ms": 322.512,
"status": 201,
"instance_id": "291762b7fcf7",
"attachment_id": "51640d6a-e814-4878-b3f8-07688703ce6e",
"server_sha256": "f2b7dbdb007111bf6370726e98deeee88ad950678c131ecb33fbf1b81309ad27",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 4,
"profile": "small",
"filename": "load-04.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "b1b3c5c004f2ad33a50a772c341754be7788e3a54182767b4593c3f07b384148",
"started_at": "2026-12-04T11:34:56.513982Z",
"finished_at": "2026-12-04T11:34:56.747263Z",
"started_monotonic": 5.456595958,
"finished_monotonic": 5.689869958,
"duration_ms": 233.274,
"status": 201,
"instance_id": "255348db8382",
"attachment_id": "58516465-016c-471c-8576-b2c1dd033aa2",
"server_sha256": "b1b3c5c004f2ad33a50a772c341754be7788e3a54182767b4593c3f07b384148",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 5,
"profile": "small",
"filename": "load-05.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "4d4db37b1cd3144cb7c136ef6c9e210c556e298401cb0f7c87068732bdee1d24",
"started_at": "2026-12-04T11:34:56.513749Z",
"finished_at": "2026-12-04T11:34:56.937698Z",
"started_monotonic": 5.456362,
"finished_monotonic": 5.880304958,
"duration_ms": 423.943,
"status": 201,
"instance_id": "291762b7fcf7",
"attachment_id": "9f79c942-22bf-4e10-8991-9fa187d2e25e",
"server_sha256": "4d4db37b1cd3144cb7c136ef6c9e210c556e298401cb0f7c87068732bdee1d24",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 6,
"profile": "medium",
"filename": "load-06.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "1b36c050abe85d2a1d183943ae0c8198080810c3e320defcbb54cc3ee9892de5",
"started_at": "2026-12-04T11:34:56.516942Z",
"finished_at": "2026-12-04T11:34:56.960201Z",
"started_monotonic": 5.459537875,
"finished_monotonic": 5.902805916,
"duration_ms": 443.268,
"status": 201,
"instance_id": "255348db8382",
"attachment_id": "13d3d726-9294-4567-a870-e259af693f6b",
"server_sha256": "1b36c050abe85d2a1d183943ae0c8198080810c3e320defcbb54cc3ee9892de5",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 7,
"profile": "medium",
"filename": "load-07.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "fd35bb6ecf8257aab2696d8a7ee0dece9350d3e46371661a742a0e057cdd75df",
"started_at": "2026-12-04T11:34:56.513844Z",
"finished_at": "2026-12-04T11:34:57.358162Z",
"started_monotonic": 5.456458041,
"finished_monotonic": 6.300764791,
"duration_ms": 844.307,
"status": 201,
"instance_id": "255348db8382",
"attachment_id": "a3c063c4-9b5c-4799-8847-e5b79ec3ae55",
"server_sha256": "fd35bb6ecf8257aab2696d8a7ee0dece9350d3e46371661a742a0e057cdd75df",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 8,
"profile": "medium",
"filename": "load-08.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "fae30be4f37e121952050d82c5952de321591845750a290321edb6fe094ba57f",
"started_at": "2026-12-04T11:34:56.513909Z",
"finished_at": "2026-12-04T11:34:57.058113Z",
"started_monotonic": 5.456522375,
"finished_monotonic": 6.000715375,
"duration_ms": 544.193,
"status": 201,
"instance_id": "291762b7fcf7",
"attachment_id": "6dfa35b8-ddf6-434a-9c0d-e26fa29cb7af",
"server_sha256": "fae30be4f37e121952050d82c5952de321591845750a290321edb6fe094ba57f",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 9,
"profile": "medium",
"filename": "load-09.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "317bd264909822fb98f661324e660bcc8b2fb63fb4c4aca5d0f930799234b975",
"started_at": "2026-12-04T11:34:56.517888Z",
"finished_at": "2026-12-04T11:34:57.148109Z",
"started_monotonic": 5.460501166,
"finished_monotonic": 6.090713666,
"duration_ms": 630.212,
"status": 201,
"instance_id": "255348db8382",
"attachment_id": "14b024b4-b84b-42f3-a4c6-e9ee9382dec5",
"server_sha256": "317bd264909822fb98f661324e660bcc8b2fb63fb4c4aca5d0f930799234b975",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 10,
"profile": "near-max-bytes",
"filename": "load-10.png",
"width": 1600,
"height": 2167,
"pixels": 3467200,
"bytes": 10406995,
"sha256": "323d49ae0c9e62d43be080d4c521db8ad08e59975d162c730bf544e5bf1bc673",
"started_at": "2026-12-04T11:34:56.517768Z",
"finished_at": "2026-12-04T11:34:57.559424Z",
"started_monotonic": 5.46038125,
"finished_monotonic": 6.502022583,
"duration_ms": 1041.641,
"status": 201,
"instance_id": "255348db8382",
"attachment_id": "6ccc80b0-bd6d-42bf-a2ec-52d238854786",
"server_sha256": "323d49ae0c9e62d43be080d4c521db8ad08e59975d162c730bf544e5bf1bc673",
"server_size_bytes": 10406995,
"server_status": "ready"
},
{
"index": 11,
"profile": "near-max-bytes",
"filename": "load-11.png",
"width": 1600,
"height": 2167,
"pixels": 3467200,
"bytes": 10406995,
"sha256": "4996193b58d3cfa1a9be97f0326a1747022984d7ff5cc04d257dad92e7bb3c09",
"started_at": "2026-12-04T11:34:56.513426Z",
"finished_at": "2026-12-04T11:34:57.353921Z",
"started_monotonic": 5.456032791,
"finished_monotonic": 6.296522583,
"duration_ms": 840.49,
"status": 201,
"instance_id": "291762b7fcf7",
"attachment_id": "75ee3ed2-7f9a-4520-90b3-275394864f86",
"server_sha256": "4996193b58d3cfa1a9be97f0326a1747022984d7ff5cc04d257dad92e7bb3c09",
"server_size_bytes": 10406995,
"server_status": "ready"
}
],
"result": "PASS",
"limitations": [
"One local stand: RSS includes Go runtime and handler state, not a production profile.",
"The sampler uses docker exec every 200 ms; a shorter allocation spike between samples is bounded by VmHWM, which is also reported.",
"cgroup memory.current includes page cache and is not process RSS."
]
}