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

Call for testing: OOM adjustment changes

Scheduled Pinned Locked Moved OS
23 Posts 6 Posters 3.6k Views 3 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.
    • F Offline
      fredldotme
      last edited by fredldotme 3 Aug 2020, 11:41 7 Mar 2020, 18:20

      TL;DR: Please run sudo ubports-qa install xenial_-_multiproclockup and report on applications not being killed at the wrong time.

      The OOM (Out-Of-Memory) adjustment helper is one component used to tell the kernel about which applications to rank lower and higher for killing when RAM runs out.
      This mechanism used to be implemented as a setuid program, which is slow and takes a long time for web applications and browser to succeed. It shows for example on the Xperia X when switching between applications, for example a browser window and a single-process application like System Settings.

      In this PR (https://github.com/ubports/ubuntu-app-launch/pull/16) I've implemented the privileged OOM adjustment helper as a DBus-activated service, which means it is running in the background and taking commands over DBus, being much faster at handling lots of processes.

      In case you want to help:

      • Make sure your device is on the devel channel
      • Mount a tmpfs so apt can breathe: sudo mount -t tmpfs tmpfs /var/cache/apt/archives
      • Use sudo ubports-qa install xenial_-_multiproclockup to install the necessary packages
      • Reboot
      • Test which applications get killed first by the system

      As a general rule, the topmost app should never be touched when killing due to hitting RAM limits.

      1 Reply Last reply Reply Quote 2
      • S Offline
        status_active
        last edited by 8 Mar 2020, 06:10

        Steps followed on Nexus 5 but after rebooting it gets stuck on booting logo. 😞

        F 1 Reply Last reply 8 Mar 2020, 09:16 Reply Quote 0
        • F Offline
          fredldotme @status_active
          last edited by fredldotme 3 Aug 2020, 09:29 8 Mar 2020, 09:16

          @status_active that is odd. Do you have other ubports-qa repos active as well? And do you have developer mode active? Maybe we can debug it through adb. Also, are you running the devel channel?

          S 1 Reply Last reply 8 Mar 2020, 11:38 Reply Quote 0
          • S Offline
            status_active @fredldotme
            last edited by 8 Mar 2020, 11:38

            @fredldotme No ubports-qa active.
            I'm not running devel channel, should I?
            No Developer mode active.

            Sorry,I don't know what I'm doing 😞 further instructions will be appreciated.

            F 1 Reply Last reply 8 Mar 2020, 11:43 Reply Quote 0
            • F Offline
              fredldotme @status_active
              last edited by 8 Mar 2020, 11:43

              @status_active If you want to continue helping: You can switch to the development channel via the Updates menu in the System Settings app. You will have to rerun the commands in the first post again after that.

              1 Reply Last reply Reply Quote 0
              • S Offline
                status_active
                last edited by status_active 3 Aug 2020, 12:03 8 Mar 2020, 12:01

                Ok, reflashing now.Developer Mode should be active?

                F 1 Reply Last reply 8 Mar 2020, 12:06 Reply Quote 0
                • F Offline
                  fredldotme @status_active
                  last edited by 8 Mar 2020, 12:06

                  @status_active Just in case the startup fails again, we might need something to get information from.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    status_active
                    last edited by 8 Mar 2020, 12:15

                    Oook, now it's working. March 8th update were installed too

                    F 1 Reply Last reply 8 Mar 2020, 12:17 Reply Quote 0
                    • F Offline
                      fredldotme @status_active
                      last edited by 8 Mar 2020, 12:17

                      @status_active Awesome! 🙂

                      S 1 Reply Last reply 8 Mar 2020, 12:32 Reply Quote 0
                      • S Offline
                        status_active @fredldotme
                        last edited by status_active 3 Aug 2020, 12:34 8 Mar 2020, 12:32

                        @fredldotme Now, should I open as much apps as I can and take a look at them on the Terminal using TOP?

                        F 1 Reply Last reply 8 Mar 2020, 13:33 Reply Quote 0
                        • F Offline
                          fredldotme @status_active
                          last edited by 8 Mar 2020, 13:33

                          @status_active Opening as many apps as possible is a good start. What shouldn't happen is that the topmost application gets killed before the others.

                          K 1 Reply Last reply 8 Mar 2020, 17:13 Reply Quote 0
                          • K Offline
                            kugiigi @fredldotme
                            last edited by 8 Mar 2020, 17:13

                            @fredldotme Topmost application meaning the current active or foreground app?

                            A 1 Reply Last reply 8 Mar 2020, 17:21 Reply Quote 0
                            • A Offline
                              AppLee @kugiigi
                              last edited by 8 Mar 2020, 17:21

                              @kugiigi I would say the most memory consuming app

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                jonius
                                last edited by 10 Mar 2020, 20:02

                                With this change switching between apps is much snappier. I couldn't find any regressions.

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  status_active
                                  last edited by 11 Mar 2020, 11:25

                                  I agree.No issues at all when switching between apps

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    mihael
                                    last edited by 11 Mar 2020, 12:47

                                    Can this be installed on rc channel?

                                    F 1 Reply Last reply 11 Mar 2020, 14:06 Reply Quote 0
                                    • F Offline
                                      fredldotme @mihael
                                      last edited by 11 Mar 2020, 14:06

                                      @mihael you can try but it's untested. As of now rc should roughly match what devel pprovides

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        mihael
                                        last edited by 11 Mar 2020, 14:48

                                        Is this something that in the end (after tests) will land in the image?

                                        F 1 Reply Last reply 11 Mar 2020, 14:51 Reply Quote 0
                                        • F Offline
                                          fredldotme @mihael
                                          last edited by 11 Mar 2020, 14:51

                                          @mihael hopefully

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            mihael
                                            last edited by 11 Mar 2020, 15:04

                                            And how would you describe the benefits of this chage?

                                            F 1 Reply Last reply 11 Mar 2020, 15:10 Reply Quote 0
                                            1 out of 23
                                            • First post
                                              1/23
                                              Last post