Unity8 restarts often due to running out of memory #965
After upgrading from OTA-3 to OTA-5, Unity has started crashing often. uNav, Reddit webapp, browser invokes crash for whole destkop - Untiy reboots, showing loading dots...
I've noticed that swap space is only 32MB. I believe in Canonical times it was around 500MB, but I might recall badly.
Anyway, I did experiment:
Then, I've increaced swap size:
After this, uNav did not reproduce system crash. I see about ~180MB of swap used up constantly. System looks more stable, at least for now. 32MB default swap is really unrealistic on this device.
Please increase default swap size at least on small-memory devices such as BQ E5.
While the concern is understandable, increasing the swap space is not an appropriate solution, as it will greatly reduce the lifespan of the internal storage flash on these devices, due to the vastly increased number of writes that using it as swap would create.
This is I think caused by a bug in the browser, which if I understand correctly, has been improved in the current RC build. Can you test the RC channel to see if this behaves better for you?
I have installed OTA-6. I am still for bigger swap, and I don't care if it shortens life for internal memory (I could though use external SSD for swap I guess?), because it's unusable right now.
With OTA-6, and 32MB SWAP.img, browser do not longer crash Unity - browser itself just WSOD's. I have opened https://www.ermitazas.lt/top-meniu/kontaktai/parduotuves/ and kept scrolling down, to load multiple google maps widgets (showing store locations), until it basically crashes (white page).
uNav still crashes whole Unity desktop after some scrolling though.
After increasing swap to 1GB, I see no such problems, phone is perfectly usable.