miniDLNA series 4 issue.

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

miniDLNA series 4 issue.

Postby hpglow » Sun Apr 29, 2012 4:45 am

My PS3 is throwing DLNA errors when I stream most content from my PP s4, not all content does it. Sometimes I get an error on screen and sometimes I get an issue where the audio stops but the video continues on then the video locks and waits for the audio to catch up. Every now and then the PS3 just drops out of playback (SD, HD it dosn't matter.) At first I thought this was an issue related to the fact that I was using wireless, but I have since run a cable. The PP and PS3 are on the same sub-domain currently.

What can I check? Bechmarks, utilities, ect to tell me what is the issue? I know that my CPU is often pegged and that the memory is at capacity, but I figured this was par for the course for an ARM device with 128MB.
hpglow
 
Posts: 25
Joined: Sun Mar 04, 2012 6:46 pm

Re: miniDLNA series 4 issue.

Postby WarheadsSE » Sun Apr 29, 2012 8:04 pm

If you are doing any transcoding, this is just plain bound to happen.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: miniDLNA series 4 issue.

Postby hpglow » Sun Apr 29, 2012 10:11 pm

It shouldn't be any transcoding. It should just be serving up the data. To be fair I don't know if my router is a POS or if this is a software issue with my setup.

Seems like there is always one issue or another these days. I guess I will go over my settings again and see if there is anything odd.
hpglow
 
Posts: 25
Joined: Sun Mar 04, 2012 6:46 pm

Re: miniDLNA series 4 issue.

Postby schn4rk » Tue May 01, 2012 12:57 pm

I use minidlna pretty heavily on my V4 and you could be onto something here. I've been experiencing similar behaviour but in my case I stream to a Philips media player that doesn't actually report any errors - however I do get the audio/video cutouts occasionally. In the absence of those error messages I had suspected the Philips box as the culprit, though. Might need to do some diagnostics to nail it down. It seems to happen when I've been streaming stuff for a while in one session, so to speak, becoming more frequent the longer I watch stuff, so perhaps some sort of memory/cache issue? I'll report back if I find anything more solid.
schn4rk
 
Posts: 20
Joined: Mon Jan 09, 2012 8:55 am

Re: miniDLNA series 4 issue.

Postby hpglow » Wed May 02, 2012 3:23 am

It is kind of odd because I can copy a whole episode of Game of Thrones to the PS3 from the PP S4 in under 5 min easy but to stream that content is almost impossible. Once copied it plays fine, but I don't want to have to copy data to be able to play it.

Today I added a switch to my network to see if may be it was my router being a slug, but I have not have time to test it yet. It would just be nice if there were some software that could tell me what the issue was.
hpglow
 
Posts: 25
Joined: Sun Mar 04, 2012 6:46 pm

Re: miniDLNA series 4 issue.

Postby schn4rk » Wed May 02, 2012 7:03 am

$this->bbcode_second_pass_quote('hpglow', 'I')t is kind of odd because I can copy a whole episode of Game of Thrones to the PS3 from the PP S4 in under 5 min easy but to stream that content is almost impossible. Once copied it plays fine, but I don't want to have to copy data to be able to play it.

Today I added a switch to my network to see if may be it was my router being a slug, but I have not have time to test it yet. It would just be nice if there were some software that could tell me what the issue was.

I can't think of a reason why the router would be at fault here. My gut tells me this is probably a (minor) bug in minidlna and that our v4 pogoplugs are more susceptible than, say, the v2, because of either the slower CPU or smaller RAM - most likely the latter.

I came across an interesting post on the minidlna forum which makes me think I'm onto something:
$this->bbcode_second_pass_quote('', 'I') installed minidlna 1.0.21-1 on an Arch Linux ARM distribution (Pogoplug). It works great! However I found its memory usage increases over time. For example, it started by using 39MB virtual memory and 9MB resident memory. It then constantly using more memory, in the rate at around 2.5MB per hour. For example, after 8 hours, the memory usage increased to 60MB virtual and 29MB resident. It is not the media scanning, because the memory usage never stopped increasing. Since my Pogoplug box is tight on memory, it is sensitive to this kind of memory leak.

The fact that this user is also using some kind of pogoplug is more a funny coincidence than anything - it's the memory leak that is really interesting. The thread there suggests a bug was indeed found and the fix committed to the CVS,

EDIT: Found what seems to be the patch mentioned above, on github. Seems to only have affected certain clients anyway (Samsung TVs, Roku): https://github.com/azatoth/minidlna/com ... 1f83a72a7c

However there was another interesting commit relating to memory leakage there: https://github.com/azatoth/minidlna/com ... 0a8fd463c0

Still investigating..!
schn4rk
 
Posts: 20
Joined: Mon Jan 09, 2012 8:55 am

Re: miniDLNA series 4 issue.

Postby hpglow » Thu May 03, 2012 3:49 am

$this->bbcode_second_pass_quote('schn4rk', '')$this->bbcode_second_pass_quote('hpglow', 'I')t is kind of odd because I can copy a whole episode of Game of Thrones to the PS3 from the PP S4 in under 5 min easy but to stream that content is almost impossible. Once copied it plays fine, but I don't want to have to copy data to be able to play it.

Today I added a switch to my network to see if may be it was my router being a slug, but I have not have time to test it yet. It would just be nice if there were some software that could tell me what the issue was.

I can't think of a reason why the router would be at fault here. My gut tells me this is probably a (minor) bug in minidlna and that our v4 pogoplugs are more susceptible than, say, the v2, because of either the slower CPU or smaller RAM - most likely the latter.

I came across an interesting post on the minidlna forum which makes me think I'm onto something:
$this->bbcode_second_pass_quote('', 'I') installed minidlna 1.0.21-1 on an Arch Linux ARM distribution (Pogoplug). It works great! However I found its memory usage increases over time. For example, it started by using 39MB virtual memory and 9MB resident memory. It then constantly using more memory, in the rate at around 2.5MB per hour. For example, after 8 hours, the memory usage increased to 60MB virtual and 29MB resident. It is not the media scanning, because the memory usage never stopped increasing. Since my Pogoplug box is tight on memory, it is sensitive to this kind of memory leak.

The fact that this user is also using some kind of pogoplug is more a funny coincidence than anything - it's the memory leak that is really interesting. The thread there suggests a bug was indeed found and the fix committed to the CVS,

EDIT: Found what seems to be the patch mentioned above, on github. Seems to only have affected certain clients anyway (Samsung TVs, Roku): https://github.com/azatoth/minidlna/com ... 1f83a72a7c

However there was another interesting commit relating to memory leakage there: https://github.com/azatoth/minidlna/com ... 0a8fd463c0

Still investigating..!


Good work. I will look into this over the weeked. Unfortunatly work is sucking all the life out of me right now.
hpglow
 
Posts: 25
Joined: Sun Mar 04, 2012 6:46 pm
Top

Re: miniDLNA series 4 issue.

Postby kmihelich » Thu May 03, 2012 5:54 am

Remember to consider dates and versions when you quote other information. The current version in the repositories is 1.0.24, not 1.0.21.

Now for some real and anecdotal points before this thread gets too out of control on speculation. There doesn't appear to be any memory issues, otherwise the minidlna server that has been running on my PPv4 for over a month would be using more than 3.4% RAM. The DLNA client matters 100%, however. Most companies don't fully implement support, do a poor job of it, or have a limited selection of codecs which themselves may have issues. Samsung has been a well-noted offender, and Sony just does their own thing, they always have. Using DLNA, you're streaming the content as-is, so it is up to the client device to deal with the content on its own terms. If you've verified there are no networking issues either with physical connections or the capability of your equipment to handle sustained transfers among other network traffic, you really have only two places left to look. Either the client device can't handle it, or you're absolutely demolishing the plug with some other process(es). The latter is hard to accomplish though, as I can still compile and compress archives on the PPv4 while streaming 1080p material.

I've never had a problem streaming to either my Logitech Revue or WDTV that I couldn't attribute to an external factor, and in those cases I know that what I'm doing in tandem with streaming has the distinct possibility of disrupting my viewing pleasure. I don't bother with the PS3 because it lacks a wide support of formats and because I'm paying the power bill (5 watts is far better than nearly 200), but mostly because it's entirely inconsistent in its ability to perform with formats that it should support. I know people love integrated solutions in the equipment they already own, but if you really want to use DLNA as the multimedia platform for your home you need to consider using equipment that is proven. Otherwise, you'll need to move off of a plug to run a transcoding DLNA server on more powerful hardware to accommodate the shortcomings of what you do own.

One last thing: if you're running your system, content storage, etc., all from USB, you can easily run yourself into being I/O bound. I use only SATA-connected drives and experience no issues, so this is also something to consider about your setup.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: miniDLNA series 4 issue.

Postby schn4rk » Thu May 03, 2012 8:31 am

$this->bbcode_second_pass_quote('kmihelich', 'R')emember to consider dates and versions when you quote other information. The current version in the repositories is 1.0.24, not 1.0.21.

Indeed. I guess the question I was stuck on related more to the second patch I linked to, because I wasn't immediately sure whether it had been brought over into the mainline code. But it's something I could have (and still intend to) confirm by examining the current code more closely.

Sorry for getting so carried away with speculation!
$this->bbcode_second_pass_quote('kmihelich', 'N')ow for some real and anecdotal points before this thread gets too out of control on speculation. There doesn't appear to be any memory issues, otherwise the minidlna server that has been running on my PPv4 for over a month would be using more than 3.4% RAM. The DLNA client matters 100%, however. Most companies don't fully implement support, do a poor job of it, or have a limited selection of codecs which themselves may have issues. Samsung has been a well-noted offender, and Sony just does their own thing, they always have. Using DLNA, you're streaming the content as-is, so it is up to the client device to deal with the content on its own terms. If you've verified there are no networking issues either with physical connections or the capability of your equipment to handle sustained transfers among other network traffic, you really have only two places left to look. Either the client device can't handle it, or you're absolutely demolishing the plug with some other process(es). The latter is hard to accomplish though, as I can still compile and compress archives on the PPv4 while streaming 1080p material.

The PPv4 anecdotal info is really valuable, especially coming from you! So, thanks. Indeed, I can typically install a new package while streaming HD video (720p as I tend not to bother with 1080p much, personally). I guess that's why the possibility of a memory leak issue sparked my interest, because typically I don't experience issues until I have been streaming stuff for a little while in one session, so to speak.

Still, the point about how much the client matters does resonate with me. I know my Philips player can decode everything I've been trying to play, but I also know that it is not really an optimal DLNA client, insofaras it can't do things like subtitles over DLNA, even though it can handle them from an attached drive. I've poked around the Philips forums, and one of their devs has straight out said that this is because the DLNA standard doesn't support that at this stage. I know that's a half-truth at best, so it doesn't fill me with confidence about the quality of their client overall. For all I know, it could be a hardware issue with the player, too.

On the other hand, I still feel like it might be worth my time to investigate further the possibility of patching minidlna to cater to whatever quirks the Philips player has. I know this has happened with other brands of client, but obviously the Philips isn't very popular, so I might be on my own with this. That's fine though, it's part of the fun of rolling your own solution, isn't it? :)

I'll refrain from posting more speculation here, but if I find anything solid and relevant I will share it.

Finally - I am running my v4 from SATA also, so I'm pretty confident that's not the issue, but that's a really good point.
schn4rk
 
Posts: 20
Joined: Mon Jan 09, 2012 8:55 am
Top

Re: miniDLNA series 4 issue.

Postby hpglow » Fri May 04, 2012 3:57 am

I stream from a USB 3.0 jack. The OS is installed on a USB 2.0 flash drive, and the swap is on the the USB 3.0 media drive. I could switch the OS to a faster SATA drive or rip the USB 3.0 drive from it's enclosure and run a cable to it but it seems like there should be plenty of bandwidth on the 3.0 bus to handle one drive.

I am not that great with Linux, but all I have installed on my PP S4 is Samba, minidlna, and cryptodev. So there shouldn't be real issues, since I am not very familure with Linux though I don't really know what is the bare minimum that should be running to pull off what I am doing. If someone has a list of that stuff I would apprecieate it. Then I can stop/remove everything I don't need.
hpglow
 
Posts: 25
Joined: Sun Mar 04, 2012 6:46 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 2 guests

cron