[SOLVED] RPi 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: [SOLVED] RPi out of memory (/showthread.php?tid=5641) |
RPi out of memory - Sunfish - 06-19-2023 Using RPi 3B+ with allo kali and allo piano 2.1 with a 4TB USB HD, running MoOde 8.3.3. The problem discribed has occurred already before using the first 64bit version of MoOde. To avoid the problem I simply used the legacy version. Last week I gave the 64bit version another try. Fresh install and after the library was scanned everything worked fine until I added some music to the HD. Now I clicked "Update library" under the M in the upper right corner. Apparently the update succeeded, but after some time (minutes) the music stopped and MoOde stopped responding. Also SSH was not working. After several reboots the same problem occurred over and over again. During boottime I was able to open a SSH session. Here it showed that at first the memory was 0.28/0.98 MB, music was playing, but the memory was filling up until 0.90/0.98 MB. Because I was not able to do anything in SSH, no output of moodeutl -l is/was possible. By means of journalctl I obtained the output of the previous bootlog. This output is way to long to fit into the max of 65535 bytes of this post therefore the lines showing the problem which appears 17 times in the logfile: Code: Jun 19 10:16:55.328673 moode kernel: [ 18422] 1000 18422 1254 15 36864 0 0 df any suggestions on the problem? regards RE: RPi out of memory - Sunfish - 06-19-2023 ETA: I just found out that the mentioned problem only occurrs when opening the MoOde UI. The memory fills up in about 10 seconds after opening the UI. RE: RPi out of memory - Tim Curtis - 06-19-2023 Out of memory situations are typically due to a memory leak bug in some component or some sort of resource size bug. 1. Does your configuration use any resources that contain a huge number of items for example a playlist or the music collection itself? 2. Are you using any options that process the MPD database for example Auto-shuffle random play? The main challenge with troubleshooting an OOM issue is trying to reproduce it. RE: RPi out of memory - Sunfish - 06-19-2023 The library contains 9,590 albums with 134,472 songs, a total of 3.82 TB. The HD holds folders for classical, pop and compilation albums The pop section (the biggest one) is subdivided into letter of alphabet, artist, albums, cd1. Each folder also has an artist.jpg, also each album has one cover.jpg. no playlist. RE: RPi out of memory - Nutul - 06-19-2023 Could it be that 10K albums eat up the memory when generating the html of the library...? Can we think of something to see if this is the issue? Maybe a NOTIFY on screen every 500 or 1000 albums, to see if it hangs somewhere... for debug, of course. RE: RPi out of memory - Tim Curtis - 06-19-2023 Try doubling the following parameters in /etc/php/7.4/fpm/php.ini Code: post_max_size from 75M to 150M Also in the Resource allocation section of MPD Config Double the Output buffer size: (128 -> 256) Disable the Input cache RE: RPi out of memory - Sunfish - 06-20-2023 Made the suggested changes. The variable max_input_vars was already set at 32768. Maybe this is the default on 64B, as I did not made any changes before. Unfortunately the minute I opened the UI, memory was filled up quickly and the system halted. I left the system hanging for about 15 minutes, but no recovery was noted. RE: RPi out of memory - Tim Curtis - 06-20-2023 Right, the input vars parameter is updated during the image build to 32K The only other change I can think of to try and see if the issue is related to the size of the collection is to copy something like half your tracks to another storage device, plug that one in and then see if the OOM condition occurs with a smaller Library. RE: RPi out of memory - Sunfish - 06-20-2023 I will try to make a HD with about 1.5GB music later this week. Will update you on this. In the meantime I found out that .mpdignore, which is working properly in the legacy version of MoOde, is omitted in the 64bit version. Maybe this is related. The section with .mpdignore contains files with unusual long entries in performer, artist etc. Will try to sort that out, time permitting. regards RE: RPi out of memory - the_bertrum - 06-20-2023 I'm using an mpdignore file with 64bit and it's fine. My mpdignore just contains a single wildcard to exclude everything in the directory though. Is yours more complex? |