What causes the long delays which switching or starting apps?
I was watching top via an SSH session.

When I select a new app there is a long delay before the new app shows up on the screen.

I had expected to see something like high CPU usage, or perhaps high io wait while the app is loading.

But I see neither.

What is going on during the long app startup times?

Do other people experience this behavior?
Assuming you are on Mobian (I am). I see the same behaviour.

My assumptions would have been same, so that's interesting what you observed via top.

On Android for instance, lots of stuff is actually kept in memory for fast switching / better user experience.
I've noticed this as well. (It's hard not to!) My assumption has been that it's due to the low speed of eMMC and SD cards causing long load times.
Indeed, I am running Mobian off of SD card.  Probably good to get used to that, then when I switch to eMMC later it should be noticeable improvement.  Big Grin
(07-06-2021, 05:29 PM)TRS-80 Wrote: Indeed, I am running Mobian off of SD card.  Probably good to get used to that, then when I switch to eMMC later it should be noticeable improvement.  Big Grin

It does run a bit faster off of the eMMC but programs still take their time loading.
Very interesting that the I/O wait time is not reflected in iowait in the CPU stats.
One would think the CPU would be busy somewhere.

root@mobian:~# dd if=/dev/mmcblk2 of=/dev/null bs=8M count=100
100+0 records in
100+0 records out
838860800 bytes (839 MB, 800 MiB) copied, 16.0952 s, 52.1 MB/s

52 MB/s seems pretty fast. (though it is sequential and not random)
My understanding is that a lot of the delay is due to the GTK+ interface of Mobian apps not being accelerated on the PinePhone's graphics hardware.
Some Xorg WMs are just slow. I've noticed fluxbox can take it's time opening new windows while FVWM does not. There's probably something similar going on with Phosh. Then there's loading all the SOs and whatnot that might not be cached.
I highly doubt GPU acceleration has much to do with it. It might even make things worse by taking memory that could be used for disk cache and using it for compositing instead, but I don't know enough about the pinephone hardware to really know for sure.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Some apps don't have refresh button lsitongia 3 122 09-22-2021, 08:21 AM
Last Post: wibble
Thumbs Up Recommend Apps unrealb2 4 161 09-21-2021, 01:00 PM
Last Post: bcnaz
  Wiki Apps ragreenburg 2 163 09-01-2021, 10:49 AM
Last Post: ragreenburg
  Pathway to for Apps to Unstable and Stable Repositories biketool 1 525 06-28-2021, 10:20 AM
Last Post: kqlnut
  Anbox apps listed in the launch screen mark1250 1 787 03-17-2021, 02:23 PM
Last Post: tvall
  Make King's Cross (and apps in general) fullscreen 3x5co 5 1,202 02-04-2021, 04:37 AM
Last Post: dukla2000
  Apps Csanderson0313 3 1,496 11-28-2020, 12:08 PM
Last Post: wibble
  Software apps not supported HLing 1 1,194 09-19-2020, 04:24 AM
Last Post: dukla2000
  32 bit apps supported? pcdoodle 6 3,150 08-20-2020, 04:32 PM
Last Post: pcdoodle
  anyone notice that scale-to-fit works on some apps, but not others? arturo2bodegas 1 1,336 08-01-2020, 10:58 AM
Last Post: bcnaz

Forum Jump:

Users browsing this thread: 1 Guest(s)