UT is ram-hungry



  • @mihael Ok then, all hail the swap ! I'll do that. But it highlights the two main seemingly inextricable problems of touch: being read-only, and depending on android...



  • @dobey "Phones/tablets do not have much (if any) swap enabled by default, because flash based storage has a limited number of writes in its lifetime, and using swap on such storage can greatly reduce the lifespan of the storage when apps get shoved into swap" Here is why I don't wan't to do it in the end. I bought a fairphone to have a low impact on the ecosystem. If I kill memory just to be able to use the phone it just means the OS is not ready, and this phone is going to sit still until this founds a fix...



  • @Emphrath I have been using it like this for more than three years now...



  • @mihael Nice ! But modifying swap settings involves remounting the filesystem in writable, right ? Did you have to reinstall everything after each new OTA or did it go smoothly ?



  • @Emphrath Everything smooth...



  • For what it is worth, with the new changes to Unity8 in the dev channel it seems UT is less ram hungry. Plus I'm getting far fewer OOM crashes than on stable. Not sure what has changed, but the OS keeps getting better.



  • @Emphrath so the dependency on Android is something we cannot change if we want to have devices out there that work.
    As you might know, so far no hardware vendor came up with any device that is on par with an Android-Hardware device regarding power consumption, robustness/stability of the drivers and in the same way performance for nice UX and effects (something you need for consumers at a certain point).

    Librem5 is not finished with their power management issues and a lot of doubt if they ever will be - In fact sending the CPUs to stop in 90% of the time of operation creates huge problems when events occur. Thats nothing that will be easy achieved.

    Pinephone we dont know yet, but could have similar issues. So, as it seems we do not have any alternative hardware at end, do you suggest to have no hardware at all is better than to have one that is backed by low-level Android?

    As for the 2nd part, being read-only in the root file system has 2 main reasons, which were reiterated in the forum, in the supergroup so many times already:

    1. UT doe not use apt-based upgrading since it should be superstable so that the delivered binaries will 100% fit together - you dont want to install one package with apt that in the next moment crashes your display manager and you cannot use your phone anymore. Its not a PC! You cannot just switch to text mode, connect a wired keyboard and fix it yourself. Mobile devices have a much higher level of demand for resilience than your desktop PC. Also, image-based upgraded can use deltas to help downloading only whats changed in an efficient way - No need to run apt and compare all the lists of stuff.

    2. Security: Unlike a normal Linux distro a mobile OS invites a lot of 3rd party apps to the system. In fact its the whole point of it: Your Debian and Ubuntu deliver 90% of what you need from their repos, but in UT its maybe 10%. So with so many 3rd party code enabled you definitely do not want to have a writable root partition and also the Android container is protected that way.

    People please stop thinking that UT is "Ubuntu on a phone", its not and it also makes no sense to demand it. If this would be so desireable, Canonical would have done it, and not scratch their head to implement this much different logic.



  • a question: do some of you that have only morph open and it uses very much memory use uadblock ? For me (BQ Aquaris 4.5) uadblock (with all lists) added a high memory footprint to morph and webapps for me. https://github.com/ubports/ubuntu-touch/issues/1265 / https://github.com/ubports/morph-browser/issues/263
    Removing the lists / turning uadblock off did not revert the effect for me, only reflashing (and then no longer use uadblock) helped.



  • @Flohack said in UT is ram-hungry:

    As for the 2nd part, being read-only in the root file system has 2 main reasons, which were reiterated in the forum, in the supergroup so many times already:

    Maybe you should post that sentence and the rest of your post as a separate topic "Why Ubuntu Touch isn't like your Ubuntu on PC" 😉



  • @Flohack you answer is very interesting but is not what @Emphrath asked imo: the topic was why does he have high RAM usage on his phone. Is Android layer really the answer to that question?

    I personally also have a FP2 with UT running devel and free -h is currently answering total: 1.8G, used: 1,4G. I have many applications open and the phone is running smoothly so I never had the feeling that RAM usage is problematic and only have a few Unity crashes. Could @Emphrath problem be installation specific?



  • @Fla no the Android layer is not the reason, this is very little RAM usage. The problem is that unity8 was never optimized for low-memory devices without swap: It comes from a desktop world, and with it a lot of services that just like to spend RAM.

    Unfortunately the core team has no resources to tackle those issues with unity8 right now, and the Yunit project, which wanted to fork and maintain unity8, has silently died away. So currently we can only be patient with that situation.


Log in to reply