sonyxperiadev / device-sony-lena

10 stars 12 forks source link

Consider lowering LMK values to those of 10 III #24

Open JacekJagosz opened 2 years ago

JacekJagosz commented 2 years ago

Currently LMK values are only used by SFOS, as Android is no longer using them. A lot of users noted premature closing of apps on 10 III and tried different LMK values. Turns out values from 10 II have been very well tuned and worked the best. So could it get considered to halve current values and bring them down to the values used by 10 II, or half of current ones 65536,73728,90112,131072,196608? @Thaodan could you take a look at it?

ahjolinna commented 2 years ago

is this issue resolved now after: https://github.com/sonyxperiadev/device-sony-lena/commit/95fb8b3482facbe9ae360134a47b21956db91259

JacekJagosz commented 2 years ago

Actually no. The values originally that I posted were too low, then @Thaodan changed them to those used by Sailfish OS by default previously. And on the forum a lot of people came to the conclusion those are too high. So I am asking for choosing something in the middle, which as tested by community worked the best. Like half of current values 65536,73728,90112,131072,196608 or those used by 10 II, so 92160,115200,138240,161280,206490. The current values are so high they lead to premature closing of native apps, very annoying. And with the halved values, this issue is fixed while the values are still high enough so Android apps are not killed too early, so a good balance.

Thaodan commented 2 years ago

I would suggest to do some testing on this one first and then let us change these values. I doesn't make sense to just change them to something and then revert them.

I don't have time to look at them now but first there should be a proper bug report instead of the mentioned threat. After doing so I can create an internal bug report to track this.

JacekJagosz commented 2 years ago

I did create a bug report a long time ago, it was just never noticed. So I decided to maybe create one here as well. But here is the original one: https://forum.sailfishos.org/t/12722

lkraav commented 10 months ago

What are we thinking about the default LMK values today?

I'm on a freshly flashed X10III with defaults, and don't find apps dying abnormally quickly, like it was on X10II.

SF Browser of course is some trouble, occasionally repeatedly dying until enough memory gets freed, but it seems to be fairly rare over a usage sample time of about 1 month.