Re: [SlimDevices: Unix] Announce: piCorePlayer 8.0.0 - Network Timing Protocol

2022-02-05 Thread mvordeme
Yes, it would be. It is something you probably only notice when there is another clock next to it, or maybe if you use a player as your alarm clock. Since the Pi hardly ever needs a reboot, it is a useful feature. scaleo home server 2105 & picoreplayer 8.1.0 | logitech media server 8.3.0 |

Re: [SlimDevices: Unix] Announce: piCorePlayer 8.0.0 - Network Timing Protocol

2022-02-05 Thread mvordeme
I like the new feature, thanks. It keeps configuration of the time server in a single place. scaleo home server 2105 & picoreplayer 8.1.0 | logitech media server 8.3.0 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-08-22 Thread mvordeme
This seems to very random. For weeks and months, the socket count remains stable, and then suddenly, the server is stuck and needs to be restarted. scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.2.0 | server power control 20120716.103808 | transporter & duet & touch &

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-06-29 Thread mvordeme
1000 sockets in two months would have been more than 15 sockets per day, but right now, everything is quiet. The LMS has 39 open file handles in total, of which 15 are sockets. That number has increased by one since I am watching it (which was before I started logging). scaleo home server

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-06-26 Thread mvordeme
Actually not. Originally, we used to shut down our WiFi overnight, but since our daughter has been on an unpredictable time schedule for a few months, we leave it up 24/7. I mean, now and then a player loses the connection, but I'd be surprised if it should happen frequently enough to explain

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-06-22 Thread mvordeme
Today, the LMS ran out of file handles again, but this time, they were all sockets. It had been running for 2 months. scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.2.0 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 &

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-04-17 Thread mvordeme
Here is the list. They all belonged to the user tc with access mode 600: Code: ~$ find /tmp -type f -maxdepth 1 -user tc -perm 600 tc@piCoreServer:~$ find /tmp -type f -maxdepth 1 -user tc -perm 600 AUi4vaEOf9 jgDv0YCpyz dukSVaJOYO Yu5XG1ABnC hdElUQPHie

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-04-17 Thread mvordeme
This time, a large number of temp files had been left behind after I had shut down the LMS. Code: ~$ find /tmp -type f -maxdepth 1 -user tc -perm 600 | wc -l 612 scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.2.0 | server

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-04-17 Thread mvordeme
Today, the server is dead again. The difference is that now, there are no open file handles. Memory consumption is at 617 MB, and there are 958 temp files around: Code: Mem: 1911440K used, 42912K free, 127048K shrd, 5900K buff, 1157512K cached CPU: 0.2% usr 0.0% sys

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-03-24 Thread mvordeme
I can confirm that no open file handles are left behind, only the number of files in /tmp/ is growing. I'll keep an eye on the files and on the memory consumption. philippe_44 wrote: > I'm checking files with > > Code: > > > lsof -r +D /tmp -a -p your_pid >

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-03-23 Thread mvordeme
I installed tonight's development build and will give it a spin. Thanks a lot for your help. scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.2.0 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-03-22 Thread mvordeme
That is a fact which makes investigating the problem difficult. When there are 500 open file handles, it is difficult to keep track of what is happening. I understand from the code that with a memory configuration of high, the process should not use up more than 500 MB of memory. Is that

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-03-21 Thread mvordeme
I am not sure about all the debugging stuff, but it appears to me that it is not a matter of configuring things but of changing the code. I have tried to increase the amount of logging for a few items but didn't learn much. Where is all the code? The directory containing the slimserver.pl only

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-03-17 Thread mvordeme
I had found two different types of files, one of which had been identified somewhere above in the discussion. So far, I have not been able to actually see it happen. Every time I observe the system, all new file handles are closed again after a few minutes. I have been thinking about writing a

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-03-17 Thread mvordeme
Now it is finally dead and does not play anything any more. The file handle count is up to 1024 and memory consumption is above 1 G. The system has almost no space for buffers any more. It already stopped playing hi-res FLAC files weeks ago. Code: $ sudo lsof -p 32307 |

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-22 Thread mvordeme
Trying to find a pattern, but no success, so far. I thought that maybe the mechanism of releasing the files is working in general but leaving the odd file behind. In that case, must of those files should be rather new. This doesn't seem to be the case. Code: Date |

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-21 Thread mvordeme
Meanwhile, the LMS is using almost 800 M of memory. The process is holding a total 696 of open file handles, of which 20 are sockets, 12 are files in /mnt/mmcblk0p2/tce/slimserver/Cache/ and 656 are files in /tmp/. All these files do actually exist, and all existing temp files seem to be

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-08 Thread mvordeme
Seems that I need to get my head around that funny Perl syntax after all. In the LMS settings, I can choose between normal, high and maximum database size. It is set to "high" for machines with 1+ GB of memory, which should be fine. 2 GB is a little too much. scaleo home server 2105 &

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-08 Thread mvordeme
Loading this discussion with more stuff: The number of file handles on my Pi has now exceeded 500, memory is at 580 M. I'll keep an eye on it. (For the protocol: Today, I have been listening to Deezer Smart Radio for some time.) scaleo home server 2105 & picoreplayer 6.1.0 | logitech media

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread mvordeme
philippe_44 wrote: > Yes, the Max is set a 500 internallyOk, so file handles should be fine and > probably not related to the growing memory consumption. scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.2.0 | server power control 20120716.103808 | transporter & duet &

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread mvordeme
I believe that if there really is an issue with file handles on my Pi, it is not the same that Simone has reported. My open file handles are back down to 459 and memory usage is up to 562 M. Since it looks like for every transcoded stream, a temp file is left over, but the number of file handles

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread mvordeme
But 450? And all of them are still open in LMS. Files containing binary data only seem to end like this: Code: TsgpdrollsbgprollEbudtaZmeta!hdlrmdirappl-ilst%toodataLavf58.20.10freeZMmdat scaleo home server 2105 & picoreplayer 6.1.0 |

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread mvordeme
I am only using Tidal. My wife is listening to web radio, but since it doesn't require transcoding, I don't expect it to leave temp files behind. I just had a quick look at a few of those files. They contain mainly binary data. Some of them end with XML like this: Code:

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread mvordeme
I am not entirely sure what happened just now. The track I was playing was cut short by maybe half a minute and the next track started. The number of file handles went up by another 4 and after some time went down by 1. Also at the moment, the contents of /proc/32307/fd and the output of lsof

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread mvordeme
On my Pi, the number of file handles goes up by 4 when starting playback and immediately drops again when playback stops. This appears to be good news at first sight, but nevertheless, the LMS process has piled up the impressive number of 459 open file handles in the last 21 days: Code:

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-05 Thread mvordeme
Just for your encouragement, since you seem pretty well on your way without interference from my side: It seems that I can observe the leak as well with standard transcoding settings, only it is so subtle that I will probably upgrade my LMS before the Pi runs out of memory. My LMS is up since

Re: [SlimDevices: Unix] piCorePlayer 6 - configuring NTP server ?

2021-01-16 Thread mvordeme
Greg Erskine wrote: > Has anyone worked out the actual time drift of a Raspberry Pi?My 4B seems to > drift less than 2 seconds per day. Code: $ date Sat Jan 16 21:15:23 CET 2021 tc@piCoreServer:/etc/sysconfig$ sudo /usr/bin/getTime.sh

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-29 Thread mvordeme
Hm, I just did Code: sudo ./lms-update.sh --release devel -s -r -u as prescribed. But I don't expect there to be any differences so far, anyway. scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.2.0 | server power control

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-29 Thread mvordeme
8.1.0 was a nightly at the time. Version numbers seem a little volatile at the moment. Everything is fine with 8.2.0 - 1609139175 @ Mon Dec 28 09:23:00 CET 2020. Thanks a lot. scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.1.0 | server power control 20120716.103808 |

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-29 Thread mvordeme
Thanks. So it may already be fixed. I am still on 8.1.0 - 1608064080 @ Tue Dec 15 22:13:24 CET 2020. scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.1.0 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-29 Thread mvordeme
I found a test track, if you are interested. When you play the live album "Showtime, Storytime" by Nightwish, the last three seconds of the second track "Wish I Had an Angel" go missing. On which branch are you intending to fix it? scaleo home server 2105 & picoreplayer 6.1.0 | logitech media

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-27 Thread mvordeme
Oh, this is cool. I actually watched a lot of YouTube over the holidays and didn't have a chance to pin down a certain track on Tidal. Thanks a lot for your dedication. scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.1.0 | server power control 20120716.103808 |

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-21 Thread mvordeme
I'll have an eye on whether it always affects the same tracks. scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.1.0 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-21 Thread mvordeme
So far, Tidal has been playing without any problems. No stuck connections. The skipping of the last few seconds of a track seems unrelated. It occurs now and then. I have no idea how to pin it down. scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.1.0 | server power

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-16 Thread mvordeme
bpa wrote: > mvordeme's persistence "a voice in the wilderness" and narrowing > problem down to network was essential.It was something that annoyed me almost > every day, but that made it reproducible and easy to investigate. If I knew Perl, I would even had looked at the code, but as it

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-13 Thread mvordeme
philippe_44 wrote: > - When transcoding, the Tidal server does not send the close sequence > (at least I don't see it in wireshark) Doesn't it have to send something, or else the O/S wouldn't report the connection as CLOSE_WAIT? scaleo home server 2105 & picoreplayer 6.1.0 | logitech media

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-12 Thread mvordeme
One thing I found out just now: Whenever I skip the currently playing track, the connection is closed properly. The new connection is using a different port, so I don't think it is the old connection reused. Only when a track is played to the end does the connection hang around. I could have a

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-12 Thread mvordeme
bpa wrote: > I'm not sure of the Tidal and new AAC support details, but within Perl, > normally a TCP connection is an "object". > TCP conection is closed when an explicit "close" is performed or when > TCP connection object is destroyed (i.e. no variable has a references to > it). > Object

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-11 Thread mvordeme
Restarting the LMS moved the counters a little. Code: tc@piCoreServer:~$ head -n2 /proc/net/netstat | cut -d' ' -f 51-55 TCPAbortOnData TCPAbortOnClose TCPAbortOnMemory TCPAbortOnTimeout TCPAbortOnLinger 191 3667 46 503 0 scaleo home server

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-11 Thread mvordeme
Players are currently re-buffering. Time to check the stats. Code: tc@piCoreServer:~$ netstat -tn 2> /dev/null | grep CLOSE_WAIT | wc -l 110 bpa wrote: > To see if there is some odd network activity at the same time as the > playback issues,

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-10 Thread mvordeme
The columns seem to be shifted by one. Code: tc@piCoreServer:~$ head -n2 /proc/net/netstat | cut -d' ' -f 51-55 TCPAbortOnData TCPAbortOnClose TCPAbortOnMemory TCPAbortOnTimeout TCPAbortOnLinger 137 2918 24 275 0 What about all those open

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-10 Thread mvordeme
Code: tc@piCoreServer:~$ cat /proc/net/netstat | cut -d' ' -f 1,35,41 TcpExt: TCPLostRetransmit TCPTimeouts TcpExt: 6863 13430 IpExt: IpExt: scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.0.1 | server power control

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-10 Thread mvordeme
si Code: TcpExt: SyncookiesSent SyncookiesRecv SyncookiesFailed EmbryonicRsts PruneCalled RcvPruned OfoPruned OutOfWindowIcmps LockDroppedIcmps ArpFilter TW TWRecycled TWKilled PAWSActive PAWSEstab DelayedACKs DelayedACKLocked DelayedACKLost ListenOverflows

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-09 Thread mvordeme
unfortunately, not: Code: tc@piCoreServer:~$ netstat -ts netstat: invalid option -- 's' BusyBox v1.30.1 (2019-06-20 23:16:54 EDT) multi-call binary. Usage: netstat [-ral] [-tuwx] [-enWp] Display networking information -r Routing table -a

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-09 Thread mvordeme
Playing the third track after restart: Code: tc@piCoreServer:~$ sudo netstat -tnp Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 192.168.178.101:3483

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-09 Thread mvordeme
Alright, I decided to change my mindset and try to get to the bottom of this myself. This looks very much like a connection leak. LMS running for half a day: Code: tc@piCoreServer:~$ netstat -tnp netstat: can't scan /proc - are you root? Active Internet connections

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-08 Thread mvordeme
Can this discussion be moved? scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.0.1 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-07 Thread mvordeme
I re-wired mains and network to the pi and, while I was at it, updated the LMS to Logitech Media Server Version: 8.0.1 - 1607087403 @ Fri Dec 4 14:26:56 CET 2020. It is still showing the same behaviour. I noticed one more thing. A few tracks before Tidal streaming breaks and the pCP interface

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-04 Thread mvordeme
The same thing again today. The moment Tidal gets stuck, the pCP web interface does not load properly any more. And I noticed another thing: I configured the Transporter to power down the audio section when off. It was sitting there, clicking about once per minute. It seems that the entire

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-02 Thread mvordeme
Tidal got stuck again, today, and I tried a few more things. - On the Receiver, the MPEG-4 podcast did not play, either. It showed the same behaviour as tracks from Tidal, i.e. re-buffering and now and then playing a few seconds. - On squeezelite, Tidal tracks would still play, but

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-01 Thread mvordeme
Next time the LMS goes into denial, I can just try to play it. Do I simply need the Podcasts plug-in? scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.0.0 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-01 Thread mvordeme
No, I only pay for compressed audio. 320 kBit AAC is what the Controller shows. scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.0.0 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-01 Thread mvordeme
I have not updated for a week, now, because I didn't want to introduce new uncertainties. The version is Logitech Media Server Version: 8.0.1 - 1606059084 @ Sun Nov 22 16:49:21 CET 2020. It is buffering. The Controller will show rebuffering ... and only now and then a short snippet will play.

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-11-30 Thread mvordeme
A few results. When Tidal streaming got stuck again, today, I checked a few things. - The faad and flac processes had the same memory footprint as usual. - The LMS would still spawn new faad and flac processes when skipping tracks. - Local FLAC files (16 bit / 44.1 kHz) would play fine

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-11-28 Thread mvordeme
Currently, my FLAC library is on the other server, but I'll copy a few albums and test. Right now, I only have a Touch which used to be able to play Tidal natively. There have been no problems with that, as far as I know. "Seeking" within a track didn't work any more, last time I checked, but

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-11-28 Thread mvordeme
What I don't understand about the memory: The file system looks like there are 2.6 G of virtual file system in memory, which is not possible, and which would not leave 1.9 G of memory for the processes, so in some way, the numbers need interpretation. I wrote "out of memory" because that is my

[SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-11-27 Thread mvordeme
For a few days, now, I have been running a piCorePlayer 6.1.0 with LMS on a Pi 4 B with 2G of memory. I mainly use the Pi to transcode AAC streams from Tidal. There are no additional plug-ins installed. I observe the following behaviour: After the LMS is started, it will run without complaints

Re: [SlimDevices: Unix] Picoreplayer with older LMS Version

2020-11-21 Thread mvordeme
I just read here that the file /tmp/slimupdate/update_url might be in the way. scaleo home server 2105 | logitech media server 8.0.0 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140