Files
mtusi2026lab4/evidence/upload-memory.txt
T
2026-10-22 17:27:32 +03:00

13 lines
1.2 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.
python student-tests/upload_memory.py
replicas: ['81410605dad3', 'ccaea065f01a']; 12 files x 8.8 MiB (1800x1700, random pixels)
A (accepted): 12 concurrent uploads in 7.30 s -> statuses [201]
B (11 MiB, rejected): 12 concurrent uploads in 0.06 s -> statuses [413]
Профиль A: 12 одновременных PNG по 8.8 МиБ за 7.3 с, все 201, SHA-256 совпали при скачивании; профиль B: 12 одновременных по 11 МиБ за 0.06 с, все 413. Лимит памяти реплики 512 МиБ. Сырые данные: evidence/upload-memory.json.
| Реплика | Загрузок A | RSS до, МиБ | Пик RSS до → после A, МиБ | Рост пика, МиБ | Тела целиком в памяти были бы, МиБ | Рост пика от B (11 МиБ ×12), МиБ | memory.peak cgroup, МиБ |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 81410605dad3 | 6 | 95.1 | 95.1 → 131.0 | 35.9 | 52.6 | 0.0 | None |
| ccaea065f01a | 6 | 97.2 | 97.2 → 130.8 | 33.6 | 52.6 | 0.0 | None |
REPORT.md: table updated between upload-memory markers
PASS: >= 10 concurrent uploads measured; see the table above