Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tproxy模式下, 某些游戏更新情景易发生oom-killer #1211

Open
CCCAUCHY opened this issue Sep 30, 2024 · 4 comments
Open

tproxy模式下, 某些游戏更新情景易发生oom-killer #1211

CCCAUCHY opened this issue Sep 30, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@CCCAUCHY
Copy link

描述问题
PS5上某些手游的游戏内更新易造成oom(共传输流量不足500MB), PS5系统更新或游戏下载/更新暂未发生oom(共传输流量10GB以上)

如何复现
不稳定复现

日志
image

Sun Sep 29 21:31:15 2024 daemon.notice netifd: Network device 'lan2' link is up
Sun Sep 29 21:31:15 2024 kern.info kernel: [600227.026401] nss-dp 3a001200.dp2 lan2: PHY Link up speed: 1000
Sun Sep 29 21:31:15 2024 kern.info kernel: [600227.026738] br-lan: port 2(lan2) entered blocking state
Sun Sep 29 21:31:15 2024 kern.info kernel: [600227.026753] br-lan: port 2(lan2) entered forwarding state
Sun Sep 29 21:32:13 2024 kern.warn kernel: [600285.233979] hysteria-linux- invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0
Sun Sep 29 21:32:13 2024 kern.warn kernel: [600285.234012] CPU: 3 PID: 19401 Comm: hysteria-linux- Tainted: G        W          6.1.100 #0
Sun Sep 29 21:32:13 2024 kern.warn kernel: [600285.234022] Hardware name: CMIOT AX18 (DT)

设备和操作系统
zn-m2, ipq6000, Linux KWrt 6.1.100

@CCCAUCHY CCCAUCHY added the bug Something isn't working label Sep 30, 2024
@haruue
Copy link
Collaborator

haruue commented Sep 30, 2024

查了下 zn-m2 这个设备的参数, 总内存才 256MB, 这种设备上其实用个一百多 MB 就 oom 了, 并没有什么很好的办法。
可以试试把 Hysteria 跑在局域网里别的内存足够大的设备上, 再从这台 OpenWrt 用 socks5 协议连过去。 对于 PS5 这种允许手动配置 IP 和网关的需求, 也可以考虑旁路由的方案。
所需的内存和传输的数据量关系不大, 和应用程序同时打开的连接数关系比较大。

@CCCAUCHY
Copy link
Author

查了下 zn-m2 这个设备的参数, 总内存才 256MB, 这种设备上其实用个一百多 MB 就 oom 了, 并没有什么很好的办法。 可以试试把 Hysteria 跑在局域网里别的内存足够大的设备上, 再从这台 OpenWrt 用 socks5 协议连过去。 对于 PS5 这种允许手动配置 IP 和网关的需求, 也可以考虑旁路由的方案。 所需的内存和传输的数据量关系不大, 和应用程序同时打开的连接数关系比较大。

可以限制连接数吗?

@giveup
Copy link

giveup commented Oct 2, 2024

256内存设备的oom问题几乎无解。
ps5系统更新,可能使用的是直连策略,内存占用问题不明显(猜测可能是使用了Zero-Copy之类的技术)
游戏更新可能使用的是代理策略。建议调整域名规则,只让必要的域名才走代理。

@CCCAUCHY
Copy link
Author

CCCAUCHY commented Oct 3, 2024

256内存设备的oom问题几乎无解。 ps5系统更新,可能使用的是直连策略,内存占用问题不明显(猜测可能是使用了Zero-Copy之类的技术) 游戏更新可能使用的是代理策略。建议调整域名规则,只让必要的域名才走代理。

没这个可能, 除了局域网地址都是全部代理的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants