Files
mtusi2026lab4/evidence/memory-peak.txt
T
2026-10-30 22:16:54 +03:00

17 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Experiment: 10 concurrent uploads × 9.5 MiB
Date: 2026-10-30 21:05:49
Hardware: 8415133696 bytes RAM
Image: messenger-lab4-api (python:3.11.9-slim + boto3/Pillow)
Container limit: 512 MiB (mem_limit visible in docker stats)
baseline (idle): 73.22 MiB
peak after 10×9.5 MiB: 92.34 MiB
growth: +19.12 MiB
load result: concurrency=10 size=9.50MiB total=5.55s p50=5.12s p95=5.19s
Interpretation:
If each upload buffered the entire 9.5 MiB body in RAM, peak would be
≥ 73 + 10*9.5 = 168 MiB. Actual growth (+19 MiB) shows SpooledTemporaryFile
(1 MiB RAM + spill to /tmp) plus run_sync buffers. Streaming holds.