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

关于共享内存使用查看 #137

Open
CiscoRachel opened this issue Dec 20, 2024 · 1 comment
Open

关于共享内存使用查看 #137

CiscoRachel opened this issue Dec 20, 2024 · 1 comment

Comments

@CiscoRachel
Copy link

大佬,请教一下运行demo里面send_recv例子,修改发送数据10M,用ipcs -m查看不到共享内存使用,怎么确定在使用共享内存?,测试的时候(传输40MB)出现2次发送成功,接受失败的情况,之后修改传输数据大小不能恢复,reboot之后才恢复,这个大概率是什么问题呢?

@mutouyun
Copy link
Owner

你的情况,看起来是异常退出导致的共享内存池使用失败,这个问题是已知问题:#79,一直没啥好的解决方案。之所以看不到共享内存的使用,估计是因为缓存池申请不到大块内存,直接用了无锁队列做拆包发送了。你可以先确认下你测试的时候demo是否有异常退出,我现在不太方便测试,下周用ipcs -m看看具体现象。

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

2 participants