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

为什么使用多进程以后,时间会更慢了? #7575

Open
1 task done
qq-tt opened this issue Dec 30, 2022 · 2 comments
Open
1 task done

为什么使用多进程以后,时间会更慢了? #7575

qq-tt opened this issue Dec 30, 2022 · 2 comments

Comments

@qq-tt
Copy link

qq-tt commented Dec 30, 2022

问题确认 Search before asking

  • 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

为什么使用多进程以后,时间会更慢了?本来行人检测时间也就6ms左右,用了如下方式启用多进程以后,该行人检测时间竟然达到了48ms以上,这是为什么?
image
read_frame函数在做读帧,并做行人检测处理。

@zhiboniu
Copy link
Collaborator

是否是资源竞争堵塞了呢,本身cpu核数量有多少,如果多个任务跑在一个核上就可能降低效率

@qq-tt
Copy link
Author

qq-tt commented Dec 30, 2022

是否是资源竞争堵塞了呢,本身cpu核数量有多少,如果多个任务跑在一个核上就可能降低效率

怎么看资源堵塞了?本身cpu核数有12个,设置了两个进程而已

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