[PROBLEM] Update library fails - out of memory - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [PROBLEM] Update library fails - out of memory (/showthread.php?tid=3420) |
Update library fails - out of memory - comiconomenclaturist - 01-24-2021 hi, i've just installed moode 7.0.1 on a new 32GB sdcard on a Raspberry Pi Model B Plus Rev 1.2 (512MB) I've got an external hard drive connected and am using devmon for mounting as it's ARMv6. So I've tried updating the library within Moode, and also with the mpc update command. These both result in errors in the syslog: Code: Jan 24 22:24:10 moode kernel: [ 1799.292366] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),global_oom,task_memcg=/,task=mpd,pid=3275,uid=1001 How can I get my music updated in the library? It's about 300GB / 4000 files. RE: Update library fails - out of memory - DRONE7 - 01-25-2021 Resource issue on older Pi. You may consider updating to a Quad-core 1GB Pi.... plenty of Pi2B out there at knockdown prices and IMHO are the sweet spot when not needing wifi or bluetooth. RE: Update library fails - out of memory - TheOldPresbyope - 01-25-2021 I suppose DRONE7 is on the right track, and certainly the newer boards bring performance advantages, but I note that neither an RPi Zero W (512GB/1xARMv6A core) nor an RPi3A+ (512GB/4xARMv8A cores) run out of memory while indexing my 5875-track NAS. I do see the memory consumption rise during the indexing by watching the output from top but there's always 10s of MB free. I suppose one could play with enabling swap in Raspberry Pi OS to try to avoid the OOM but that's not a settable option within the moOde UI. It's been mentioned elsewere on the Forum but off the top of my head I can't point to the thread. Regards, Kent RE: Update library fails - out of memory - vinnn - 01-25-2021 (01-24-2021, 10:40 PM)comiconomenclaturist Wrote: hi, You won't be able to power an external USB hard drive from a Pi1's USB port. The Pi1 is simply not capable. RE: Update library fails - out of memory - comiconomenclaturist - 01-25-2021 (01-25-2021, 01:47 PM)vinnn Wrote:(01-24-2021, 10:40 PM)comiconomenclaturist Wrote: hi, Ah that's a shame, it used to work on Moode v5 and v6. maybe I should go back to one of those versions. RE: Update library fails - out of memory - TheOldPresbyope - 01-25-2021 DRONE7 said: Quote:You won't be able to power an external USB hard drive from a Pi1's USB port. The Pi1 is simply not capable. and you replied: Quote:Ah that's a shame, it used to work on Moode v5 and v6. maybe I should go back to one of those versions. This seems like a non sequitur. I expect DRONE7 is alluding is the 600ma limitation on the total current through the Pi1 USB ports. By adding the line "max_usb_current=1" to the /boot/config.txt file you can boost this total to 1.2A. This limitation has nothing to do with the particular version of moOde. If your external USB hard drive worked with a previous version of moOde then either it is self powered or it draws remarkably little current. Regards, Kent RE: Update library fails - out of memory - DRONE7 - 01-25-2021 @TheOldPresbyope Quote:DRONE7 said: Not me that was @vinnn . I wasn't aware how the usb hard-drive was powered as the op hadn't included that info when I replied. Still not confirmed if self or Pi powered but as you say shouldn't be a memory issue. RE: Update library fails - out of memory - TheOldPresbyope - 01-25-2021 (01-25-2021, 09:11 PM)DRONE7 Wrote: @TheOldPresbyope Oops. Too many browser windows open at once RE: Update library fails - out of memory - comiconomenclaturist - 01-25-2021 (01-25-2021, 01:43 PM)TheOldPresbyope Wrote: I suppose DRONE7 is on the right track, and certainly the newer boards bring performance advantages, but I note that neither an RPi Zero W (512GB/1xARMv6A core) nor an RPi3A+ (512GB/4xARMv8A cores) run out of memory while indexing my 5875-track NAS. I do see the memory consumption rise during the indexing by watching the output from top but there's always 10s of MB free. Thanks for the swap suggestion. I enabled swap as described here: https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile-size-on-rasbian/ and the library is now loaded. RE: Update library fails - out of memory - comiconomenclaturist - 01-25-2021 (01-25-2021, 08:23 PM)TheOldPresbyope Wrote: DRONE7 said: Sorry i was replying to the wrong comment. The hard drive is s Seagate bus powered drive and I have not had issues previously with scanning the library in v5/6. Anyway the swap solution seems to be working for now, so I think I'l stick with that for the time being. thanks for you help |