Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4406

Troubleshooting • minidlna memory leak?

$
0
0
I had minidlna and samba set up on a (n old) Pi along with a 3TB usb disk for serving music in my home. It worked great. I have no idea what version of then Raspbian, minidlna or samba were running. Because I'm a doofus, I corrupted my sdcard and had to load a recent version of Raspberry Pi OS, minidlna and samba. Now after several hours or perhaps a day, the Pi runs out of swap and of course, dies. The Pi runs headless, so I used several ssh sessions to record the demise, which I've attached below along with the particulars of my setup. Note that minidlna is at the top of the top output sorted by memory usage, and of course the load average is off the charts and the system inaccessible. Nothing else is running except normal system stuff, plus sshd.

Anyone else seen this? Configuration issue? Any other ideas?

Code:

uname -a:Linux tunes 6.1.0-rpi7-rpi-v6 #1 Raspbian 1:6.1.63-1+rpt1 (2023-11-24) armv6l GNU/Linux----------------------------------------------lshw:tunes                           description: ARMv6-compatible processor rev 7 (v6l)    product: Raspberry Pi Model B Rev 1    serial: 00000000c55db436    width: 32 bits  *-core       description: Motherboard       physical id: 0     *-cpu          description: CPU          product: cpu          physical id: 0          bus info: cpu@0          size: 700MHz          capacity: 700MHz          capabilities: half thumb fastmult vfp edsp java tls cpufreq        *-cache             description: L1 Cache             physical id: 0             size: 16KiB     *-memory          description: System memory          physical id: 1          size: 175MiBThe last top, sorted by memory %:top - 00:26:20 up 1 day, 10:04,  6 users,  load average: 35.58, 33.63, 32.97Tasks: 134 total,  14 running, 120 sleeping,   0 stopped,   0 zombie%Cpu(s):  0.1 us, 95.8 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  4.0 si,  0.0 st MiB Mem :    175.6 total,     66.1 free,    121.2 used,     24.7 buff/cache     MiB Swap:    100.0 total,      0.1 free,     99.9 used.     54.4 avail Mem   PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                    429 minidlna  20   0  193072  24984    152 R   0.5  13.9   5:44.31 minidlnad                                  491 root      20   0   65344   1992    280 S   0.8   1.1   9:58.48 udisksd                                  22191 root      20   0   18512   1972    672 R   0.5   1.1   1:56.46 Xorg                                     22531 greg      20   0    9840   1836   1620 R   0.1   1.0   0:00.56 free                                         1 root      20   0   36692   1788    228 D   0.4   1.0   7:34.75 systemd                                    530 root      20   0   61516   1504    680 D   0.8   0.8  11:25.95 NetworkManager                           22092 root      39  19   36696   1428      0 D   0.1   0.8   3:17.71 (ogrotate)                                1324 greg      20   0   12296   1392    872 R   0.6   0.8  38:00.17 top                                      26410 root      20   0   29628   1376    796 R   0.5   0.8   0:10.76 cupsd                                    22159 root      39  19   36696   1368      0 D   0.0   0.8   0:02.85 (install)                                22532 root      20   0    9288   1152    832 R   0.1   0.6   0:00.39 cron                                     22517 root      20   0    9276   1092    836 R   0.4   0.6   0:05.38 cron                                     26418 root      20   0   45584   1076    460 D   0.5   0.6   7:07.28 cups-browsed                             22533 root      20   0    2128   1024    948 R   0.1   0.6   0:00.36 debian-sa1                                 727 greg      20   0   16160   1020    640 S   0.0   0.6   0:06.18 systemd----------------------------------------------The last vmstat:procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st 6 23  48896  41692  19216  68760    4    0 10332740    56 456289 1243463  0 100  0  0  0 4 23  48896  41692  19216  68760   44   72 21432   200 1832 5674  6 93  0  1  0 9 21  48896  41692  19216  68760   32    0 9894620    88 253803 684016  0 100  0  0  0 5 25  48896  41692  19216  68760   44   36 6361204   136 207563 569162  0 100  0  0  0 2 26  48896  41692  19216  68760   32   60 1408800    76 290018 794256  0 100  0  0  0 3 26  48896  41692  19216  68760   52   52 18032   192 62968 157317  0 100  0  0  0 3 33  48896  41692  19216  68760  200  120 68688004   684 3085237 8754787  0 100  0  0  0 7 42  48896  41692  19216  68760  672 5156 109669492  1140 5509552 16666388  0 100  0  0  0 2 56  48896  41692  19216  68760 1908 3356 77842040  8972 3117194 9863487  0 100  0  0  0 3 59  48896  41692  19216  68760 1056  200 261181660  1792 12408469 38848071  0 100  0  0  027 53  48896  41692  19216  68760   84 1008 149502084   588 7370971 24190535  0 100  0  0  019 53  48896  41692  19216  68760   76    0 88165592  1404 3981098 13404223  0 100  0  0  0----------------------------------------------The last iostat:Device             tps    kB_read/s    kB_wrtn/s    kB_dscd/s    kB_read    kB_wrtn    kB_dscdmmcblk0         670.38     25927.27         0.55         0.00    6362812        136          0sda               0.00         0.00         0.00         0.00          0          0          0----------------------------------------------The last free:avg-cpu:  %user   %nice %system %iowait  %steal   %idle           0.14    0.01   99.78    0.06    0.00    0.00Device             tps    kB_read/s    kB_wrtn/s    kB_dscd/s    kB_read    kB_wrtn    kB_dscdmmcblk0         111.04      4494.61         0.24         0.00    1409688         76          0sda               0.00         0.00         0.00         0.00          0          0          0avg-cpu:  %user   %nice %system %iowait  %steal   %idle           0.98    0.20   98.23    0.59    0.00    0.00Device             tps    kB_read/s    kB_wrtn/s    kB_dscd/s    kB_read    kB_wrtn    kB_dscdmmcblk0       112936.59   3812523.95       136.93         0.00  307708808      11052          0sda               0.06         0.94         0.00         0.00         76          0          0               total        used        free      shared  buff/cache   availableMem:          179852      128088       65648          40       20592       50376Swap:         102396      102392           8----------------------------------------------The minidlna log file:inidlna.c:1126: warn: Starting MiniDLNA version 1.3.0.minidlna.c:1186: warn: HTTP listening on port 8200playlist.c:135: warn: Parsing playlists...playlist.c:269: warn: Finished parsing playlists.

Statistics: Posted by depmco — Sun Feb 25, 2024 9:06 pm — Replies 0 — Views 31



Viewing all articles
Browse latest Browse all 4406

Trending Articles