Files
markbase/data/phase15_16_test_report.md
Warren 5d577653d9
Some checks failed
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled
Phase 16: Test report - rsync success, SCP timeout issue
测试结果:
-  rsync 10-50MB: 全部成功(MD5一致)
-  SCP legacy: 20MB失败(只传输416KB,stdin timeout)
- ⚠️ 性能问题: 780 KB/s(远低于AGENTS.md记录的21-36 MB/s)

根本原因:
- SCP timeout: 5090ms后强制关闭stdin
- Window Control: 正常工作(1090次WINDOW_DECREASED)

下一步:
- Phase 16.1: 修复SCP timeout
- Phase 16.2: 性能优化(提高传输速度)
2026-06-17 21:15:50 +08:00

68 lines
1.9 KiB
Markdown
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.
# Phase 15-16 测试报告
**测试时间**2026-06-17 21:11-21:15
**测试工具**OpenSSH rsync/SCP
## rsync 测试结果 ⭐⭐⭐⭐⭐
| 文件大小 | 传输时间 | 速度 | MD5 校验 | 结果 |
|---------|---------|------|---------|------|
| 10MB | 10秒 | 780 KB/s | ✅ 一致 | ✅ 成功 |
| 20MB | 24秒 | 780 KB/s | ✅ 一致 | ✅ 成功 |
| 50MB | 64秒 | 782 KB/s | ✅ 一致 | ✅ 成功 |
**结论**rsync 大文件传输完全成功10-50MB
**Window Control 统计**
- 20MB 传输1090 次 WINDOW_DECREASED
- 50MB 传输:约 2725 次(估算)
## SCP legacy 测试结果 ⚠️⚠️⚠️⚠️⚠️
| 文件大小 | 应上传 | 实际上传 | MD5 校验 | 结果 |
|---------|--------|---------|---------|------|
| 20MB | 20MB | 416KB | ❌ 不一致 | ❌ 失败 |
**根本原因**SSH server timeout机制
- 强制关闭 stdin5090ms 后发送 EOF
- SCP child process 被中断
- 文件传输不完整
**日志关键信息**
```
[13:15:04] ⭐⭐⭐⭐⭐ Forcing stdin close after 509 iterations (5090 ms) - sending EOF to rsync
[13:15:04] Child exited after stdout/stderr EOF (status: ExitStatus(unix_wait_status(0)))
```
## 性能分析 ⚠️⚠️⚠️⚠️⚠️
**传输速度对比**
- AGENTS.md 记录21-36 MB/s
- 实际测试780 KB/s
- **性能差异**:约 30倍差距
**可能原因**
1. Window size 太小2MB
2. sshbuf zero-copy 性能未优化
3. AES-CTR encryption overhead
4. poll() iteration overhead1000次迭代
## 下一步计划 ⭐⭐⭐⭐⭐
**Phase 16.1:修复 SCP timeout**(优先)
- 增加 stdin timeout 至 30秒
- 或针对 SCP/rsync 禁用 timeout
**Phase 16.2:性能优化**
- Window size 动态调整(根据传输速度)
- sshbuf 性能测试
- 减少 poll iteration overhead
**Phase 17SCP over SFTP subsystem**
- SCP subsystem support
- SCP -3 选项支持recursive copy
---
**最后更新**2026-06-17 21:15