[mythtv-users] Streaming better than NFS

Brad DerManouelian myth at dermanouelian.com
Wed Apr 2 19:16:32 UTC 2008


Roger Heflin wrote:
> Brad DerManouelian wrote:
>> Roger Heflin wrote:
>>> Brad DerManouelian wrote:
>>>> Brian Foddy wrote:
>>>>> My NFS mounting params:
>>>>> rsize=8192,wsize=8192,hard,intr,nfsvers=3,actimeo=0,tcp
>>>> I have good luck with these settings:
>>>> intr,soft,rsize=16384,wsize=16384,nfsvers=3,tcp
>>>>
>>>> I also have gigabit ethernet with jumbo frames, so I'm not sure what it 
>>>> would do on a network without that.
>>>>
>>>> -Brad
>>>>
>>> soft is never a good idea, if anything goes wrong on your network the 
>>> application will be given an IO error and data *WILL* be lost, it is much better 
>>> to hang and not lose any data.
>> I would rather lose data than hang. Maybe that's just me.
> 
> By lose data, it will likely cause mythbackend to receive an IO error, and if it 
> does not have code to deal with that (I don't know if it does) it will may abort 
> and crash, and just stop recording anything until someone manually intervenes to 
> restart the backend.
> 
> Also, you will only get a hang if your NFS server is down, or if the network to 
> it is down, you can get an IO error and an abort if your network has issues (too 
> busy, network switch restart), were as with hard it will retry and go on like 
> nothing happened-once the issue goes away, and the hang will only be the 
> applications that are accessing the NFS partition, and only if there is a very 
> bad event around the NFS server.
> 
> And note if the application does not do error checking you will lose data and 
> you may not know it until you try to read the file.
> 
> I would much rather hang than silently lose data.

I think I changed it from hard to soft when I would watch something and 
the frontend would become completely unresponsive due to network issues. 
At least with soft, it bailed out of what I was watching and returned to 
the main menu. The backend also seemed resilient to the file suddenly 
going away. From what I remember it just threw a bunch of errors in my 
log and eventually stopped trying to write to the file instead of 
waiting for me to fix my network problem or manually kill the process.

Ultimately, it doesn't matter. It works for me.


More information about the mythtv-users mailing list