Leadaxe 报告 sing-box-lx MASQUE 泄漏修复的路由器复测结果
Leadaxe 在 sing-box-lx #52 中报告,同一路由器、同配置使用 v1.14.3-lx.22 并多次应用后,MASQUE connect 残留 goroutine 从 61 降为 0,堆内 TUN 实例由约 40 个降为 1 个,零流量 CPU 从双核约 94% 降到约 6%。对照窗口分别是 lx.20 运行 6.2 天与 lx.22 运行 2 分钟;作者据此将问题关闭为 lx.22 已修复,并说明该路由器剩余 CPU 主要来自真实流量经过用户态 TUN,属于配置问题。
作者原文@LeadaxeField-verified on the same router with
v1.14.3-lx.22after several applies:| | before (lx.20, 6.2 d uptime) | after (lx.22, 2 min, same config) |
|---|---|---|
| goroutines inmasque.(*Outbound).connect.func| 61 | 0 |
| TUN instances in the heap (GRO tables) | ~40 (72 MB) | 1 (2.5 MB) |
|num_gc| 1 964 328 (≈ 3.7/s) | 25 in 2 min |
| CPU at zero traffic | 94 % both cores | ~6 % |The CPU load that remains on this router is real traffic through the userspace TUN (a 64 Mbit/s download at the time of the profile: 58 % of CPU samples in
NativeTun.BatchWrite, GC ≈ 3 %), which is a config matter (auto_redirect+route_exclude_address_set), not this bug. Closing as fixed in lx.22.