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

    oneplus6T How to create Swap?

    Scheduled Pinned Locked Moved Oneplus 6/6T
    10 Posts 5 Posters 1.4k 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.
      • L Offline
        liam
        last edited by

        when use command free -h show the memory , it show Swap value is 0, how I can create the Swap and use it? anyone have the detail step? thanks!

        b63e9a5f-9a22-4b73-9c6d-c160380241a8-image.png

        MoemM 1 Reply Last reply Reply Quote 0
        • MoemM Offline
          Moem @liam
          last edited by

          @liam What is your end goal? Why are you trying to create a swap?

          Is currently using an Op5t
          Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            liam @Moem
            last edited by

            @Moem increate the memory for run the script, is that possible? or some limit in ubuntu touch?

            MoemM 1 Reply Last reply Reply Quote 0
            • MoemM Offline
              Moem @liam
              last edited by arubislander

              @liam Sorry, I wouldn't know. I just use my phone as a phone and I've never experienced the need to create a swap.

              Is currently using an Op5t
              Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

              1 Reply Last reply Reply Quote 0
              • MrT10001M Offline
                MrT10001
                last edited by

                Check this post out. Altering partitions in UT has a high chance of bricking the device after an update.

                Xiaomi Redmi Note 7.... And more...
                I have too many devices...

                L 1 Reply Last reply Reply Quote 0
                • L Offline
                  liam @MrT10001
                  last edited by

                  @MrT10001 thanks your response, I know how to reset the partitions, but what I want that create the swap and increase the memory, I am not sure if can work in UT.

                  arubislanderA ikozI 2 Replies Last reply Reply Quote 0
                  • arubislanderA Offline
                    arubislander @liam
                    last edited by

                    @liam Our question is more: what are you hoping you can do with the 'increased' memory ( swap does not actually increase the memory available either, but that is another topic)

                    πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                    Happily running Ubuntu Touch
                    JingPad (24.04-1.x daily)
                    OnePlus Nord N10 5G (24.04-2.x daily)
                    PinePhone OG (20.04)
                    Meizu Pro 5 (16.04 DEV)

                    1 Reply Last reply Reply Quote 0
                    • ikozI Offline
                      ikoz @liam
                      last edited by

                      @liam wouldn't a swapfile in the userdate partition work?

                      May the source be with you

                      arubislanderA L 2 Replies Last reply Reply Quote 0
                      • arubislanderA Offline
                        arubislander @ikoz
                        last edited by

                        @ikoz It would, but it is still not clear what the OP thinks they will be able to accomplish with it.

                        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                        Happily running Ubuntu Touch
                        JingPad (24.04-1.x daily)
                        OnePlus Nord N10 5G (24.04-2.x daily)
                        PinePhone OG (20.04)
                        Meizu Pro 5 (16.04 DEV)

                        1 Reply Last reply Reply Quote 0
                        • L Offline
                          liam @ikoz
                          last edited by

                          @ikoz I search in internet and find below solution, but not work, even memory fully used, but swap used still is 0, I don't know why.

                          sudo fallocate -l 8G /userdata/swapfile
                          sudo chmod 600 /userdata/swapfile
                          sudo mkswap /userdata/swapfile
                          sudo swapon /userdata/swapfile
                          sudo sysctl vm.swappiness=80

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better πŸ’—

                          Register Login
                          • First post
                            Last post