Repository navigation
fix(smb): 慢链路下 SMB 库不再 7 秒超时,本页元数据改为并发读取 - #181
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
验证:LXC 上 CI 同款构建通过,单测 412 个 0 失败;新增 4 个测试各做过变异验证(串行、整页总时限、超时不取消、按完成先后返回),都被抓到。平板(SM-X926B,Android 16,调试版,147 册,元数据并发 64)冷启动进 SMB 库,基线与修复交替跑:手机热点 + WireGuard(往返 100–420 ms)下基线 7/7 次在 7 秒时超时、中位只读完 5 册,修复 7/7 次读完 50 册,列目录加读本页中位 2.2 s;家里 Wi-Fi(往返约 6 ms)下中位 1.9 s → 0.3 s。并发读取期间同一连接上的其他读取要排队,用只读探针按完全重叠的最坏情况测(每轮三种情况紧挨着跑,逐轮比较):局域网下比起原来的串行读取,50 张封面每轮多 27–71 ms(中位 42 ms),一张阅读页没有一致的差异,只持续约 0.2 s;隧道下一张阅读页同时并发读取时多 0.64 s、同时串行读取时多 0.75 s(中位,相对单独读),封面的差异被链路波动淹没(同样单独读一批封面,6 轮从 2.4 s 到 8.0 s)。
未验证:默认并发 6 下没有实测;写入网络存储的下载与并发读取同时进行的影响(会写进真实的库)。
Closes #163