-
Notifications
You must be signed in to change notification settings - Fork 567
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
OOM when restoring data from backup #974
Comments
OOMs are always the worst in any sort of development so I kinda figured it may not be fixable, but thought I'd open this incase something could be done to improve the performance of backup restoration. |
@fire-light42 feel free to close this if you don't think there is anything that can be done to improve this. |
I increased my device RAM from 8GB to 12GB which helped somewhat here, but it still OOMs sometimes... maybe there is more we can exclude from backups... sometimes it will start restoring but crashes before it completes leaving it in only a half-imported state, and takes about 20 tries before it fully imports. The backup file is about 2.87 MB now, before #970 it which I also made exclude I wonder if maybe there is some way to thread restoration or something to improve the performance of restoring backups? I think #623 might help with this a lot though if it can restore from Google rather than device itself, among other improvements it looks like that has... |
After testing the issue has been found, this will be closed in eta 10min |
#623 does not fix the issue, nor was the issue the size of the data like "plots". The issue was that calling apply after every key is "correct", but when doing 10000000 keys caused a major memory spike as it has to "atomically performs the requested modifications", meaning that is probs had to read the entire database or smth. |
Oh that makes a ton of sense... thanks! |
That's amazing... so much faster restore also, almost does it instantly now... Thanks a ton for that fix! |
Steps to reproduce
Restore a backup file
Expected behavior
Data should be restored
Actual behavior
OOM is received, throwing the app into safemode:
Cloudstream version and commit hash
4.3.1 bd69054
Android version
Android 14
Logcat
No response
Other details
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: