[4.1.0.24][Xperia 10 II] Unknown memory level reported by MCE

REPRODUCIBILITY: always
OS VERSION: 4.1.0.24
HARDWARE: Xperia 10 II
UI LANGUAGE: cz
REGRESSION: no (on this device)

DESCRIPTION:

I am using memory level reported by MCE daemon for controlling application caches to avoid attention low-memory-killer. But on Xperia X II, MCE always reports “unknown” level. By wiki page Mce - SailfishOS Documentation , it may happen when kernel subsystem memnotify is missing. It is correct, device /dev/memnotify is not present on the device (but it exists on old Jolla 1).

Would be possible to include memnotify in next release? Or kernel is provided by Sony and it is out of Jolla control?

STEPS TO REPRODUCE:

[defaultuser@Xperia ~]$ dbus-send --system --type=method_call --print-reply --dest=com.nokia.mce /com/nokia/mce/request  com.nokia.mce.request.get_memory_level
method return time=1623344738.268430 sender=:1.1 -> destination=:1.189 serial=423 reply_serial=2
   string "unknown"

[defaultuser@Xperia ~]$ ls -alh /dev/memnotify
ls: /dev/memnotify: No such file or directory

EXPECTED RESULT:

on Jolla 1:

[nemo@Sailfish ~]$ dbus-send --system --type=method_call --print-reply --dest=com.nokia.mce /com/nokia/mce/request  com.nokia.mce.request.get_memory_level
method return time=1623345782.652745 sender=:1.1 -> destination=:1.397 serial=3547 reply_serial=2
   string "normal"

[nemo@Sailfish ~]$ ls -alh /dev/memnotify
crw-rw-rw-    1 root     root       10,  31 Jun 10 13:09 /dev/memnotify

Sounds similar?

Memnotify kernel patch and related mce configuration files are handled at Jolla.
Apparently this was not done for Xperia 10 II → I filed an internal ticket about this.

2 Likes

It is not just the Xperia 10 II, my Xperia XA2 Plus has the same issue.

Jolla 1 and Jolla tablet are okay indeed.

The device is also not present on Xperia 10 (one) under SFOS 4.0 Koli.

The device is also not present on Gemini PDA x27 under SFOS 4.1 Kvarken.