Skip to content

Android backend - Out of memory error fix#4428

Closed
matkatz wants to merge 2 commits intorealsenseai:developmentfrom
matkatz:android-oom-fix
Closed

Android backend - Out of memory error fix#4428
matkatz wants to merge 2 commits intorealsenseai:developmentfrom
matkatz:android-oom-fix

Conversation

@matkatz
Copy link
Contributor

@matkatz matkatz commented Jul 14, 2019

This PR reverts the bulk transfer reads on the streaming endpoints back to USB requests.
The bulk transfer (ioctl(device, USBDEVFS_BULK, &ctrl)) requires memory allocation of the entire frame size which failed on some devices with "Out of memory" error.
Moving back to USB requests (ioctl(device, USBDEVFS_SUBMITURB, urb)) seems to eliminate this issue.
Removing unnecessary synchronization and memcopies from the previous implementation of the backend with USB requests equalized the performance that we had with the bulk transfer implementation.
Fix issues: #3612, #4091, #4215

@matkatz matkatz requested review from dorodnic and ev-mp July 14, 2019 10:18
@matkatz
Copy link
Contributor Author

matkatz commented Aug 20, 2019

UVC changes merged with #4678

@matkatz matkatz closed this Aug 20, 2019
@matkatz matkatz deleted the android-oom-fix branch November 5, 2019 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant