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

    lowmemorykiller on miatoll 24.04-2

    Scheduled Pinned Locked Moved Xiaomi Redmi Note 9 Pro/Pro Max/9S & Poco M2 Pro
    6 Posts 2 Posters 1.1k 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.
    • B Offline
      Bouleetbil
      last edited by

      Hello
      I've got a lot of crash since updated to 24.04

      [ 1004.282843] lowmemorykiller: Killing 'saliksik-app' (5476) (tgid 5476), adj 200,
                     to free 186396kB on behalf of 'kswapd0' (146) because
                     cache 1629624kB is below limit 154832kB for oom score 12
                     Free memory is -10084kB above reserved.
                     Free CMA is 0kB
                     Total reserve is 19248kB
                     Total free pages is 16320kB
                     Total file cache is 1646292kB
                     GFP mask is 0x14000c0
      [ 1004.324236] oom_reaper: reaped process 5476 (saliksik-app), now anon-rss:0kB, file-rss:8148kB, shmem-rss:160kB
      [ 1005.276695] lowmemorykiller: Killing 'maliit-server' (4701) (tgid 4701), adj 200,
                     to free 105000kB on behalf of 'kswapd0' (146) because
                     cache 1625404kB is below limit 154832kB for oom score 12
                     Free memory is -4952kB above reserved.
                     Free CMA is 0kB
                     Total reserve is 19248kB
                     Total free pages is 22132kB
                     Total file cache is 1639892kB
                     GFP mask is 0x14000c0
      
      [ 1007.018092] lowmemorykiller: Killing 'lomiri-push-ser' (5450) (tgid 5450), adj 200,
                     to free 203852kB on behalf of 'kswapd0' (146) because
                     cache 1610560kB is below limit 154832kB for oom score 12
                     Free memory is -7324kB above reserved.
                     Free CMA is 0kB
                     Total reserve is 19248kB
                     Total free pages is 17776kB
                     Total file cache is 1623908kB
                     GFP mask is 0x14000c0
      ......
      [ 1014.065077] lowmemorykiller: Killing 'telegram' (5563) (tgid 5563), adj 200,
                     to free 188032kB on behalf of 'kswapd0' (146) because
                     cache 1623384kB is below limit 154832kB for oom score 12
                     Free memory is -6236kB above reserved.
                     Free CMA is 0kB
                     Total reserve is 19248kB
                     Total free pages is 20508kB
                     Total file cache is 1644960kB
                     GFP mask is 0x14000c0
      [ 1014.101476] oom_reaper: reaped process 5563 (telegram), now anon-rss:0kB, file-rss:2180kB, shmem-rss:160kB
      [ 1014.101710] lowmemorykiller: Killing 'maliit-server' (5523) (tgid 5523), adj 200,
                     to free 94752kB on behalf of 'kswapd0' (146) because
                     cache 1623928kB is below limit 154832kB for oom score 12
                     Free memory is 29336kB above reserved.
                     Free CMA is 32kB
                     Total reserve is 19248kB
                     Total free pages is 55840kB
                     Total file cache is 1645632kB
                     GFP mask is 0x14000c0
      
      

      My configuration (should be default)

      phablet@ubuntu-phablet:~$ sysctl vm.overcommit_memory
      vm.overcommit_memory = 1
      phablet@ubuntu-phablet:~$ sudo cat /proc/sys/vm/overcommit_memory
      1
      phablet@ubuntu-phablet:~$ sudo cat /sys/module/lowmemorykiller/parameters/adj
      0,1,6,12
      phablet@ubuntu-phablet:~$ sudo cat  /sys/module/lowmemorykiller/parameters/minfree
      18432,23040,27648,38708,120640,144768
      phablet@ubuntu-phablet:~$ LANG=C free -wh
                     total        used        free      shared     buffers       cache   available
      Mem:           3,5Gi       1,8Gi        30Mi        14Mi        48Mi       1,6Gi       1,7Gi
      Swap:          2,0Gi       1,5Mi       2,0Gi
      
      

      I don't have this problem with my pixel 3a 24.04-2
      Before updated my redmi 9s I don't have any problem with ubuntu touch. Someone have the same problem ?

      FP5 24.04 RC daily use with pinetime
      Pixel 3a 24.04-2
      Redmi 9S 24.04-2
      PinePhonePro Mobian/Postmarketos

      Vlad NirkyV 1 Reply Last reply Reply Quote 0
      • Vlad NirkyV Offline
        Vlad Nirky @Bouleetbil
        last edited by Keneda

        @Bouleetbil
        I 've got some but seems to be recent on my Xiaomi Redmi Note 9 Pro running 24.04-1.0 RC2 and it's app in waydroid i guess

        phablet@ubuntu-phablet:~$ dmesg | grep lowmemorykiller | awk -F ] '{"cat /proc/uptime | cut -d \" \" -f 1" | getline st;a=substr( $1,2, length($1) - 1);print strftime("%F %H:%M:%S %Z",systime()-st+a)" -> "$0}'
        2025-09-20 22:41:36 CEST -> [96372.088152] lowmemorykiller: Killing 'oltys.seedvault' (18838) (tgid 18838), adj 999,
        2025-09-20 22:41:36 CEST -> [96372.212344] lowmemorykiller: Killing 'main' (19606) (tgid 19606), adj 999,
        2025-09-20 22:41:37 CEST -> [96373.429348] lowmemorykiller: Killing '.komoot.android' (18707) (tgid 18707), adj 999,
        2025-09-20 22:41:47 CEST -> [96383.434015] lowmemorykiller: Killing '.mobilefor_4411' (19507) (tgid 19507), adj 999,
        2025-09-20 22:41:57 CEST -> [96393.234194] lowmemorykiller: Killing 'droid.deskclock' (18406) (tgid 18406), adj 999,
        2025-09-20 22:42:45 CEST -> [96441.196184] lowmemorykiller: Killing 'd.process.acore' (18548) (tgid 18548), adj 999,
        2025-09-20 22:42:45 CEST -> [96441.226105] lowmemorykiller: Killing 'ndroid.contacts' (19649) (tgid 19649), adj 999,
        

        Maybe could you try to clear cache with UT tweak tools

        B 2 Replies Last reply Reply Quote 0
        • B Offline
          Bouleetbil @Vlad Nirky
          last edited by

          @Vlad-Nirky
          I've already clear cache and that don't help. Waydroid seems never kill and more stable that native applications.
          Perhaps lowmemorykiller is too much aggressive

          FP5 24.04 RC daily use with pinetime
          Pixel 3a 24.04-2
          Redmi 9S 24.04-2
          PinePhonePro Mobian/Postmarketos

          1 Reply Last reply Reply Quote 0
          • B Offline
            Bouleetbil @Vlad Nirky
            last edited by

            @Vlad-Nirky
            Before crash I've some apparmor="DENIED"

            [   95.849652] aw8624_interrupt_clear enter
            [   95.850689] aw8624_interrupt_clear enter
            [   95.862191] aw8624_vibrator_timer_func enter
            [   96.219726] kauditd_printk_skb: 16 callbacks suppressed
            [   96.219734] audit: type=1400 audit(1758448270.789:307): apparmor="DENIED" operation="open" profile="myutforum.josele13_myutforum_1.3" name="/sys/devices/system/cpu/present" pid=5096 comm="webapp-containe" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
            [   96.220152] audit: type=1400 audit(1758448270.789:308): apparmor="DENIED" operation="open" profile="myutforum.josele13_myutforum_1.3" name="/sys/devices/system/cpu/cpu0/cpu_capacity" pid=5096 comm="webapp-containe" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
            [   96.220392] audit: type=1400 audit(1758448270.789:309): apparmor="DENIED" operation="open" profile="myutforum.josele13_myutforum_1.3" name="/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq" pid=5096 comm="webapp-containe" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
            [   96.415512] audit: type=1400 audit(1758448270.989:310): apparmor="DENIED" operation="open" profile="myutforum.josele13_myutforum_1.3" name="/sys/module/apparmor/parameters/enabled" pid=5096 comm="webapp-containe" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
            [   96.415811] audit: type=1400 audit(1758448270.989:311): apparmor="DENIED" operation="open" profile="myutforum.josele13_myutforum_1.3" name="/sys/module/apparmor/parameters/enabled" pid=5096 comm="webapp-containe" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
            [   96.416121] audit: type=1400 audit(1758448270.989:312): apparmor="DENIED" operation="open" profile="myutforum.josele13_myutforum_1.3" name="/sys/module/apparmor/parameters/enabled" pid=5096 comm="webapp-containe" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
            [   96.700284] audit: type=1400 audit(1758448271.269:313): apparmor="DENIED" operation="open" profile="myutforum.josele13_myutforum_1.3" name="/etc/ubuntu-touch-session.d/android.conf" pid=5096 comm=52504320546872656164 requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
            [   96.729051] audit: type=1400 audit(1758448271.299:314): apparmor="DENIED" operation="open" profile="myutforum.josele13_myutforum_1.3" name="/proc/5096/loginuid" pid=5096 comm="webapp-containe" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011
            [   97.108067] audit: type=1400 audit(1758448271.679:315): apparmor="DENIED" operation="open" profile="myutforum.josele13_myutforum_1.3" name="/sys/devices/system/cpu/cpu0/regs/identification/midr_el1" pid=5096 comm="webapp-containe" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
            [   97.112877] audit: type=1400 audit(1758448271.679:316): apparmor="DENIED" operation="open" profile="myutforum.josele13_myutforum_1.3" name="/proc/sys/fs/inotify/max_user_watches" pid=5096 comm="ThreadPoolForeg" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
            [  111.107852] rmt_storage:INFO:rmt_storage_rw_iovec_cb: Write iovec request (req_h 0xf wr_count 8) received for /boot/modem_fs1
            [  111.109749] rmt_storage:INFO:rmt_storage_client_thread: Calling Write [offset=0, size=2097152, req_h 0xf, wr_count 8] for /boot/modem_fs1!
            [  111.208453] rmt_storage:INFO:rmt_storage_client_thread: Done Write (bytes = 2097152, req_h 0xf, wr_count 8) for /boot/modem_fs1!
            [  162.462644] aw8624_interrupt_clear enter
            [  162.463908] aw8624_interrupt_clear enter
            [  162.468267] aw8624_interrupt_clear enter
            [  162.469267] aw8624_interrupt_clear enter
            [  162.480232] aw8624_vibrator_timer_func enter
            [  164.144064] lowmemorykiller: Killing 'lomiri-push-ser' (4976) (tgid 4976), adj 200,
                           to free 261468kB on behalf of 'kswapd0' (147) because
                           cache 1278744kB is below limit 154832kB for oom score 12
                           Free memory is -9504kB above reserved.
                           Free CMA is 0kB
                           Total reserve is 19248kB
                           Total free pages is 15348kB
                           Total file cache is 1298440kB
                           GFP mask is 0x14000c0
            [  164.167624] lowmemorykiller: Killing 'webapp-containe' (5096) (tgid 5096), adj 200,
                           to free 190280kB on behalf of 'kswapd0' (147) because
                           cache 1278016kB is below limit 154832kB for oom score 12
                           Free memory is 222056kB above reserved.
                           Free CMA is 668kB
                           Total reserve is 19248kB
                           Total free pages is 291316kB
                           Total file cache is 1297692kB
                           GFP mask is 0x14000c0
            [  164.191854] oom_reaper: reaped process 4976 (lomiri-push-ser), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
            [  164.226120] oom_reaper: reaped process 5096 (webapp-containe), now anon-rss:0kB, file-rss:10540kB, shmem-rss:748kB
            [  166.845681] aw8624_interrupt_clear enter
            [  166.848735] aw8624_interrupt_clear enter
            [  166.859490] aw8624_interrupt_clear enter
            [  166.860023] aw8624_vibrator_timer_func enter
            
            

            FP5 24.04 RC daily use with pinetime
            Pixel 3a 24.04-2
            Redmi 9S 24.04-2
            PinePhonePro Mobian/Postmarketos

            1 Reply Last reply Reply Quote 0
            • B Offline
              Bouleetbil
              last edited by

              Fixed with

              sudo mount -o remount,rw /
              sudo nano /opt/halium-overlay/usr/libexec/lxc-android-config/device-hacks 
              

              Add

              # disable lmk
              echo "0,0,0,0,0,0" | tee /sys/module/lowmemorykiller/parameters/minfree
              echo 0 | tee /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk
              

              zram0 not created :

              phablet@ubuntu-phablet:~$ ls /dev/block/zram0 -al
              ls: cannot access '/dev/block/zram0': No such file or directory
              

              Add 99-zram.rules :

              phablet@ubuntu-phablet:~$ cat /etc/udev/rules.d/99-zram.rules
              ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="zram[0-9]", SYMLINK+="block/%k"
              

              reboot

              phablet@ubuntu-phablet:~$ sudo ls /dev/block/zram0 -al
              lrwxrwxrwx 1 root root 8 sept. 30 15:28 /dev/block/zram0 -> ../zram0
              

              After this fix I don't have any lowmemorykiller. And I don't lost any notification.
              Thanks to @Eric-H

              FP5 24.04 RC daily use with pinetime
              Pixel 3a 24.04-2
              Redmi 9S 24.04-2
              PinePhonePro Mobian/Postmarketos

              Vlad NirkyV 1 Reply Last reply Reply Quote 0
              • Vlad NirkyV Offline
                Vlad Nirky @Bouleetbil
                last edited by

                @Bouleetbil
                Very impressive...
                I followed your exchanges on the French Telegram thread.
                I hope you remember where you parked your flying saucers, guys. 😉

                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