PINE64
Preload - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: Preload (/showthread.php?tid=15040)



Preload - Fish - 10-06-2021

Has anyone used "preload" on the pinephone? (link: https://wiki.archlinux.org/title/Preload)
With preload the startup time of programs should be reduced, in exchange for a little bit more ram-usage. And I can imagine that it costs a little bit of battery.
I have tried it (on mobian) for a day and it seems to work. I have not done any measurements, but will compare with my 2nd pinephone soon. 

I'm curious whether other people have tried "preload", or maybe can benefit from it.


RE: Preload - Merc - 10-06-2021

I've never used it before, it seems interesting but not something I need. The heaviest application I use is Firefox and I simply have it run at boot and keep it open for as long as I'm using the phone.

Code:
cp /usr/share/applications/firefox.desktop ~/.config/autostart/

I don't know the details of Preload, perhaps it's more nuanced, but this has been enough for me.


RE: Preload - generaluser - 10-07-2021

I haven't tried it but I believe preloading is not something new. Not knocking it either. I wonder if the pinephone os rootfs can be preloaded (load to RAM) and just use the emmc/sdcard as storage writes.


RE: Preload - lacriz - 10-16-2021

(10-06-2021, 11:27 AM)Fish Wrote: Has anyone used "preload" on the pinephone? (link: https://wiki.archlinux.org/title/Preload)

I have Smile
At first I was very optimistic that this background daemon greatly reduced the start-up time of e.g. Firefox.
I tried different configurations and let it run for about 1 week. I never got it to use up more than about 220 MB of RAM. This seems a lot but I really tried to make it use up as much free RAM as possible but could not manage.

So then I did some clock-wall measurements and found that the whole thing makes no (real) difference (to me). On the other hand, the CPU load it causes every 20 seconds is a) feelable (even the Terminal lags shortly, UI more so) and hearable (!): there is a short cracking sound every 20 seconds. I could not find a configuration which does not cause this behaviour (I thought I found it but the next day the cracking went off again).

I really hope someone finds this more useful than me and shares results. I still have preload installed, but it is now disabled.

FWIW here are my measurements; all measurements are done with runs on 60% battery, after a fresh restart (done only between turning preload ON/OFF):

firefox (non -esr):
/w preload: 17-24 seconds until loading of 1 URL starts
w/o preload: 19 seconds until loading of 1 URL starts

weather:
/w preload:  5 seconds until current weather is loaded
w/o preload: 5 seconds until current weather is loaded

settings:
w/ preload: 5 seconds until settings finished 'rendering'
w/o preload: 5 seconds until settings finished 'rendering'

signal-desktop:
w/ preload:  36 seconds until the conversations list is loaded
w/o preload: 36 seconds until the conversations list is loaded

geary:
w/  preload: < 8 seconds until inbox is shown (paused the
stop watch while entering password into keyring)
w/o preload: < 8 seconds until inbox is shown (paused the
stop watch while entering password into keyring)


And here is my (final) configuration:

[model]
cycle = 20
usercorrelation = true
minsize = 2000000 -> 1000000 -> 500000 [!] -> 2000000
memtotal = -10
memfree = 50 -> 75 -> 100 [!] -> 50
memcache = 0 -> 30 [!] -> 0
doscan = true
dopredict = true
autosave = 3600 -> 600 -> 3600
mapprefix = /many/paths -> (empty) -> !/dev
exeprefix = /many/paths -> (empty) -> !/dev
processes = 30
sortstrategy = 3 -> 0


RE: Preload - Fish - 10-16-2021

Thank you, this information is really useful!


RE: Preload - TRS-80 - 10-29-2021

Signal taking even longer to load than Firefox, LOL! Why am I not surprised?