Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Update library fails - out of memory
#1
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
Jan 24 22:24:10 moode kernel: [ 1799.292495] Out of memory: Killed process 3275 (mpd) total-vm:493740kB, anon-rss:279640kB, file-rss:0kB, shmem-rss:0kB, UID:1001 pgtables:382kB oom_score_adj:0
Jan 24 22:24:10 moode kernel: [ 1799.557663] oom_reaper: reaped process 3275 (mpd), now anon-rss:16kB, file-rss:0kB, shmem-rss:0kB
Jan 24 22:24:10 moode systemd[1]: mpd.service: Main process exited, code=killed, status=9/KILL
Jan 24 22:24:10 moode systemd[1]: mpd.service: Failed with result 'signal'.

How can I get my music updated in the library? It's about 300GB / 4000 files.
Reply
#2
Resource issue on older Pi. Sad
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.
----------
bob
Reply
#3
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
Reply
#4
(01-24-2021, 10:40 PM)comiconomenclaturist Wrote: 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
Jan 24 22:24:10 moode kernel: [ 1799.292495] Out of memory: Killed process 3275 (mpd) total-vm:493740kB, anon-rss:279640kB, file-rss:0kB, shmem-rss:0kB, UID:1001 pgtables:382kB oom_score_adj:0
Jan 24 22:24:10 moode kernel: [ 1799.557663] oom_reaper: reaped process 3275 (mpd), now anon-rss:16kB, file-rss:0kB, shmem-rss:0kB
Jan 24 22:24:10 moode systemd[1]: mpd.service: Main process exited, code=killed, status=9/KILL
Jan 24 22:24:10 moode systemd[1]: mpd.service: Failed with result 'signal'.

How can I get my music updated in the library? It's about 300GB / 4000 files.

You won't be able to power an external USB hard drive from a Pi1's USB port. The Pi1 is simply not capable.
Reply
#5
(01-25-2021, 01:47 PM)vinnn Wrote:
(01-24-2021, 10:40 PM)comiconomenclaturist Wrote: 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
Jan 24 22:24:10 moode kernel: [ 1799.292495] Out of memory: Killed process 3275 (mpd) total-vm:493740kB, anon-rss:279640kB, file-rss:0kB, shmem-rss:0kB, UID:1001 pgtables:382kB oom_score_adj:0
Jan 24 22:24:10 moode kernel: [ 1799.557663] oom_reaper: reaped process 3275 (mpd), now anon-rss:16kB, file-rss:0kB, shmem-rss:0kB
Jan 24 22:24:10 moode systemd[1]: mpd.service: Main process exited, code=killed, status=9/KILL
Jan 24 22:24:10 moode systemd[1]: mpd.service: Failed with result 'signal'.

How can I get my music updated in the library? It's about 300GB / 4000 files.

You won't be able to power an external USB hard drive from a Pi1's USB port. The Pi1 is simply not capable.

Ah that's a shame, it used to work on Moode v5 and v6. maybe I should go back to one of those versions.
Reply
#6
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
Reply
#7
@TheOldPresbyope 


Quote:DRONE7 said:

Not me Wink  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.
----------
bob
Reply
#8
(01-25-2021, 09:11 PM)DRONE7 Wrote: @TheOldPresbyope 


Quote:DRONE7 said:

Not me Wink  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.

Oops. Too many browser windows open at once Blush
Reply
#9
(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.

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

Thanks for the swap suggestion. I enabled swap as described here: https://www.bitpi.co/2015/02/11/how-to-c...n-rasbian/ and the library is now loaded.
Reply
#10
(01-25-2021, 08:23 PM)TheOldPresbyope Wrote: 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

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
Reply


Forum Jump: