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

大量数据通信时、fdbus会出现卡滞 #12

Closed
sunclgogo opened this issue Mar 18, 2020 · 2 comments
Closed

大量数据通信时、fdbus会出现卡滞 #12

sunclgogo opened this issue Mar 18, 2020 · 2 comments

Comments

@sunclgogo
Copy link

sunclgogo commented Mar 18, 2020

通过logsvc工具查看、logsvc输出的log会出现卡滞现象、在具体场景中的表现是:fdbus client上在几秒钟内会出现无法通信的情况、其他server向client broadcast的数据、要几秒钟后才能收到。
branch:hotfix_autoreply_for_sunclgogo。
@jeremyczhen 希望有时间帮忙看下、谢谢!

@jeremyczhen
Copy link
Owner

可能的原因是,logsvc启动后,FDBus上所有消息都要向logsvc转发一份,导致通信的数据量会加倍(考虑到log的数据是文本格式,可能比加倍还要多),另外如果logsvc向屏幕打印数据,打印过程也会阻塞消息收发。现在还无法判断具体原因,能不能做以下试验并告知测试结果:

  1. logsvc > /dev/null:看一下系统是不是会阻塞
  2. logsvc -o:此时不会打印任何信息,看看会不会阻塞;如果不阻塞,则执行下面操作:
  3. logsvc -o &:此时没有打印
    logviewer:此时会有打印,看看会不会阻塞

@sunclgogo
Copy link
Author

@jeremyczhen 我们尝试将Fdbus makefile中的log控制宏开关注掉、但是log还是能输出、有什么办法可以禁用掉Fdbus所有的log输出么?
注掉的宏开关如下:
#add_definitions("-DCONFIG_DEBUG_LOG")
#add_definitions("-DCONFIG_LOG_TO_STDOUT")

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