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

oom issue #58

Open
cstkingkey opened this issue Mar 1, 2025 · 7 comments
Open

oom issue #58

cstkingkey opened this issue Mar 1, 2025 · 7 comments

Comments

@cstkingkey
Copy link

lede最新版本,内核6.6,也下载使用了release最新版本,频繁出现__vm_enough_memory: pid: 5528, comm: ipt2socks_defau, not enough memory for the allocation

@zfl9
Copy link
Owner

zfl9 commented Mar 3, 2025

缺少其他信息:

  • 具体使用场景?日志?
  • 代理流量是否因 iptables/nftables 规则死循环(一直重定向至 ipt2socks 进程)

@cstkingkey
Copy link
Author

passwall使用。被oom杀掉的时候没有日志内容。目前是随机出现,看不出规律性,一小时几次或几小时一次都有。

@zfl9
Copy link
Owner

zfl9 commented Mar 4, 2025

试试回退到上一个版本?

我搞个debug版本看看啥情况。(OOM没法生成coredump,所以debug也没啥帮助)

@zfl9
Copy link
Owner

zfl9 commented Mar 5, 2025

我复现了,也是因 OOM 被内核杀了。

但是很奇怪,没有什么特别的日志。也没有死循环。网络流量也不大。

我有空再看看代码。


你先试试回退上个 release 版本?

刚撤销了一段可疑修改,先尝试下 master 的最新提交(已发布 pre-release)。我也在尝试最新提交版本是否正常。

还是挂了。

@cattyhouse
Copy link

cattyhouse commented Mar 5, 2025

我这边 x86_64 运行了15天了,没出现过oom。 你们是怎么复现的? debian 12

@zfl9
Copy link
Owner

zfl9 commented Mar 6, 2025

也许是 aarch64 会这样,我在 aarch64 上出现的。(没有找到稳定的复现方法)

@zfl9
Copy link
Owner

zfl9 commented Mar 6, 2025

刚才我又复现了,看了下,只是vss虚拟内存大小在增长(而且以2的指数级增长,估计是某个realloc出问题了,明天我再看看代码),rss实际使用的物理内存没变(一直保持200kb左右)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants