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

[Bug] sonic-ios-bridge占用率彪到100% #66

Open
1 of 2 tasks
qingqingcaoyuanlin opened this issue Sep 21, 2023 · 1 comment
Open
1 of 2 tasks

[Bug] sonic-ios-bridge占用率彪到100% #66

qingqingcaoyuanlin opened this issue Sep 21, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@qingqingcaoyuanlin
Copy link

qingqingcaoyuanlin commented Sep 21, 2023

Search before asking

  • I searched in the issue and found nothing similar. | 我查找了并确认issue列表无相似报告。

Sonic version

V2.62

Deploy platform

Ubuntu docker

Minimal reproduce step

iPhone链接电脑后,全部断开后再重新插入,sonic就无法识别到iPhone,同时sonic-ios-bridge的CPU占用率飙升。
下面是连接一台iPhone是的CPU情况:
image
下面是断开iPhone后的CPU占用情况,已经超过100%
image
可参考https://sonic-cloud.wiki/d/2829-ubuntujariphone

Are you willing to submit a PR?

  • I'm willing to submit a PR! | 我将发起PR!
@qingqingcaoyuanlin qingqingcaoyuanlin added the bug Something isn't working label Sep 21, 2023
@haimachl
Copy link

haimachl commented Apr 2, 2024

cpu的计算规则也有问题。
直接返回的CPU_SystemLoad里面的数据,但是实际上要计算CPU,最好是使用这个数据除于EnabledCPUs,但是这个貌似没有提供EnabledCpu的数据获取的接口,所以导致算出来的CPU是会超过100%的

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

2 participants