Files
mtusi2026lab4/evidence/upload-memory.txt
T

157 lines
3.7 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.
# upload-memory
# date: 2026-10-29T19:38:36 commit: no-git
$ C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\python.exe student-tests/upload_memory.py --base-url http://localhost:8080 --concurrency 10 --output evidence/upload-memory-10.json
file: 10026738 bytes (9.56 MiB), sha256 56a8ce1a2d78…
idle MiB: {'807f1011fecb': {'usage': 75.3, 'anon': 70.2, 'peak': 214.2}, '3b090ba3d3a9': {'usage': 74.7, 'anon': 69.9, 'peak': 214.0}}
{
"file_bytes": 10026738,
"concurrency": 10,
"rounds": 3,
"uploads": 30,
"status_counts": {
"201": 30
},
"sha256_ok": 30,
"instances": [
"3b090ba3d3a9",
"807f1011fecb"
],
"elapsed_s": 9.54,
"throughput_MiB_s": 30.1,
"latency_s": {
"p50": 2.86,
"max": 3.47
},
"memory_MiB": {
"idle": {
"807f1011fecb": {
"usage": 75.3,
"anon": 70.2,
"peak": 214.2
},
"3b090ba3d3a9": {
"usage": 74.7,
"anon": 69.9,
"peak": 214.0
}
},
"sampled_peak": {
"807f1011fecb": {
"usage": 122.8,
"anon": 90.3
},
"3b090ba3d3a9": {
"usage": 128.2,
"anon": 91.1
}
},
"after": {
"807f1011fecb": {
"usage": 84.4,
"anon": 79.1,
"peak": 214.2
},
"3b090ba3d3a9": {
"usage": 83.7,
"anon": 79.0,
"peak": 214.0
}
},
"max_growth_usage": 53.5,
"max_growth_anon": 21.2,
"cgroup_peak_after": {
"807f1011fecb": 214.2,
"3b090ba3d3a9": 214.0
}
},
"container_limit_MiB": 256
}
ok - download af982c40 sha256 matches
ok - download 8f84d5ce sha256 matches
ok - download 29e19f9a sha256 matches
ok - all 30 uploads -> 201
ok - sha256 of every upload matches
ok - peak growth per replica 53.5 MiB < 100 MiB (naive buffering: ≥ 5 × 9.6 MiB × 2)
saved evidence/upload-memory-10.json
6 passed, 0 failed
[exit 0]
$ C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\python.exe student-tests/upload_memory.py --base-url http://localhost:8080 --concurrency 20 --output evidence/upload-memory-20.json
file: 10026844 bytes (9.56 MiB), sha256 5f839924b002…
idle MiB: {'807f1011fecb': {'usage': 84.5, 'anon': 79.1, 'peak': 214.2}, '3b090ba3d3a9': {'usage': 83.8, 'anon': 79.0, 'peak': 214.0}}
{
"file_bytes": 10026844,
"concurrency": 20,
"rounds": 3,
"uploads": 60,
"status_counts": {
"201": 60
},
"sha256_ok": 60,
"instances": [
"3b090ba3d3a9",
"807f1011fecb"
],
"elapsed_s": 20.12,
"throughput_MiB_s": 28.5,
"latency_s": {
"p50": 5.39,
"max": 7.81
},
"memory_MiB": {
"idle": {
"807f1011fecb": {
"usage": 84.5,
"anon": 79.1,
"peak": 214.2
},
"3b090ba3d3a9": {
"usage": 83.8,
"anon": 79.0,
"peak": 214.0
}
},
"sampled_peak": {
"807f1011fecb": {
"usage": 156.0,
"anon": 104.2
},
"3b090ba3d3a9": {
"usage": 156.7,
"anon": 105.5
}
},
"after": {
"807f1011fecb": {
"usage": 92.1,
"anon": 86.4,
"peak": 214.2
},
"3b090ba3d3a9": {
"usage": 91.2,
"anon": 86.4,
"peak": 214.0
}
},
"max_growth_usage": 72.9,
"max_growth_anon": 26.5,
"cgroup_peak_after": {
"807f1011fecb": 214.2,
"3b090ba3d3a9": 214.0
}
},
"container_limit_MiB": 256
}
ok - download 86ee3302 sha256 matches
ok - download 4566fa4d sha256 matches
ok - download e1a5b504 sha256 matches
ok - all 60 uploads -> 201
ok - sha256 of every upload matches
ok - peak growth per replica 72.9 MiB < 100 MiB (naive buffering: ≥ 10 × 9.6 MiB × 2)
saved evidence/upload-memory-20.json
6 passed, 0 failed
[exit 0]