lighthouse
lighthouse copied to clipboard
Wrong values on Xperia XA2 Plus
Using the Xperia XA2 Plus some values are wrong:
- The CPU Usage is always 0%
- it shows no CPU cores
- i have -20% memory at the moment, 4370 MiB free out of 3644 MiB
/proc/cpuinfo does show 8 cores and the memory seems ok, too:
cat /proc/meminfo MemTotal: 3730976 kB MemFree: 1962044 kB MemAvailable: 2436460 kB
Hmm interesting, seems maybe the format is different, which is very surprising. Can you attach examples of:
cat /proc/statcat /proc/meminfo
and paste the full outputs here? Preferably as attachments. Thank you!
Attached are the output and screenshots of lighthouse at about the same time (a few apps there open so there is a small positive RAM value this time :D
Interesting to /proc/stat seems to show only 2 cores instead of 8, but it might be due to it not being busy. Maybe on the XA cores get disabled completely.
Meminfo seems ok, I'll push these values in the emulator and see if I get the same bugged output.
Thanks for taking the time to gather the info.
Second meminfo after a reboot, lighthouse is showing -48% now meminfo2.txt
Second stat, it is showing more cpu cores now, so perhaps really changing dynamically stat2.txt
Can you please also paste full /proc/cpuinfo ? Specifically when idle
Hi,
Same thing with Sony Xperia XA2 ultra. I attached /proc/cpuinfo, /proc/stat and /proc/meminfo. Thanks. cpuinfo.txt meminfo.txt stat.txt
Thanks for the data, I'll try and get to this before the next release.
Seems this is an android/arm specific issue on chips that support putting cores to sleep fully. Mentioned in on stack overflow here
I need to find out how it behaves exactly, it'd be trivial to just 0 out on missing lines but my understanding is that e.g. cpu4 that went "missing" might next time be "cpu2" that got woken up. In other words, the cores don't correspond to the #s at the end of the "cpu" in the stat lines.
That will make things a bit more tricky, because I need to diff the "old" ticks on a core to the new reading and if the lines don't correspond things will go haywire.
I've made a pre-release version which should contain a fix for this problem here.
Can you please try and install that rpm and see if it works? The sha256 is d7a9ca28219c075501f921525cd9ed13346d93b860f03c3830d76090659c6375.
I've also added a signature proving the binary comes from me in the pre-release