-
Notifications
You must be signed in to change notification settings - Fork 33
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
host.Init forked processes persist and maintain high CPU load #51
Comments
This is surprising. Can you use https://pkg.go.dev/runtime/pprof to try to determine what is spinning? Keep in mind the ftdi driver is known to not be at the quality bar that the project generally aims to achieve. |
Thanks. The profiling output isn't awfully specific but here it is
Please let me know of anything else I can provide. |
Sorry I won't be able to diagnose with this data. You will likely need to investigate more deeply yourself. |
On deeper inspection the issue seems to be caused by the ftd2xx driver with the call to FT_Open in d2xx_posix.go open(). This happens specifically on the device that is used and has ftdi_sio unbound, and on none of the other FTDI devices iterated through. |
Describe the bug
Processes spawned by host.Init() when using ftdi maintain a high CPU load on multiple threads that persists.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No processes to persist and produce high CPU load after host.Init() completion.
Platform (please complete the following information):
Additional context
Device: FTDI FT232H
Device is completely usable after host.Init()
ftdi_sio driver unbound from used FT232H, but module not removed as it is required by other FTDI devices on the system.
The text was updated successfully, but these errors were encountered: