RPi2 - tuning CIFS network mounts

Raspberry Pi related support

RPi2 - tuning CIFS network mounts

Postby richardcwhitfield » 13 Nov 2015, 09:19

Hi All,

I have a Raspberry Pi-2 (RPi2) with a hifiberry Digi+ where the fibre SPDIF goes to a Yamaha amplifier. The RPi2 is running RuneAudio 0.3-Beta and uses a USB wifi dongle to connect to my home network. On the network I have a Synology DS414j NAS with a music directory set up as a CIFS/SMB mount.

When everything is set up using the default configuration settings, I get significant stuttering in the music being played - at random intervals every several seconds it goes silent for a fraction of a second. I tried increasing the MPD audio buffer size in increments up to 10240 kilobytes, and it significantly reduced the problem but did not completely get rid of it.

I suspect that the problem is the wifi network connection and I found in the advanced setting for the network mounts a comment to say change rsize/wsize if you experience problems with music playback, eg clicks and pops. Not stuttering, but something.
So, I looked into rsize and wsize, rsize is the network read size which defaults at 16kB, but in theory can be much bigger. wsize is the write buffer size, but given that the network mount is read-only it should be irrelevant. Also, the standard mount flag is cache=none but I want to minimize network traffic and so I think caching should be a plus.

Any comments/experience in using the following config:
rsize=65536 (64K)
wsize leave at default
cache=strict

I will try it out and report back to this topic.

Thanks,
Richard
richardcwhitfield
 
Posts: 2
Joined: 07 Nov 2015, 09:54

Re: RPi2 - tuning CIFS network mounts

Postby richardcwhitfield » 13 Nov 2015, 11:14

Hi All,

Increasing rsize to 64K and changing to cache=strict seems to have worked quite well. The system has been running for more than 1 hour without any stuttering, and I have tried jumping round in the play queue and it does not seem to give any problems.

I have checked my Synology DS414j and it is currently using SMB 2 to share files with clients - I have asked their tech support for how big I can make rsize on the client side without breaking anything. It also says that I could use "SMB 2 and large MTU" or SMB 3, so my question is now, is what does ArchLinux/RuneAudio support - can or should I change to SMB 2 and large MTU or SMB 3, if these are supported/better?

Given that all the files being transferred are music, ie big files, I expect that larger read sizes will generally be better.

Any advice would be appreciated.

Richard
richardcwhitfield
 
Posts: 2
Joined: 07 Nov 2015, 09:54

Re: RPi2 - tuning CIFS network mounts

Postby Discovery » 13 Nov 2015, 22:33

Hi Richard,

I have your configuration (RPI2/Digi+). Try using an RCA cable instead of the optical link and tell me if you notice a difference in the bass frequencies. You may be surprised...

Trevor
Discovery
 
Posts: 110
Joined: 06 May 2015, 08:22
Location: Cambridgeshire, UK

Re: RPi2 - tuning CIFS network mounts

Postby Spiralgalaxy5 » 04 Dec 2016, 22:12

Spiralgalaxy5
 
Posts: 6
Joined: 04 Dec 2016, 20:26

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 7 guests
cron