Re: [SlimDevices: Unix] Announce: piCorePlayer 8.0.0 - Network Timing Protocol
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 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=115268 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Announce: piCorePlayer 8.0.0 - Network Timing Protocol
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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=115268 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
I've switched on debug logging for slimproto. It generates quite a lot of data. 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 this many open sockets. There is something else that might be related. When you pause a track on Tidal, the URL will only continue to work for some time. If you wait for too long and try to resume, there is some kind of error message, and the next track is played. But even that does not happen frequently enough. Is there any kind of logging I can activate which could 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 gBLRAAPa8j rMAaXoyfO7 d7zFvaiRIE 2n11sGyGoA fKc5h2Lr3z 2neRVkttoG vFw3GS1Afs h4YoUMhqBH C4NQw4CVge s9RQkAyJFT UtMkWjIqxS TFnagYgb3e Lc9C3GAH2o kp2OOKiblZ oZN1kNwf7P vOlyVbQ3ho Uv0vSJRB24 9tPSiKjHN0 2WUBuM87bS BAbglNWrsu EzcUziPYlv UY4O6d1pPx DmKoaTJsMV C2srNCn3Bj TkZXeBVgYp vmZZWzv4ci xBNog1WzEE ihNCypc3cU 8Wi3lYFUxl LDfs4wPzoj peP0EHVwWj 7bsy24tBCq QYNa2QYFnz dlClDV2sQS jDlqqbOb47 8csFRMWZwH CVSj7XqC41 UIp0FF6P9f 06AYDdiyO3 KdV6yOLU6h 9Ey3KzuF4B 8PRSUorQ5i ltWlpaIxBp OLQ9X2SGBY 6Z0zE147Zg 1Ll606oKQG zRDHwdT8XI Og74pAoCFm tjJRtu03fP utfHRjEOO0 HIhdbOAbBf kfpGHb41Vq 1moyFeidMU uxemVGJXsm Ovy19MlWE7 nhyRft4ex4 yW6fJzXBYJ mkdeFXdUAD mYHgdciU53 PSKmjGtzSh 3gCkB0RvMr n5EOw0hlop wDWzSYACsC Os2uVBhYka R30opE8zJy ZZxMDfnqU2 BFvuYu3kQ1 gw3kvhrtfK uxZdHuuxp1 OAjQzMlnpH mhHufifuIm vNQ4SdxClI HGRzoQSPoO LtOaYTZhOE qY6IQwmWzh LjA8VPB4ri jsKYaqS5I1 yD4YHyD7U8 qETlXasQGz PzW5mYMWMo P4KL85n98D ACy0EdPuTz v2wCFXaHWJ DTu2b8XMWB qSPig7f7NJ cuJwjUafNr dVT1Rg3LEt EnRE7pyVX0 zfuQVnZ8on uccSEOO6Of LlA4bZQ0YE Xpx0Sh5TpE 7FzqS7Zf8U TtFNTTeb9A 7NFk1pgbhO egSPN5etLt G5D6194Bhw ds141MxEF9 rdCXQIvb9T geerOaC4TK t8wGal0nyA tdvN8mYbUg SN7rYaCkUx dtPj1bLhnJ 7LtEr8EWg0 Ia8kRt6eK7 0F2S9WHqWG DFvSBrdAIZ jZ7JiHbjj1 ZcxLphxGXd pBHX93vpCj jYNQoR5Tad Wp744OU8fr cFjLCFW9UM WkvJ3MXuyy fzRg2iyX4q qUXQM8hkyx 9EeFlQaxYO x4pjNJh8ns DpZBUnMBPL 2JJ6vG8Rj9 oev50JJi6T I2wXmlJSf3 blFzS8mBFC 7YOmCEstPh PyZyhjYiHc BKjb6kgB8g hwy18dQnJ2 Ne0qvjnQSx mieHCjGw1a LoMLHoptSa uDxcCHB6ub tTf0SBF5rD b3wBykc3hu p0tZA4PvR3 TZRsw3Y6Em d4dMn5wlJr T8ja7v3Oia wnSWke4aE6 GRjVr3H05Z 6WZQAbapHk 8zzHLULaPB sRSo7TGTMm 3s7v7W7Eyg yqUD360r6N bW4gWCoyMB ApJNszXI0o 7TPw5K3Qo3 m9RGJZENzQ NaGQfUWejS bxLb71t5Ja uOr4MeLtbT SYimxiD9FI mdM4P4gXhd V7ugZkbbP6 xa1Qicb730 WrZKqlS0Ck e2oYUuwlVu JYEWeZIV07 M99ClpbaPf LetvCpGrgj f6NfGvfR2W qAXYRCAfR3 HVSgPxtRyx OmSyvFr64v O7ZPxfsND5 2GHJKRPJH7 PXDucYbjeH dPpKxt72gQ 3jXqdZ4b0J fmTSTcEsI6 5sKBjuKLWN ylMiREJqlB cLa33T5Apg OZtsW4duYE oVAKHxSIvL uIxO4BRvOX KXKpRZ2qrG lHgmVBLmdI HJiVKJWJeR 2SxJr3KVfA 9J8StDluYg 6uJawzK6EA BGwcjZkgcb i46QgYNjZf rKRqzmNAnD patpQx0S77 VqSuW8q63R OtnoRIvfIB HUTP6LpoZF oPicUlIxns b4wxLDJg3H dp1xCD9RUK iQpMCFIi7v vIyp53luQB nCGTSKRjFs R7fDc27fte mzmjEkNDHj NPGOO4ZjYK ThY97BETzU TKN08r1BDn kkOkcxZGCE flNaF3eQwQ P3HHFD9Mys XTu25laida LbRcnAhK53 Y8HBVgUmRr p7HqpyvXyq EIcoZONP6S 3PignNR5QQ qyTHYbObtN FpUCxO1bxZ fuft6rnEUX Vgp0sXPQcu zMA1anhoMF aZ6HISbmj0 0Jo8lfEosk 6fIVmzNcQD krl0kBAUoR Uf14rsV3ke wCgfV5XVhE vazf0uEtAM oTl6rgA5mZ Bwz2cOlmUZ qB9nxfTpFr 3619dqC1WD VeDgCxtgsB Nza45koBZ0 JYdwMWME6l Nd4IuvEi0Y ABdqI3Jxzl oUmr6buDCo rFRzY6laZ4 jV7R3Bw8j7 lnGOu6zkvt jYdgcyZG1g FbOVuJrBOf a32whjRqAD LfonJW9SPX AT1yVEQxqg lpeS6U4pIA tRDSN6T5XQ DXNzQlgUaO uo4UDRtET7 KSDO7Y0Hb0 kmfuo437jT G83UWrd2eM 4YKzSx99e6 2oTNXa8x9a OluTCwBKga N32pzcfyLR 68V20hMAuv QB465fS5vd AbPkNa6O8u CadKkYP8pn i5GY4sKJP6 9UZJuFYTBc Gq7UzCOGkF n2JyTY95oE 0aI88t3sKX bLQqKxL4ZT sHfKnynukU K8owfquCUt XMGJNNZei4 8IyaO1B3oh rdfCjZL5BW 6VxstFb6yB GXEs2LTMTP IK1bbRCDVg p5wirKx4TA 5fehrUu47A gcZGczbrmc NR6GA2GHhs suUp83GFhg NANNYek1l8 ZE1ntIQODe GcHAE7rtbk 6s0UOWYuWl yOngBZsfhX D3zm3Ibswr cYbTZ3KAGG uCgUih1aKB Sj9eliV3f7 OYjZA1OyPQ pWw6PDv75N xvUuz8SQD1 WfFLuBW1eI WCX8PObjqp BZ72LwnwJJ RLSUhOf6Du dFSLLM6MHY bN38Ma4XqM WuA7IodBct liA6y1Ksp2 29Z0esLkoj UvOlUCzsXe xxm1DDbtOJ z6r8LtZzee YBsxCxyeCb g5QG9lB6hp Jrvulb13q1 D8PfoYjNfX moLhHkiQJD solFYVuPI9 TyzmNrowsv Slb3Inc6ng 08HVaVnJ4Q bo96B7came oOBwXdsq8R Jc73g83TPf sUkhN0lueT bmgitA6UaD tq8IRw2llZ 60TZiSAnpG KT82sHzglf 93LuoaNJeM 3PYXn4bqhT 5QP4WivWuJ rXWUpOBjHy tDZq8ZRg05 BFPDbIfHdz Euy8inaXGR EYSzpmtnVz rsrRvkzTnO FLjJaxm9Wq GIqUpac12u EVeFd1EgAn PxH57yADOa kpfYtG1cE4 AtBsqrw9V7 ulRUdOk7iI gLFCk7awFr tTzgFAXdcF AXpQaopkok JaikJY4OJB KGKWGuo5mu MpxZLffeIe teLs10Ag94 PkcRWpfgvR xmfW6OyJ2n tZabuTo2Zp owLSAe0NGi 1ricrF3nYf Uih7QWkAmg S3cy1ZhHqB ONWuxowmFA zT5VdyBgAZ YsoCC4zCHy mhldUl2vNC E48ovhnSHZ 4UDDQdZPJP jlYsOuSsCA lfktyEDScd mTyMY5ZoOc qxPVkmW6Ux IXmDNVUByo oHAxqv59EG 7T3q1NM05Y jaDDJEVjsZ WFTNc0cI5V E9GiLUIdFZ Q7dk7FVB3y
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 0.0% nic 99.6% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.02 0.02 0.00 2/138 407 PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND 2706 1 tc S 617m 32.3 0 0.2 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon ~$ sudo lsof -p 2706 | grep 2706 | cut -f 3 | grep /tmp/ | wc -l 1 ~$ find /tmp -type f -maxdepth 1 -user tc -perm 600 | wc -l 958 The Transporter keeps switching off and on again and does not play a single note. Since it lasted a little longer last time, I am going to reboot the server itself. 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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> > > lsof on the BusyBox doesn't seem to care at all which options I supply. 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 correct? 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 contains 9 pl files in total, and only gdresize.pl uses File::Temp. Code: tc@piCoreServer:/tmp/tcloop/slimserver/usr/local/slimserver$ find . -name "*.pl" -print ./CPAN/AnyEvent/Util/idna.pl ./CPAN/AnyEvent/Util/uts46data.pl ./CPAN/AnyEvent/constants.pl ./CPAN/XML/SAX/placeholder.pl ./cleanup.pl ./gdresize.pl ./gdresized.pl ./scanner.pl ./slimserver.pl But I used the opportunity to update the LMS and watch a fresh system playing an album from Tidal. I now understood why just counting the number of open file handles does not help with understanding what is happening. Every track creates and destroys two sockets and two pipes, and there are other activities adding to the noise, like the caching of album art. But when it comes to temporary files, the behaviour is rather straightforward. Every single track played leaves a temporary file behind with an open file handle in slimserver.pl. The files are rather uniform. They seem to contain mp4 metadata. I downloaded one of the mp4 tracks, too, and it looks nothing like those temporary files, although with binary data, this is hard to say. All temporary files start with binary data and end like this: Code: udta�meta-hdlrmdirilst handlerilstr(meanorg.hydrogenaudio.replaygain&namereplaygain_originator_codedata01101100i(meanorg.hydrogenaudio.replaygain!namereplaygain_track_gaindata-7.87 dBi(meanorg.hydrogenauIuuidDLBY-METADATA-00�meta3hdlrdlbtdolby tags handler�xml http://www.dolby.com/ns/mobile/protected-1.0";> http://www.dolby.com/ns/mobile/tags-1.0"; id="febbcb871e10fe78fcb42572d432c797" read-only="true"> LS1pbnB1dC1maWxlIDxhcmc+IC0tb3V0cHV0LWZpbGUgPGFyZz4gLS1hdWRpby1lbmNvZGVyIGFhYyAtLWF1ZGlvLWNici1yYXRlIDMyMCAtLWFhYy1tb2RlIGFhYyAtLWlucHV0LXNwZWVjaCBmYWxzZSAtLWF1ZGlvLW9ubHkgLS1yZXBsYXlnYWluIG9uIC0tYXVkaW8tcHJvcC1tZXRhIGxvdWRuZXNzIA== a8d5be608e4aca0266c159418d806a4e �meta;hdlrdlbfdolby file metrics handlerqxml http://www.dolby.com/ns/mobile/protected-1.0";> http://www.dolby.com/ns/mobile/file-metrics-1.0"; id="febbcb871e10fe78fcb42572d432c797"> Dolby Media Generator 3.8.3 2016-08-12T17:57:06 115124 Dolby Pulse Encoder 1.1.4 sbr: 4.0 / Aug 18 2011 AAC VBR 32 9765888 1c5f05da944468156c140c483176ed9d 44100 2 None 1600 0f2340c558a9c8d72d0ce1fadcd2ff28 mmeta;hdlrdlbkdolby audio kernel handler&xml http://www.dolby.com/ns/mobile/protected-1.0";> http://www.dolby.com/ns/mobile/audio-kernel-1.0"; id="febbcb871e10fe78fcb42572d432c797"> 3c207014a46f955c7c617a330a9d1029 3meta7hdlrdlbmdolby metadata handler�xml http://www.dolby.com/ns/mobile/protected-1.0";> http://www.dolby.com/ns/mobile/metadata-1.0"; id="febbcb871e10fe78fcb42572d432c797"> 36bbff96c50793db343f56cc653f0adb �)emdat The only time I saw one of the files being removed was when my playlist contained only one track and I skipped forward, playing the same song again. Skipping backward leaves the existing file in place, and so does skipping forward to another track or the song ending on its own. 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 little watch dog to alert me when it happens. 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 | grep 32307 | wc -l 1024 $ top Mem: 1903428K used, 50924K free, 106604K shrd, 10532K buff, 549776K cached CPU: 0.2% usr 0.0% sys 0.0% nic 99.7% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.31 0.19 0.08 3/138 21673 PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND 32307 1 tc S1151m 60.2 0 0.2 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon Going to restart ... 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 | Count ---+-- Jan 18 | 42 Jan 22 | 29 Jan 26 | 11 Jan 27 | 29 Jan 28 | 64 Jan 29 | 50 Jan 30 | 20 Jan 31 | 17 Feb 01 | 25 Feb 02 | 12 Feb 03 | 40 Feb 05 | 12 Feb 06 | 57 Feb 07 | 13 Feb 08 | 20 Feb 09 | 20 Feb 10 | 8 Feb 11 | 19 Feb 12 | 2 Feb 13 | 37 Feb 15 | 13 Feb 16 | 30 Feb 17 | 4 Feb 18 | 38 Feb 19 | 15 Feb 21 | 13 Feb 22 | 46 ---+-- Total | 686 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 associated with an open file handle. Code: Mem: 1820584K used, 133768K free, 102676K shrd, 21016K buff, 867764K cached CPU: 0.0% usr 0.0% sys 0.0% nic 99.8% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.00 0.03 0.02 2/137 23884 PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND 32307 1 tc S 795m 41.6 0 0.1 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff $ sudo lsof -p 32307 | grep 32307 | wc -l 696 $ sudo lsof -p 32307 | grep 32307 | cut -f 3 | grep socket | wc -l 20 $ sudo lsof -p 32307 | grep 32307 | cut -f 3 | grep /slimserver/Cache/ | wc -l 12 $ sudo lsof -p 32307 | grep 32307 | cut -f 3 | grep /tmp/ | wc -l 656 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 & 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 server 8.2.0 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 is not growing, I'll match the file handles against the temp files to get a better idea of what is happening. Code: -rw---1 tc staff55228 Feb 7 18:16 JGCjBbgQxZ -rw---1 tc staff50248 Feb 7 18:21 lf2RyypjF9 -rw---1 tc staff67636 Feb 7 18:26 nmAx4IIiMz -rw---1 tc staff56652 Feb 7 18:33 Ye36Wt7Hb9 -rw---1 tc staff63348 Feb 7 18:38 pyqDc5YX93 -rw---1 tc staff52628 Feb 7 18:44 qILjMvdIpF -rw---1 tc staff37944 Feb 7 18:49 gAd3wem95x -rw---1 tc staff64644 Feb 7 18:53 4gUg6Rf5Dw -rw---1 tc staff47828 Feb 7 18:59 xFbatEwmdC -rw---1 tc staff72140 Feb 7 19:03 B5DbNkB9Xe 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
But 450? And all of them are still open in LMS. Files containing binary data only seem to end like this: Code: Tsgpdroll��sbgprollE�budtaZmeta!hdlrmdirappl-ilst%�toodataLavf58.20.10free�ZMmdat 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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: http://www.dolby.com/ns/mobile/protected-1.0";> http://www.dolby.com/ns/mobile/metadata-1.0"; id="ec35e13380fae679f72ad77da14ad998"> da4947e91ab7a7bb034d2396091e47d6 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 don't tie up. There is a difference of 1. I just played the same track again, but this time, nothing out of the ordinary happened. 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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: tc@piCoreServer:~$ sudo ls -l /proc/32307/fd | wc -l 459 The majority of these file handles point to temp files most of which are less than 100 k in size: Code: tc@piCoreServer:~$ ls /tmp 03cIFl7jwe 4rgI1aC5vc 9WJ4VtXcBL Gd9RHv3V1l NNPPF9ceUe Sl3yuXOz36 WuykGpS0xb bootlog.txtgKm8BgSzot mEQGU5SvOW rJkQlGJI8J wURF2K4f4K 0EmYhzJcmB 4tPPr4daxA 9kOwuZh3DW GmabeY5h3Q NTlU4uMxZo SsEtswHHAn WvCIsttz5m bzMqfrLxAV guEXqhnCGq mEp9BbzIyb rukbirJ2Vm wVhM2nDcQZ 0MgKy2CQgv 59OZNn7TZC 9ncQsIcC0T GvYFsnRz12 NZbdlVfobT Ssa2ci4XIw X6zZ6QDze7 c40jEOE2px hC1zbMSwlZ mLpFKaW1yL s4ESx3Ymud wWXbsZiJ20 0OdWqmUZXu 5EoPV3jX4t 9tzReGrzMm Hg1rwaMJQU Nb5kHNTXVK Sw1eZQg04O X94BfSP5gY c5kBHVyR90 hDFoTS1pt6 mcXUl3DsXH s4bQXZPW1N wXr80U6zsv 0VW1ORXGi8 5qtZGav2wm 9yDdWrfNFh HhKv5L1ozW NruzzJs1Um T0bBX5nUIx XCechksfUu cGaSipwMqP hSqo7SFjnL mqRSCx1FIO s82mYev8qQ wfqSFmkCa1 0iNoW2Ico0 5yi4EhKHHS A1tbR1pg34 HrjcbeYad8 Nx1pQGNdGk TBm6dOTIVO XUWUuZNkeL cICQETUXgO hWNDmZBFYx mu37x9zwHD sXJC56fXBc wiVr3HQwPk 0qKNEliEkl 604D2xW2Tt AaEYtvzAMB I0e7fkV9G6 O1VvyykKyv TGqW8Fs3OL XYU2njU0e6 cJEPfJnxFE hXwNydIFSS mzjDdGcRJq se46Pf42uA wk6oxnHMKn 0qkNkqI35F 6Qy9fMg2Wt AnKjz3mGy7 I5w5mUr4hw O5s04ZhuvZ TJ6RyApBlL Xbz31gOGIm cPzStqDQB0 hZjRd9lF00 n9YIrXeYHw sexeF2VROx wmbL4CgCXb 0unQjsdhxT 6WGXas0JgF B4TYWqilnd IDXJgiVJru OHpas4VD1J TOKksgRTmD Xc2vhUjjtq d3MNPBgpyP i3HwB8XJbA nDNobIBN6U sjDEsb8NSk wtlFddVnSf 1BVOZ2XO58 6lpc5Hz72e BILAwoAQbV IEGu7ZTHcx OLYrBtXlhm TTFITP0uvW XgGRJL9V1d d8buGmkIb5 iFWF8Ir4LQ nEye6aNZOU slimupdate/x13y3rNG7X 1CYPNL0GEs 6t7NbOMLiX BMDe4xvaVY IFecwjVZY5 Opo6TN3ru2 TkciUsvxFT XhuxXEX9DA dAWhKbIZ6z iJECPb3BTR nOtq4bk4Qh tELx8hMxrY x1zuzXUY2r 1CcvD9Vpbe 728rEKvRdx BYU8sN2gql IncXP37qXU P8C7rfNVlB TrqyHlAjDw Y9xRrqrDmI dCg2gXtpFQ iMLfib0C6P nbWRfHPoLK tRsPc4VdpT xB0IEgJfWR 1ZdVNpxEu7 7ACuIcyWP4 Bm4cXyA9bR J8am7gmDWf PQJ952a5q3 TuPUuLqapg YAtTtPXVkP dEIUtc7xxw ibPwSyx1K9 newdep.lst tbqL2ZYEXL xQLtqB6sbI 1fgdvPmnPZ 7Ew8nXotOR C68HQ4pbMd JFQ0d7rW6d PuM3rncSUe Tx6gd5AP7T YHuLaKQFi4 dLDfu8zfTw ilrsdprSUK nnbwLlRdME tce/ xRhfBKPNCx 1u0GHEQlQF 7GjOSv0tJO CpXr0PDULX JNdNFhsdXQ Q0YZtnyi9g U40bI0bgVI YSky3P8lHb dUxnq7qLUV imVlF508C0 nsC9mU2Z5T tcloop/xXkR2lIbYb 1yzJMX1dVk 7IAD7vYZwS Crr4Gv0bnD JPocnZeLJh Q97QZVUPHQ UFzbJURWJF YtQah9muru dbJk6RXBV2 immrxdWS9t o6E0LBA07F tmp.18jhiN xdx5D2lUAN 2HvwYk8MCS 7LbsrebwUg CtwXSukPiM JRs60MDOCL QOnb4i0ybg UNlImZPzrj Z96bAqmu7Q dg8AR3wXax ioow0K9ArG oDxX0roKmb txlHsN7Ijm xtMRobN8ZJ 2IApNBY1rq 7PIGNDgs66 D2uONQqI2k JYMzKBOFSM QTFc97PBBz UNqy2QUrnY ZHmfPq3ITY diOtzoNgJq isfSzmLrsz oIUhnZISSg tzxEDKuYOV xwAC0YWWr2 2lCmLwhhGv 7XKgKqCN2Z DY5QcaTz3J JnWccflg20 QX1iu33p5W UV8Dzkx8uc ZkEdWmhrc9 drGnCSBfBF ivnGZEP7vN oKSRjJA6lf u4JRuoOqI5 y6E4lbOjSE 2oes0nmgVo 7aDVmWnkwu DaPdB5GQM1 KJEAgBLkf0 QY1dJvGXwn UYqCoex4kG ZqBCgbHQ2p dropdown.cfg j8a8PPWvIk oSn9W4XjQA u6FBVMX2C1 y8qvpiMYND 2xcEfyp1UU 7bngchDriJ DkbfceTQ53 KRrBENMk9r Qfj1r76VGo UlJtjVsZce aAMbKfWFTo dydAPGv4Eh jDQaSysY9E oY200lYF9W u8Srsfdus6 yOwD1uPuhw 2zHo8AiIxo 7nIYfS249w DyuMagCTKO KhqHd5Imgy Qw8HVLPpBz UqLr4FTo6Y aGWnkQ8rRO e8Jj1hBYTg jrMvLCp6Y2 obD9xsa12h uEu4LwesSC yvejTHwJwv 30qVkfd0E0 7o0j1wo3EH E2TmgSf2yj KopDpxPt26 QwYuUAcMkt UrQdjwuHh9 aICyozsrVW eBYXtBpFPX jweUwdH9vl oguOUERzTo uZylAdOAsy zF8nHZGfdB 3FWr84IAx5 7r4nKLNbTQ E7xMHcGN0Q Kvh3rpbiHJ R5nbmn9QkS UvTqndB2gz aJk8YEA6xo eDwJDhTjWB k0LklNxGhi orhHMGKcRn udDXmQlJQg zkbUlGLixc 3R5hP9Elsv 82PD3FRdpU EAxn3QNhDo L1Xbiu6N55 RBWQ0Nwyyr UzpMA1Zkso aJtJaXx4wr eHzILmDRip k5_sk
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 about 20 days, and it currently has the following memory footprint. So far, I have never seen it shrink. Code: Mem: 1808960K used, 145392K free, 94768K shrd, 21020K buff, 1121756K cached CPU: 1.2% usr 0.0% sys 0.0% nic 98.6% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.01 0.07 0.08 1/141 1992 PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND 32307 1 tc S 526m 27.5 0 0.4 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 - configuring NTP server ?
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 tc@piCoreServer:/etc/sysconfig$ date Sat Jan 16 21:14:33 CET 2021 $ uptime 23:06:01 up 41 days, 11 min, 2 users, load average: 0.06, 0.08, 0.04 I only noticed it because my Radio is sitting next to a radio-controlled alarm clock. Going to add the user command ... 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 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=112335 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 server 8.1.0 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 seems, the architecture of the code is more of an obstacle than the missing Perl knowledge (which is probably true for 99% of all software with more than 100 lines of code). There are other minor problems which I just can't put my finger on, and so I didn't even bother to report them. mherger wrote: > Would be great to see it tested!I'll try and upgrade my pCP, too. It should > be easy to downgrade in case of problems. 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 server 8.0.1 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 look whether this happens at the end of a play list, too, or just when a new track starts playing. Garbage collection is dangerous because it is only triggered by memory usage. If there is still a lot of free memory left when connections become an issue, GC does not help. 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 will be destroyed as part of garbage collection so there can be > delays.I don't know about Perl, but in Java, not closing a resource explicitly in the "finally" block but relying on garbage collection is a sin, and code inspectors will flag occurrences as a critical bug. Can I check the Perl code myself? 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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, you could have a shell script to output TCP Abort > counters and see if they jump. If they don't then you can probably > rules out network issues.The only value that is increasing is that of the > TCPAbortOnClose counter, but only by one or two hands full per track, not nearly as often as the playback stops. Code: tc@piCoreServer:~$ head -n2 /proc/net/netstat | cut -d' ' -f 51-55 TCPAbortOnData TCPAbortOnClose TCPAbortOnMemory TCPAbortOnTimeout TCPAbortOnLinger 189 3642 30 503 0 bpa wrote: > I have checked up on CLOSE_WAIT and I undserstood it the wrong way > around. Here is an interesting description and possibly points to a LMS > port closing handling issue.That is more like what I found. If the local > application had released the connection, there would be no reason for the O/S to hold it until the application is closed. bpa wrote: > Does pcp have a lsof commandIt does, but the output doesn't look interesting > to me. Code: 876 /bin/busybox/dev/tty1 876 /bin/busybox/dev/tty1 876 /bin/busybox/dev/tty1 876 /bin/busybox/dev/tty 22532 /bin/busybox/dev/pts/0 22532 /bin/busybox/dev/pts/0 22532 /bin/busybox/dev/pts/0 22532 /bin/busybox/dev/tty mrw wrote: > I notice that these are https connections. Is it too fanciful to think > that a 'Reliable plugin for resilient HTTP connections' might help ?Probably > not, since it is the LMS which fails to close the connection and not the remote server prematurely closing it. But who knows ... 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 connections? Today, I was on the phone a lot, so I didn't pay much music, but there are already 97 connections waiting to be released. Code: tc@piCoreServer:~$ netstat -tn 2> /dev/null | grep CLOSE_WAIT | wc -l 97 I am sure that tomorrow, the playback issues will recur. I'll have a look at the numbers, then. 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
si Code: TcpExt: SyncookiesSent SyncookiesRecv SyncookiesFailed EmbryonicRsts PruneCalled RcvPruned OfoPruned OutOfWindowIcmps LockDroppedIcmps ArpFilter TW TWRecycled TWKilled PAWSActive PAWSEstab DelayedACKs DelayedACKLocked DelayedACKLost ListenOverflows ListenDrops TCPHPHits TCPPureAcks TCPHPAcks TCPRenoRecovery TCPSackRecovery TCPSACKReneging TCPSACKReorder TCPRenoReorder TCPTSReorder TCPFullUndo TCPPartialUndo TCPDSACKUndo TCPLossUndo TCPLostRetransmit TCPRenoFailures TCPSackFailures TCPLossFailures TCPFastRetrans TCPSlowStartRetrans TCPTimeouts TCPLossProbes TCPLossProbeRecovery TCPRenoRecoveryFail TCPSackRecoveryFail TCPRcvCollapsed TCPDSACKOldSent TCPDSACKOfoSent TCPDSACKRecv TCPDSACKOfoRecv TCPAbortOnData TCPAbortOnClose TCPAbortOnMemory TCPAbortOnTimeout TCPAbortOnLinger TCPAbortFailed TCPMemoryPressures TCPMemoryPressuresChrono TCPSACKDiscard TCPDSACKIgnoredOld TCPDSACKIgnoredNoUndo TCPSpuriousRTOs TCPMD5NotFound TCPMD5Unexpected TCPMD5Failure TCPSackShifted TCPSackMer ged TCPSackShiftFallback TCPBacklogDrop PFMemallocDrop TCPMinTTLDrop TCPDeferAcceptDrop IPReversePathFilter TCPTimeWaitOverflow TCPReqQFullDoCookies TCPReqQFullDrop TCPRetransFail TCPRcvCoalesce TCPOFOQueue TCPOFODrop TCPOFOMerge TCPChallengeACK TCPSYNChallenge TCPFastOpenActive TCPFastOpenActiveFail TCPFastOpenPassive TCPFastOpenPassiveFail TCPFastOpenListenOverflow TCPFastOpenCookieReqd TCPFastOpenBlackhole TCPSpuriousRtxHostQueues BusyPollRxPackets TCPAutoCorking TCPFromZeroWindowAdv TCPToZeroWindowAdv TCPWantZeroWindowAdv TCPSynRetrans TCPOrigDataSent TCPHystartTrainDetect TCPHystartTrainCwnd TCPHystartDelayDetect TCPHystartDelayCwnd TCPACKSkippedSynRecv TCPACKSkippedPAWS TCPACKSkippedSeq TCPACKSkippedFinWait2 TCPACKSkippedTimeWait TCPACKSkippedChallenge TCPWinProbe TCPKeepAlive TCPMTUPFail TCPMTUPSuccess TCPDelivered TCPDeliveredCE TCPAckCompressed TCPZeroWindowDrop TCPRcvQDrop TCPWqueueTooBig TcpExt: 0 0 8 533 128223 0 3861 9 1 0 31276 0 0 0 7 31349 19 13275 0 63 1277102 5558222 839400 774 462 0 514 82 5 504 5 541 1514 6551 253 12 116 1822 452 12960 12122 255 8 33 6 6294 6 8826 280 130 2625 24 271 0 0 2 106627300 0 16 3465 327 0 0 0 382 883 2180 0 0 0 0 0 0 0 0 0 2182968 89243 86229 6 0 0 0 0 0 0 0 0 0 55 0 7218 9819 9819 31432 4398 8637741 61 1026 26 1049 0 3 665 0 0 0 11 9 0 0 8670882 0 25224 0 39009 0 IpExt: InNoRoutes InTruncatedPkts InMcastPkts OutMcastPkts InBcastPkts OutBcastPkts InOctets OutOctets InMcastOctets OutMcastOctets InBcastOctets OutBcastOctets InCsumErrors InNoECTPkts InECT1Pkts InECT0Pkts InCEPkts ReasmOverlaps IpExt: 0 1 2485 0 308827 8776 3788602774 10699008456 89540 0 26727858 669756 0 10080983 0 0 0 0 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 All sockets -l Listening sockets Else: connected sockets -t TCP sockets -u UDP sockets -w Raw sockets -x Unix sockets Else: all socket types -e Other/more information -n Don't resolve names -W Wide display -p Show PID/program name for sockets 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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:3483192.168.178.207:53404 ESTABLISHED 25504/perl tcp0 0 192.168.178.101:9000192.168.178.207:37218 ESTABLISHED 25504/perl tcp0 0 192.168.178.101:3483192.168.178.204:38352 ESTABLISHED 25504/perl tcp0 49533 192.168.178.101:9000192.168.178.201:21923 ESTABLISHED 25504/perl tcp0216 192.168.178.101:22 192.168.178.104:50976 ESTABLISHED 25008/sshd: tc [pri tcp0 0 192.168.178.101:9000192.168.178.205:37825 ESTABLISHED 25504/perl tcp0 0 192.168.178.101:9000192.168.178.203:46014 ESTABLISHED 25504/perl tcp0 0 192.168.178.101:50844 151.101.114.142:443 CLOSE_WAIT 25504/perl tcp0 0 192.168.178.101:3483192.168.178.202:23262 ESTABLISHED 25504/perl tcp0 0 192.168.178.101:3483192.168.178.206:43725 ESTABLISHED 25504/perl tcp 3339072 0 192.168.178.101:50868 151.101.114.142:443 ESTABLISHED 25504/perl tcp0 0 192.168.178.101:9000192.168.178.203:46836 ESTABLISHED 25504/perl tcp0 0 192.168.178.101:3483192.168.178.201:21920 ESTABLISHED 25504/perl tcp0 0 192.168.178.101:50850 151.101.114.142:443 CLOSE_WAIT 25504/perl tcp0 0 192.168.178.101:3483192.168.178.205:52397 ESTABLISHED 25504/perl netstat: /proc/net/tcp6: No such file or directory 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 192.168.178.101:46618 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:48000 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50096 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46648 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:3483192.168.178.201:21904 ESTABLISHED - tcp0 0 192.168.178.101:46482 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50140 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46520 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46498 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46514 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50166 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:47276 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:47980 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50050 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50032 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50128 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:47282 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46546 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50116 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50084 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46540 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:3483192.168.178.207:60786 ESTABLISHED - tcp0 0 192.168.178.101:50160 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:3483192.168.178.206:43723 ESTABLISHED - tcp0 1852 192.168.178.101:22 192.168.178.104:50976 ESTABLISHED - tcp0 0 192.168.178.101:50146 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:45818 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46560 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:47946 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:9000192.168.178.205:40454 ESTABLISHED - tcp0 0 192.168.178.101:3483192.168.178.202:23251 ESTABLISHED - tcp0 0 192.168.178.101:47962 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:9000192.168.178.207:34338 ESTABLISHED - tcp0 0 192.168.178.101:46642 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:47986 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:3483192.168.178.205:56035 ESTABLISHED - tcp0 0 192.168.178.101:47954 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50152 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46554 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46466 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:45830 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50188 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46436 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50176 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:9000192.168.178.203:46808 ESTABLISHED - tcp0 0 192.168.178.101:46610 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:48006 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46490 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:50182 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46582 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:47970 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46472 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:46574 151.101.114.142:443 CLOSE_WAIT - tcp0 0 192.168.178.101:3483192.168.178.204:38350 ESTABLISHE
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 goes down, the last seconds of tracks are sometimes skipped. The Controller is still counting down the remaining time when the next track suddenly starts playing. Somebody else has already noticed this here:gvh wrote: > The issue I'm getting is that every song is being cut off early, the > next track starts a few seconds before the song is due to end. Crossfade > is off. Not sure of any other settings to check. > Nothing in the logs even with Tidal set to debug.As soon as the LMS is > restarted, this goes away, too. 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 server is out of connections. As soon as the LMS is restarted, everything is fine again. 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 they had some trouble taking off. The clock would start counting, but no music would play. After a few seconds, the music would follow, get stuck again, and start over. After one or two attempts and the occasional stuttering, the entire track less the first few seconds would play without any problem. It was the same for all tracks I tried. - On squeezelite, the MPEG-4 podcast played without any problems whatsoever. - Today, the piCorePlayer web interface was not working properly, either. The CPU temperature display for example would run into a "connection reset" error more often than not. I just restarted the LMS (took a few retries to load the LMS page), and the pCP web interface is back. Memory consumption of the LMS was at more than 210 MB and is back to 103 MB, now. Tidal tracks are playing properly again on the Receiver and on squeezelite. 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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. When the LMS has entered this state, it affects all players (actually, I haven't tested them all) and all tracks, and after a restart, all players and all tracks are fine again. 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 without down-sampling. - Local FLAC files (24 bit / 96 kHz) would play equally fine with down-sampling (to 48 kHz). - Deezer Smart Radio would play fine. - Connecting players to the LMS seemed a bit slow but worked. Unfortunately, squeezelite would not connect to the server as it had last night, so I didn't test direct streaming from Tidal, but I will, next time. In a vain hope that it would help squeezelite to connect, I restarted the LMS, and Tidal streaming was fixed. 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 was fixed when connected to the Pi. I can install a software player on a PC and test. When the problem first occurred on the Receiver, I gave up on Tidal and played web radio, instead. There were no problems with that. Back then, I still suspected network problems like you do, so I started rummaging through my router's logs instead of testing the LMS, which is why I don't know much about other music sources. 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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 interpretation. I should have added a "?". So far, there are no music files on the server, so the library consists of my Tidal favourites only. I don't do much with it, just go to -Tidal > My Favourites > Artist- on the Controller, pick an artist and album and play. I would expect the process size to increase at these points in time when it caches the album art, but it actually grows all the time while playing. The server starts new faad and flac processes for every track. For a few seconds, they have an increased CPU usage, and they die a few seconds before the track ends, so there is a buffer somewhere. I actually did not check whether the server still spawns new processes once the players get stuck. So far, I have not synchronized any players. It actually took me some time to notice that the problem is on the server because I am mainly listening with my Receiver which has its own set of problems. The server is connected to the router over 100 MBit/s Ethernet, but all players use WiFi. In case of the Receiver, there is even a WiFi repeater involved. In order to minimize my problems with the Receiver, I have moved the WiFi Repeater very close to the Receiver. It shows a signal strength of more than 90 % most of the time. The WiFi router displays connection speeds of > 200 MBit/s between router and repeater and > 50 MBit/s between repeater and Receiver. I can play an entire 24 bit 96 kHz FLAC album over that connection without any problem when the Receiver is in a good mood. When the problem occurred for the first time, I then moved to the Boom in the kitchen, and it showed the same behaviour. There is no repeater in the Boom's network path, and it has never shown any problems during playback, so far. When the problem persisted, I updated the LMS, and the problem was gone, but the next night it was back. This time, I just restarted the LMS and everything was fine again. That's when I started to monitor the processes on the server. I don't think that it is a network problem because restarting the LMS consistently helps every time. If you have an idea how I could debug the network, I can of course try. I already gave the piCore real-time priority on the router to make the inbound stream more reliable. While I am writing, I had to restart the LMS again. This time, it had only reached a size of 154 M, and the processes for transcoding were still looking good memory-wise. The CPU load does drop when the player re-buffers, but the problem appears to be on the server. re-buffering: Code: Mem: 491628K used, 1462724K free, 19816K shrd, 31664K buff, 208536K cached CPU: 0.8% usr 0.2% sys 0.0% nic 98.8% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.07 0.07 0.02 2/143 31491 PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND 15428 1 tc S 154m 8.1 0 0.7 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff 31420 31418 tc S 5404 0.2 0 0.0 /usr/local/slimserver/Bin/armhf-linux/flac -cs --totally-silent --compression-level-0 --ignore-chunk-sizes - 31418 15428 tc S 3200 0.1 1 0.0 sh -c "/usr/local/slimserver/Bin/armhf-linux/faad" -q -w -f 1 - | "/usr/local/slimserver/Bin/armhf-linux/flac" -cs --totally-silent --compression-lev 31419 31418 tc S 2780 0.1 0 0.1 /usr/local/slimserver/Bin/armhf-linux/faad -q -w -f 1 - fixed: Code: Mem: 394588K used, 1559764K free, 14484K shrd, 31664K buff, 163784K cached CPU: 1.2% usr 0.1% sys 0.0% nic 98.5% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.17 0.10 0.03 3/144 31726 PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND 31625 1 tc R 100m 5.2 0 0.4 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff 31716 31714 tc S 5404 0.2 0 0.2 /usr/local/slimserver/Bin/armhf-linux/flac -cs --totally-silent --compression-level-0 --ignore-chunk-sizes - 31714 31625 tc S 3200 0.1 1 0.0 sh -c "/usr/local/slimserver/Bin/armhf-linux/faad" -q -w -f 1 - | "/usr/local/slimserver/Bin/armhf-linux/flac" -cs --totally-silent --compression-lev 31715 31714 tc S 2780 0.1 0 0.6 /usr/local/slimserver/Bin/armhf-linux/faad -q -w -f 1 - You can see that the shared and cached memory sizes drop when the LMS is restarted. Both of these sizes do also grow constantly while the LMS is playing. I'd think that it is okay as long as there is enough free memory to go around, but the fact that they drop instantly when the LMS is restarted could hint at some kind of resource
[SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
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 for about a day, and then the connected players will suddenly start to re-buffer all the time and eventually stop playing altogether. I have been looking at CPU and memory consumption on the Pi (I don't quite understand how the in-memory file system fits into it) and noticed that the main Perl process seems to be hogging memory. When a certain limit is exceeded, the transcoding processes suddenly will not have as much memory as they used to, and the re-buffering will start. I have monitored the system with top for a day and copied the output. file system: Code: FilesystemSize Used Available Use% Mounted on tmpfs 1.7G 17.8M 1.7G 1% / tmpfs 954.3M 0954.3M 0% /dev/shm /dev/mmcblk0p2 29.1G175.0M 28.3G 1% /mnt/mmcblk0p2 LMS restarted: Code: Mem: 388012K used, 1566340K free, 14432K shrd, 31648K buff, 163864K cached CPU: 0.2% usr 0.1% sys 0.0% nic 99.5% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.14 0.08 0.08 2/139 12551 PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND 12463 1 tc S 100m 5.2 0 0.3 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff playing and scanning: Code: Mem: 453652K used, 1500700K free, 14652K shrd, 31648K buff, 178824K cached CPU: 25.2% usr 0.5% sys 0.0% nic 74.1% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.37 0.12 0.09 2/144 12573 PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND 12463 1 tc S 103m 5.4 1 0.8 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff 12572 12463 tc R62140 3.1 1 24.5 /usr/local/bin/perl /usr/local/slimserver/scanner.pl --logconfig=/usr/local/slimserver/prefs/log.conf --novideo --onlinelibrary --prefsdir=/usr/local 12571 12569 tc S 5404 0.2 1 0.1 /usr/local/slimserver/Bin/armhf-linux/flac -cs --totally-silent --compression-level-0 --ignore-chunk-sizes - 12569 12463 tc S 3200 0.1 2 0.0 sh -c "/usr/local/slimserver/Bin/armhf-linux/faad" -q -w -f 1 - | "/usr/local/slimserver/Bin/armhf-linux/flac" -cs --totally-silent --compression-lev 12570 12569 tc S 2780 0.1 0 0.2 /usr/local/slimserver/Bin/armhf-linux/faad -q -w -f 1 - playing ...: Code: Mem: 478556K used, 1475796K free, 18952K shrd, 31652K buff, 207356K cached CPU: 1.3% usr 0.1% sys 0.0% nic 98.4% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.25 0.11 0.03 3/140 13831 PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND 12463 1 tc S 140m 7.3 2 0.4 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff 13782 13780 tc S 5404 0.2 2 0.3 /usr/local/slimserver/Bin/armhf-linux/flac -cs --totally-silent --compression-level-0 --ignore-chunk-sizes - 13780 12463 tc S 3200 0.1 2 0.0 sh -c "/usr/local/slimserver/Bin/armhf-linux/faad" -q -w -f 1 - | "/usr/local/slimserver/Bin/armhf-linux/flac" -cs --totally-silent --compression-lev 13781 13780 tc S 2780 0.1 2 0.7 /usr/local/slimserver/Bin/armhf-linux/faad -q -w -f 1 - out of memory: Code: Mem: 536364K used, 1417988K free, 21760K shrd, 31656K buff, 210196K cached CPU: 0.9% usr 0.4% sys 0.0% nic 98.4% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.07 0.08 0.03 1/140 15290 PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND 12463 1 tc S 198m 10.3 0 1.0 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff 15290 15288 tc S 5272 0.2 2 0.0 /usr/local/slimserver/Bin/armhf-linux/flac -cs --totally-silent --compression-level-0 --ignore-chunk-sizes - 15288 12463 tc S 3200 0.1 0 0.0 sh -c "/usr/local/slimserver/Bin/armhf-linux/faad" -q -w -f 1 - | "/usr/local/slimserver/Bin/armhf-linux/flac" -cs --totally-silent --compression-lev 15289 15288 tc S 2748 0.1 1 0.0 /usr/local/slimserver/Bin/armhf-linux/faad -q -w -f 1 - The Perl process is constantly growing from 100m to about 200m. The faad and flac processes run with 5404 and 2780 k of memory consistently all day until the re-buffering starts. I can't make anything of it since the O/S still seems to have plenty of memory to spend on caching, but maybe somebody else can. scaleo home server 2105 & picoreplaye
Re: [SlimDevices: Unix] Picoreplayer with older LMS Version
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 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113260 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix