Re: Asset UPnP for Raspberry pi
Hi Simon (simes_pep)
My understanding from the Linux docs is that net.core.rmem_default and net.core.rmem_max entries both take effect only for protocols that do not have more specific tunables available. For example, in the rmem case TCP has more specific tunable with the net.ipv4.tcp_rmem setting. For UDP, which doesn't have a more specific tunable, the net.core.rmem_* settings are relevant.
For the CIFS rsize setting you have set, this should be taking effect as this is the same as the max configued in net.ipv4.tcp_rmem. You will of course have to remount the CIFS share for the change to take effect (I'm assuming you have done this).
Interesting. When transcoding a 192/24 FLAC to WAV on my Pi I see a max CPU of about 18% for the Asset process and about 2.3% for the smbd mount process, and the Pi has about 78% idle CPU. I'm running the cutdown Minibian image instead of standard Raspbian image, however I still wouldn't have expected such a big difference in CPU usage. Could be a difference in the compression setting in your FLACs vs mine perhaps?
I played around with default size in net.ipv4.tcp_wmem, using 4k, 8k, 16k, 1MB and 2MB, and I saw the behaviour change most significantly with 1MB and 2MB sizes - the Naim's buffer % initially improving, then degrading to much worse than with the smaller settings, so I abandoned this line of tuning.
Cheers,
Dunc
Hi Simon (simes_pep)
My understanding from the Linux docs is that net.core.rmem_default and net.core.rmem_max entries both take effect only for protocols that do not have more specific tunables available. For example, in the rmem case TCP has more specific tunable with the net.ipv4.tcp_rmem setting. For UDP, which doesn't have a more specific tunable, the net.core.rmem_* settings are relevant.
For the CIFS rsize setting you have set, this should be taking effect as this is the same as the max configued in net.ipv4.tcp_rmem. You will of course have to remount the CIFS share for the change to take effect (I'm assuming you have done this).
Interesting. When transcoding a 192/24 FLAC to WAV on my Pi I see a max CPU of about 18% for the Asset process and about 2.3% for the smbd mount process, and the Pi has about 78% idle CPU. I'm running the cutdown Minibian image instead of standard Raspbian image, however I still wouldn't have expected such a big difference in CPU usage. Could be a difference in the compression setting in your FLACs vs mine perhaps?
I played around with default size in net.ipv4.tcp_wmem, using 4k, 8k, 16k, 1MB and 2MB, and I saw the behaviour change most significantly with 1MB and 2MB sizes - the Naim's buffer % initially improving, then degrading to much worse than with the smaller settings, so I abandoned this line of tuning.
Cheers,
Dunc
Comment