03-19-2021, 08:39 PM
(03-19-2021, 11:52 AM)Tim Curtis Wrote:(03-19-2021, 11:39 AM)popej Wrote:(03-19-2021, 11:06 AM)Tim Curtis Wrote: I wouldn't be surprised if compiling something like upmpdcli on a single core Pi takes like 2 or 3 hours or maybe even longer :-0
I gave up after 80 minutes
The problem is that update forces 4 tasks for compilation with "make -j4". RPi Zero shows like load average above 10, full memory in use and kswapd0 as a top CPU consumer. Would be nice to configure update script for low memory or single CPU.
It would prolly be same on a single core w/o -J4. I remember when we had to compile librespot on an ARM6 and it took like 4 or 5 hours.
The -j4 option cuts compile time roughly in half on multi-core ARM's and so the decision to use it in the in-place update for the complex upmpdcli and libupnpp-bindings was made to benefit the ARM7 population which I'm guessing is the platform the majority of moOde users are running.
I suppose for single-core Pi's the recommendation would be to use the image instead of the in-place update. I'll update the instructions.
FYI:
Compiling on the 512MB Raspberry Pi 3A+ takes a long time too even though it has 4 ARM7 cores. Free memory drops so much the scheduler has trouble switching processes. Trying to monitor progress with 'moodeutl -t' or even asking for 'free' is agonizingly slow, so I don't.
Result: 7h24m to complete the update, almost all of which consumed during the two compilations.
Code:
pi@710from701:~ $ cat /var/local/www/update-r701.log
20210319 090343 updater: Begin 2021-03-15 update for moOde 7.0.1 2020-12-23
20210319 090343 updater: ** Version check
20210319 090344 updater: ** Step 1-9: Update SQL tables
20210319 090350 updater: ** Step 3-9: Update binaries
20210319 090350 updater: ** Upd 1-5: Install MPD 0.22.6
20210319 090350 updater: ** Upd 2-5: Install miniDLNA 1.3.0
20210319 090350 updater: ** Upd 3-5: Install librespot 0.1.6
20210319 090350 updater: ** Upd 4-5: Install ashuffle 3.11.1
20210319 090350 updater: ** Upd 5-5: Install moodeutl 1.5.2
20210319 090350 updater: ** Step 4-9: Install CamillaDSP and CamillaGUI...
20210319 090350 updater: ** Upd 1-3: Install ALSA cdsp module (commit e941420)
20210319 090351 updater: ** Upd 2-3: Install CamillaDSP 0.5.0-beta4
20210319 090351 updater: ** Upd 3-3: Install CamillaGUI 0.6.0
20210319 090632 updater: ** Step 5-9: Install packages...
20210319 090632 updater: ** Pkg 1-4: SoX utils
20210319 090653 updater: ** Pkg 2-4: FLAC utils
20210319 090702 updater: ** Pkg 3-4: php-yaml
20210319 090711 updater: ** Pkg 4-4: nmap
20210319 090727 updater: ** Step 6-9: Install Allo Boss 2 OLED support...
20210319 090727 updater: ** Pkg 1-2: python-smbus
20210319 090743 updater: ** Pkg 2-2: python-pil
20210319 090756 updater: ** Scr 1-1: Python OLED driver script
20210319 090756 updater: ** Sys 1-1: Systemd unit
20210319 090757 updater: ** Step 7-9: Build upmpdcli and libupnpp-bindings...
20210319 090757 updater: ** Src 1-2: Compile upmpdcli 1.5.8
20210319 115444 updater: ** Src 2-2: Compile libupnpp-bindings-0.20.1
20210319 162717 updater: ** Del 1-1: Delete legacy UPnP sample progs
20210319 162717 updater: ** Step 8-9: Update moOde sources and configs
20210319 162718 updater: ** Step 9-9: Sync changes to disk
20210319 162720 updater: End 2021-03-15 update for moOde 7.0.1 2020-12-23
Regards,
Kent