You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When streaming video, sometimes OAK creates a ton of processes and has a very high CPU usage. This affects other time-critical processes running on the same machine.
Below is an example screenshot of htop, when running the rgb_preview example with small modifications:
All 32 CPU has ~40% usage, and there are many processes created by the OAK test example.
If I reduce preview size to 300x300, the problem is gone:
There is only one CPU with high usage, which is expected.
The same issue can be reproduced with the rgb_video example, with the same resolution/FPS settings. Note that with rgb_video, even at 300x300, the CPU usage is still high.
If I reduce FPS to 30, the usage per cpu reduces to ~15%, but still many processes are created and all CPU has this usage.
I am using a OAK-D-W camera.
Minimal Reproducible Example
The camera_preview and the camera_video example linked above, with the above mentioned changes.
Expected behavior
There should be only one CPU with high usage, no matter what camera setting I use. Or there should be parameters I can use to control the number of processes/CPU that OAK can occupy. Unfortunately I am yet to find any info about when and how would depthai-core create processes.
Describe the bug
When streaming video, sometimes OAK creates a ton of processes and has a very high CPU usage. This affects other time-critical processes running on the same machine.
Below is an example screenshot of htop, when running the rgb_preview example with small modifications:
All 32 CPU has ~40% usage, and there are many processes created by the OAK test example.
If I reduce preview size to 300x300, the problem is gone:
![Image](https://private-user-images.githubusercontent.com/22915053/408848514-9a9e1717-ccb3-4ae9-aa5d-2bd211c34800.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTk2MzUsIm5iZiI6MTczOTU5OTMzNSwicGF0aCI6Ii8yMjkxNTA1My80MDg4NDg1MTQtOWE5ZTE3MTctY2NiMy00YWU5LWFhNWQtMmJkMjExYzM0ODAwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA2MDIxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRlMzdkYTc0OGVmYzhkYWUxMWNlMjExOTJlZmQ0Y2E3ODhlNzgwZGZhZTA0ZTU5MGU2YWY3N2M2ZGNiNjFjMjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qJrxWhD5h0LF6J49AmW-Y86YD4SxLEwUa7BFbagaehA)
There is only one CPU with high usage, which is expected.
The same issue can be reproduced with the rgb_video example, with the same resolution/FPS settings. Note that with rgb_video, even at 300x300, the CPU usage is still high.
If I reduce FPS to 30, the usage per cpu reduces to ~15%, but still many processes are created and all CPU has this usage.
I am using a OAK-D-W camera.
Minimal Reproducible Example
The camera_preview and the camera_video example linked above, with the above mentioned changes.
Expected behavior
There should be only one CPU with high usage, no matter what camera setting I use. Or there should be parameters I can use to control the number of processes/CPU that OAK can occupy. Unfortunately I am yet to find any info about when and how would depthai-core create processes.
Attach system log
log_system_information.json
The text was updated successfully, but these errors were encountered: