[SFOS Browser] Solving the browser memory issue

So, same benchmark as before:

  • Xperia 10II, build 4.5.0.19
  • Using the 4G to access internet (in case that has some influence).
  • Browser has 0 active tabs.
  • Browser is still default config, no change in the about:config.
  • Browsing: March 2023 (version 1.77)

First test was following @Seven.of.nine tip on another thread:

The scenario:

  • I opened DeadBeef Silica
  • Played one song for a few seconds
  • Opened the browser

Spoiler alert, did not work. The browser crashed with the music app with it:

Mai 15 20:19:37 Xperia10II-DualSIM kernel: lowmemorykiller: Killing 'deadbeef-main' (27362), adj 100,
                                              to free 69368kB on behalf of 'VideoDecMsgThre' (28661) because
                                              cache 560400kB is below limit 560800kB for oom_score_adj 58
                                              Free memory is 309744kB above reserved.
                                              Free CMA is 16016kB
                                              Total reserve is 18680kB
                                              Total free pages is 28216kB
                                              Total file cache is 605596kB
                                              Slab Reclaimable is 116408kB
                                              Slab UnReclaimable is 452048kB
                                              Total Slab is 568456kB
                                              GFP mask is 0x14280c2
                                              Indirect Reclaimable is 376kB
                                              Free Swap 316520kB
                                              queue len is 1 of max 1 reason:0x2 margin:-1788
Mai 15 20:19:37 Xperia10II-DualSIM kernel: lowmemorykiller: Killing 'id.ext.services' (25665), adj 100,
                                              to free 55600kB on behalf of 'HwBinder:3134_4' (6053) because
                                              cache 559432kB is below limit 560800kB for oom_score_adj 58
                                              Free memory is 311768kB above reserved.
                                              Free CMA is 23744kB
                                              Total reserve is 18680kB
                                              Total free pages is 37372kB
                                              Total file cache is 605008kB
                                              Slab Reclaimable is 116208kB
                                              Slab UnReclaimable is 452048kB
                                              Total Slab is 568256kB
                                              GFP mask is 0x14280c2
                                              Indirect Reclaimable is 376kB
                                              Free Swap 316444kB
                                              queue len is 1 of max 1 reason:0x2 margin:-1263
Mai 15 20:19:37 Xperia10II-DualSIM kernel: oom_reaper: reaped process 27362 (deadbeef-main), now anon-rss:0kB, file-rss:268kB, shmem-rss:272kB
Mai 15 20:19:37 Xperia10II-DualSIM kernel: oom_reaper: reaped process 25665 (id.ext.services), now anon-rss:0kB, file-rss:0kB, shmem-rss:112kB
Mai 15 20:19:38 Xperia10II-DualSIM booster-generic[5952]: *** signal=17 pid=5952
Mai 15 20:19:38 Xperia10II-DualSIM /usr/libexec/mapplauncherd/booster-generic[5952]: warning: boosted process (pid=27362) signal(Killed)
Mai 15 20:19:38 Xperia10II-DualSIM /usr/libexec/mapplauncherd/booster-generic[5952]: warning: Daemon: sending exit(1) to invoker(28411)
Mai 15 20:19:38 Xperia10II-DualSIM invoker[28411]: warning: application (pid=-1) exit(1) signal(0)
Mai 15 20:19:38 Xperia10II-DualSIM kernel: BUG: Bad rss-counter state mm:ffffffc0c061b800 idx:4 val:3054
Mai 15 20:19:38 Xperia10II-DualSIM lipstick[6159]: [D] onDestruction:268 - coverActionIndicators destroyed deadbeef-silica.desktop
Mai 15 20:19:38 Xperia10II-DualSIM dbus-daemon[1725]: [system] Rejected send message, 2 matched rules; type="error", sender=":1.61" (uid=100000 pid=6159 comm="/usr/bin/lipstick -plugin evdevtouch -plugin evdev" label="u:r:kernel:s0") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply="0" destination=":1.3" (uid=0 pid=2668 comm="/usr/sbin/ohmd --no-daemon --mlock=none" label="u:r:kernel:s0")
Mai 15 20:19:38 Xperia10II-DualSIM dbus-daemon[1725]: dbus-daemon[1725]: [system] Rejected send message, 2 matched rules; type="error", sender=":1.61" (uid=100000 pid=6159 comm="/usr/bin/lipstick -plugin evdevtouch -plugin evdev" label="u:r:kernel:s0") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.UnknownMethod" requested_reply="0" destination=":1.3" (uid=0 pid=2668 comm="/usr/sbin/ohmd --no-daemon --mlock=none" label="u:r:kernel:s0")
Mai 15 20:19:38 Xperia10II-DualSIM kernel: lowmemorykiller: Killing 'sailfish-browse' (25220), adj 0,
                                              to free 377880kB on behalf of 'HwBinder:3134_4' (6053) because
                                              cache 468620kB is below limit 468640kB for oom_score_adj 0
                                              Free memory is 315268kB above reserved.
                                              Free CMA is 32312kB
                                              Total reserve is 18680kB
                                              Total free pages is 54304kB
                                              Total file cache is 512572kB
                                              Slab Reclaimable is 111104kB
                                              Slab UnReclaimable is 453372kB
                                              Total Slab is 564476kB
                                              GFP mask is 0x14280c2
                                              Indirect Reclaimable is 1358kB
                                              Free Swap 311852kB
                                              queue len is 1 of max 1 reason:0x2 margin:492
Mai 15 20:19:38 Xperia10II-DualSIM kernel: binder: 25220:28691 ioctl c0306201 70ed3e94a0 returned -14
Mai 15 20:19:38 Xperia10II-DualSIM kernel: oom_reaper: reaped process 25220 (sailfish-browse), now anon-rss:0kB, file-rss:77288kB, shmem-rss:340kB