lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Wrong values on Xperia XA2 Plus

Open balta3 opened this issue 7 years ago • 11 comments
trafficstars

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

balta3 avatar Nov 18 '18 07:11 balta3

Hmm interesting, seems maybe the format is different, which is very surprising. Can you attach examples of:

  1. cat /proc/stat
  2. cat /proc/meminfo

and paste the full outputs here? Preferably as attachments. Thank you!

almindor avatar Nov 18 '18 17:11 almindor

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

bildschirmfoto_20181118_002 bildschirmfoto_20181118_003 bildschirmfoto_20181118_004 meminfo.txt stat.txt

balta3 avatar Nov 18 '18 17:11 balta3

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.

almindor avatar Nov 18 '18 17:11 almindor

Second meminfo after a reboot, lighthouse is showing -48% now meminfo2.txt

balta3 avatar Nov 18 '18 17:11 balta3

Second stat, it is showing more cpu cores now, so perhaps really changing dynamically stat2.txt

balta3 avatar Nov 18 '18 17:11 balta3

Can you please also paste full /proc/cpuinfo ? Specifically when idle

almindor avatar Nov 18 '18 19:11 almindor

cpuinfo.txt

balta3 avatar Nov 18 '18 20:11 balta3

Hi,

Same thing with Sony Xperia XA2 ultra. I attached /proc/cpuinfo, /proc/stat and /proc/meminfo. Thanks. cpuinfo.txt meminfo.txt stat.txt

direc85 avatar Dec 09 '18 11:12 direc85

Thanks for the data, I'll try and get to this before the next release.

almindor avatar Dec 09 '18 16:12 almindor

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.

almindor avatar Dec 09 '18 16:12 almindor

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

almindor avatar Dec 09 '18 20:12 almindor