UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    ZRAM and Swap?

    Scheduled Pinned Locked Moved Porting
    11 Posts 4 Posters 915 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • I Offline
        impreza233
        last edited by

        I have some questions about implementing that functions on our surnia port (I am doing this with a fellow that helps me a lot). surnia only has 1 GB of RAM, and our first builds consume a lot of RAM, with the result of lags and saturation of the phone in its functions.

        So, how we could implement that?

        1 Reply Last reply Reply Quote 0
        • KenedaK Offline
          Keneda
          last edited by Keneda

          What is surnia?!?

          EDIT : ok i found, it's Moto E 2015 4G

          https://forums.ubports.com/topic/186/problem-porting-to-moto-e-2015-4g-surnia/1?_=1598520000760

          2015-2023 : Meizu MX4 ☠️⚰️✝️
          2023-2024 : Nexus 5 ☠️⚰️✝️
          2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
          🇲🇫🇬🇧

          1 Reply Last reply Reply Quote 0
          • I Offline
            impreza233
            last edited by

            Motorola Moto E 2015 4G/LTE, aka that phone:
            alt text

            1 Reply Last reply Reply Quote 0
            • K Offline
              kugiigi
              last edited by

              Zram is being used in bq E5 which also have 1 GB of RAM. It does make the phone faster and smoother.

              I 1 Reply Last reply Reply Quote 0
              • I Offline
                impreza233 @kugiigi
                last edited by

                @kugiigi and how it could be implemented on surnia?

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  doniks @impreza233
                  last edited by

                  @impreza233 probably first kernel config https://github.com/ubports/kernel_vegetahd/blob/master/mediatek/config/krillin/autoconfig/kconfig/project#L1947 then check kernel log to see whether ut picks this up right away

                  I 1 Reply Last reply Reply Quote 1
                  • I Offline
                    impreza233 @doniks
                    last edited by

                    @doniks thanks 🙂 I will take this on account.

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      doniks @impreza233
                      last edited by

                      @impreza233 Looking forward to hear how this goes!

                      I 1 Reply Last reply Reply Quote 0
                      • I Offline
                        impreza233 @doniks
                        last edited by

                        @doniks myself and a fellow (@bartbart2003 ) have tested that on config, but it seems not working at this moment

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          doniks @impreza233
                          last edited by

                          @impreza233 said in ZRAM and Swap?:

                          @doniks myself and a fellow (@bartbart2003 ) have tested that on config, but it seems not working at this moment

                          mhm. so you did enable in the kernel config and it has rebuilt and booted successfully? Anything visible in kernel log?

                          I have never used zram before, but from quick research it looks as if it is all about creating a swap space (in compressed ram). Do you have a swap device now? Is it used (swapon -s)?

                          I 1 Reply Last reply Reply Quote 1
                          • I Offline
                            impreza233 @doniks
                            last edited by

                            @doniks it has booted successfully, but we have not seem any indication on kernel log. We will test that command.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post