Keeps freezing and requiring a power cycle since June Update

Hi,

I hope you can help, since installing the latest update last night my Pi keeps seizing and requiring a power cycle when watching media that it was playing fine the day before.

I’ve looked at the settings where I can and can’t see anything changed or missing so I turned on logging and have uploaded the log file.

Logfile → https://paste.osmc.tv/dihemeniwu

Willing to try any suggestions short of replacing the Pi.

Many Thanks.

I would remove these lines from your RPi’s config.txt file and see if that helps…

arm_freq=950
core_freq=450
sdram_freq=450
over_voltage=6

If that doesn’t fix the issue I would try another power supply. They have a tendency to fail over time.

Thanks, I’ll give it a go.

This seems to have worked.

I tried a number of different power supplies that were not in use and they all failed to supply enough current, but the original one works once the overclock settings are removed.

Many Thanks.

1 Like

fyi the memorysize line in your advancedsettings.xml shouldn’t be working. According to the wiki the value you use for a buffer uses 3x it’s amount in RAM. 150MB cache isn’t going to fit in 384MB RAM with an operating system + software + that cache.
The other thing is the log shows you have some characters behind value, I’m not sure what that does. I know if you use just numbers it works correct.

Thanks for the heads up, I have now changed the value to 26214400 which I hope is more suitable.

I can’t see any extra characters when editing the file using nano so hopefully this will help with movie playback.

:slight_smile:

There really should not be a need to adjust the Cache at all for LAN playback especially with you already running NFS and system mounts. You might want to run iperf to check for a connection issue if your having problems. I did notice that you disallowed 50hz and 60hz switching in your whitelist and I could anticipate this leading to suboptimal playback of some content.

Thanks,

I’ll look into that, I think that them main issue might just be the limitation of the transfer speeds of the Pi as it is by far the slowest machine on the network.

I should upgrade to a faster machine as my Pi is very old now, I’ve looked at the Pi Model 4B but as there is no OSMC for it currently that’s out of the running for now.

A Vero 4K+ would probably obviate many of the problems I’ve had and it is something I’ve been seriously considering, but on the plus side I’ve learned a lot addressing the issues and finding out more about how things work so despite the issues it hasn’t been all bad.

The maximum transfer rate of a full HD Blu-ray rip is only 54mb/s so the lack of a full 1000mb/s network connection should not be much of an issue.

1 Like

Thank you for the advice and the link.

I tried it as recommended and this is the result I received

osmc@osmc:~$ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 59925
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 59926
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.00   sec  3.44 MBytes  28.9 Mbits/sec    1    103 KBytes
[  5]   1.00-2.07   sec  3.38 MBytes  26.5 Mbits/sec    1   88.4 KBytes
[  5]   2.07-3.00   sec  3.31 MBytes  29.9 Mbits/sec    0    114 KBytes
[  5]   3.00-4.01   sec  3.62 MBytes  30.1 Mbits/sec    2    101 KBytes
[  5]   4.01-5.00   sec  3.77 MBytes  31.9 Mbits/sec    1   91.2 KBytes
[  5]   5.00-6.64   sec  5.74 MBytes  29.4 Mbits/sec    0    133 KBytes
[  5]   6.64-7.64   sec  3.75 MBytes  31.4 Mbits/sec    0    151 KBytes
[  5]   7.64-8.00   sec  1.47 MBytes  34.0 Mbits/sec   12    114 KBytes
[  5]   8.00-9.15   sec  4.26 MBytes  31.1 Mbits/sec    0    140 KBytes
[  5]   9.15-10.00  sec  1.84 MBytes  18.1 Mbits/sec   21   79.8 KBytes
[  5]  10.00-10.01  sec  0.00 Bytes  0.00 bits/sec    0   81.3 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.01  sec  34.6 MBytes  29.0 Mbits/sec   38             sender
[  5]   0.00-10.01  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

And here is the other

Accepted connection from 192.168.11.4, port 59929
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 59930
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec   508 KBytes  4.16 Mbits/sec
[  5]   1.00-2.00   sec  1.25 MBytes  10.5 Mbits/sec
[  5]   2.00-3.00   sec  2.41 MBytes  20.2 Mbits/sec
[  5]   3.00-4.00   sec  2.41 MBytes  20.2 Mbits/sec
[  5]   4.00-5.00   sec  2.05 MBytes  17.2 Mbits/sec
[  5]   5.00-6.00   sec  1.51 MBytes  12.7 Mbits/sec
[  5]   6.00-7.00   sec   871 KBytes  7.14 Mbits/sec
[  5]   7.00-8.00   sec  1.55 MBytes  13.0 Mbits/sec
[  5]   8.00-9.00   sec  1.46 MBytes  12.3 Mbits/sec
[  5]   9.00-10.00  sec  1.53 MBytes  12.9 Mbits/sec
[  5]  10.00-10.04  sec  52.8 KBytes  10.2 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.04  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.04  sec  15.6 MBytes  13.0 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

For good measure I also ran the tests with Windows Firewall turned off.

c:\iperf3>iperf3.exe -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.3, port 48694
[  5] local 192.168.11.4 port 5201 connected to 192.168.11.3 port 48696
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec  2.38 MBytes  19.9 Mbits/sec
[  5]   1.00-2.00   sec  3.12 MBytes  26.2 Mbits/sec
[  5]   2.00-3.00   sec  3.00 MBytes  25.2 Mbits/sec
[  5]   3.00-4.00   sec  3.12 MBytes  26.2 Mbits/sec
[  5]   4.00-5.00   sec  3.38 MBytes  28.3 Mbits/sec
[  5]   5.00-6.00   sec  3.25 MBytes  27.3 Mbits/sec
[  5]   6.00-7.00   sec  2.75 MBytes  23.0 Mbits/sec
[  5]   7.00-8.00   sec  3.00 MBytes  25.2 Mbits/sec
[  5]   8.00-9.00   sec  3.12 MBytes  26.2 Mbits/sec
[  5]   9.00-10.00  sec  3.00 MBytes  25.2 Mbits/sec
[  5]  10.00-10.06  sec   256 KBytes  32.4 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.06  sec  30.4 MBytes  25.3 Mbits/sec                  sender
[  5]   0.00-10.06  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.3, port 48698
[  5] local 192.168.11.4 port 5201 connected to 192.168.11.3 port 48700
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec  1.12 MBytes  9.43 Mbits/sec
[  5]   1.00-2.00   sec  2.75 MBytes  23.1 Mbits/sec
[  5]   2.00-3.00   sec  3.38 MBytes  28.3 Mbits/sec
[  5]   3.00-4.00   sec  3.12 MBytes  26.2 Mbits/sec
[  5]   4.00-5.00   sec  2.50 MBytes  21.0 Mbits/sec
[  5]   5.00-6.00   sec  2.75 MBytes  23.1 Mbits/sec
[  5]   6.00-7.00   sec  2.75 MBytes  23.1 Mbits/sec
[  5]   7.00-8.00   sec  2.75 MBytes  23.0 Mbits/sec
[  5]   8.00-9.00   sec  2.88 MBytes  24.1 Mbits/sec
[  5]   9.00-10.00  sec  2.50 MBytes  21.0 Mbits/sec
[  5]  10.00-10.06  sec   256 KBytes  37.0 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.06  sec  26.8 MBytes  22.3 Mbits/sec                  sender
[  5]   0.00-10.06  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

I did some reading and the max throughput should be around 65mb/s on my model so I’m falling well short of that.

Also quite a bit slower than 54mb/s, the question of course now is where do I go from here in debugging the speed issue?

I tried from a PC on the network to the storage machine and the speeds were as expected (see below) so I don’t think that the issue is with the storage machine.

d:\iperf3>iperf3 -R -c 192.168.11.4
Connecting to host 192.168.11.4, port 5201
Reverse mode, remote host 192.168.11.4 is sending
[  4] local 192.168.11.6 port 50180 connected to 192.168.11.4 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   112 MBytes   940 Mbits/sec
[  4]   1.00-2.00   sec   112 MBytes   937 Mbits/sec
[  4]   2.00-3.00   sec   112 MBytes   937 Mbits/sec
[  4]   3.00-4.00   sec   112 MBytes   939 Mbits/sec
[  4]   4.00-5.00   sec   112 MBytes   940 Mbits/sec
[  4]   5.00-6.00   sec   112 MBytes   936 Mbits/sec
[  4]   6.00-7.00   sec   112 MBytes   940 Mbits/sec
[  4]   7.00-8.00   sec   111 MBytes   932 Mbits/sec
[  4]   8.00-9.00   sec   112 MBytes   940 Mbits/sec
[  4]   9.00-10.00  sec   112 MBytes   937 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  1.09 GBytes   938 Mbits/sec                  sender
[  4]   0.00-10.00  sec  1.09 GBytes   938 Mbits/sec                  receiver

iperf Done.

d:\iperf3>iperf3 -c 192.168.11.4
Connecting to host 192.168.11.4, port 5201
[  4] local 192.168.11.6 port 50194 connected to 192.168.11.4 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   110 MBytes   921 Mbits/sec
[  4]   1.00-2.00   sec   111 MBytes   929 Mbits/sec
[  4]   2.00-3.00   sec   110 MBytes   927 Mbits/sec
[  4]   3.00-4.00   sec   110 MBytes   923 Mbits/sec
[  4]   4.00-5.00   sec   111 MBytes   930 Mbits/sec
[  4]   5.00-6.00   sec   110 MBytes   924 Mbits/sec
[  4]   6.00-7.00   sec   110 MBytes   927 Mbits/sec
[  4]   7.00-8.00   sec   111 MBytes   931 Mbits/sec
[  4]   8.00-9.00   sec   111 MBytes   930 Mbits/sec
[  4]   9.00-10.00  sec   112 MBytes   935 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  1.08 GBytes   928 Mbits/sec                  sender
[  4]   0.00-10.00  sec  1.08 GBytes   928 Mbits/sec                  receiver

iperf Done.

Swapping out ethernet cables is probably the best place to start, and most common point of failure. If your RPi is at the end of a long run or using structured wiring then either physically move the RPi closer to the switch for testing, or else plug in a laptop or other machine where the RPi is currently plugged in and see if you can get good numbers from that other machine. If you can’t find an issue with the cabling then you might look at other equipment, but it is hard to say much about that knowing nothing about what hardware your using.

Which model do you have? This is what I get on my oldest RPi which is a 2B with only 100mb/s NIC.

Connecting to host 192.168.254.201, port 5201
Reverse mode, remote host 192.168.254.201 is sending
[  4] local 192.168.254.222 port 60118 connected to 192.168.254.201 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  11.3 MBytes  94.9 Mbits/sec
[  4]   1.00-2.00   sec  11.3 MBytes  94.9 Mbits/sec
[  4]   2.00-3.00   sec  11.3 MBytes  94.9 Mbits/sec
[  4]   3.00-4.00   sec  11.3 MBytes  94.8 Mbits/sec
[  4]   4.00-5.00   sec  11.3 MBytes  94.9 Mbits/sec
[  4]   5.00-6.00   sec  11.3 MBytes  94.9 Mbits/sec
[  4]   6.00-7.00   sec  11.3 MBytes  94.8 Mbits/sec
[  4]   7.00-8.00   sec  11.3 MBytes  94.9 Mbits/sec
[  4]   8.00-9.00   sec  11.3 MBytes  94.9 Mbits/sec
[  4]   9.00-10.00  sec  11.3 MBytes  94.9 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec   113 MBytes  95.0 Mbits/sec                  sender
[  4]   0.00-10.00  sec   113 MBytes  95.0 Mbits/sec                  receiver

And on my RPi 3B+ with (crippled by USB 2.0) gigabit I get…

Connecting to host 192.168.254.201, port 5201
Reverse mode, remote host 192.168.254.201 is sending
[  4] local 192.168.254.224 port 40194 connected to 192.168.254.201 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  14.6 MBytes   122 Mbits/sec
[  4]   1.00-2.00   sec  36.3 MBytes   305 Mbits/sec
[  4]   2.00-3.00   sec  36.1 MBytes   303 Mbits/sec
[  4]   3.00-4.00   sec  36.5 MBytes   306 Mbits/sec
[  4]   4.00-5.00   sec  36.2 MBytes   304 Mbits/sec
[  4]   5.00-6.00   sec  35.9 MBytes   301 Mbits/sec
[  4]   6.00-7.00   sec  35.8 MBytes   300 Mbits/sec
[  4]   7.00-8.00   sec  36.3 MBytes   305 Mbits/sec
[  4]   8.00-9.00   sec  35.6 MBytes   299 Mbits/sec
[  4]   9.00-10.00  sec  35.3 MBytes   296 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec   339 MBytes   284 Mbits/sec                  sender
[  4]   0.00-10.00  sec   339 MBytes   284 Mbits/sec                  receiver

I have the original Pi Model B, as I said, old!

I have dug out a laptop and done some more testing, with the laptop connected via cable to the same switch as the Pi I manage a reasonable average of 48Mb/s

Connecting to host 192.168.11.25, port 5201
Reverse mode, remote host 192.168.11.25 is sending
[  4] local 192.168.11.3 port 32904 connected to 192.168.11.25 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.01   sec  4.49 MBytes  37.3 Mbits/sec
[  4]   1.01-2.03   sec  6.38 MBytes  52.4 Mbits/sec
[  4]   2.03-3.04   sec  5.50 MBytes  45.7 Mbits/sec
[  4]   3.04-4.02   sec  5.62 MBytes  48.0 Mbits/sec
[  4]   4.02-5.02   sec  5.62 MBytes  47.4 Mbits/sec
[  4]   5.02-6.01   sec  6.00 MBytes  50.6 Mbits/sec
[  4]   6.01-7.04   sec  5.75 MBytes  47.0 Mbits/sec
[  4]   7.04-8.00   sec  5.00 MBytes  43.5 Mbits/sec
[  4]   8.00-9.03   sec  5.88 MBytes  48.1 Mbits/sec
[  4]   9.03-10.04  sec  5.75 MBytes  47.9 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.04  sec  56.6 MBytes  47.3 Mbits/sec                  sender
[  4]   0.00-10.04  sec  56.2 MBytes  47.0 Mbits/sec                  receiver

iperf Done.
osmc@osmc:~$ iperf3 -c 192.168.11.25
Connecting to host 192.168.11.25, port 5201
[  4] local 192.168.11.3 port 32908 connected to 192.168.11.25 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.10   sec  6.25 MBytes  47.7 Mbits/sec    0    137 KBytes
[  4]   1.10-2.17   sec  6.25 MBytes  49.2 Mbits/sec    0    137 KBytes
[  4]   2.17-3.00   sec  5.00 MBytes  50.2 Mbits/sec    0    144 KBytes
[  4]   3.00-4.04   sec  6.25 MBytes  50.5 Mbits/sec    0    144 KBytes
[  4]   4.04-5.07   sec  6.25 MBytes  50.6 Mbits/sec    0    144 KBytes
[  4]   5.07-6.11   sec  6.25 MBytes  50.7 Mbits/sec    0    144 KBytes
[  4]   6.11-7.16   sec  6.25 MBytes  49.8 Mbits/sec    0    144 KBytes
[  4]   7.16-8.19   sec  6.25 MBytes  51.1 Mbits/sec    0    144 KBytes
[  4]   8.19-9.11   sec  5.00 MBytes  45.5 Mbits/sec    0    144 KBytes
[  4]   9.11-10.05  sec  5.00 MBytes  44.7 Mbits/sec    0    144 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.05  sec  58.8 MBytes  49.1 Mbits/sec    0             sender
[  4]   0.00-10.05  sec  58.7 MBytes  49.1 Mbits/sec                  receiver

iperf Done.

However from the laptop to the file server this drops to an average of about 32Mb/s

c:\iperf3>iperf3.exe -R -c 192.168.11.25
Connecting to host 192.168.11.25, port 5201
Reverse mode, remote host 192.168.11.25 is sending
[  4] local 192.168.11.4 port 63328 connected to 192.168.11.25 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  4.30 MBytes  36.1 Mbits/sec
[  4]   1.00-2.00   sec  4.08 MBytes  34.2 Mbits/sec
[  4]   2.00-3.00   sec  3.53 MBytes  29.6 Mbits/sec
[  4]   3.00-4.00   sec  3.74 MBytes  31.3 Mbits/sec
[  4]   4.00-5.00   sec  4.00 MBytes  33.6 Mbits/sec
[  4]   5.00-6.00   sec  3.82 MBytes  32.1 Mbits/sec
[  4]   6.00-7.00   sec  3.58 MBytes  30.0 Mbits/sec
[  4]   7.00-8.00   sec  3.82 MBytes  32.0 Mbits/sec
[  4]   8.00-9.00   sec  3.54 MBytes  29.7 Mbits/sec
[  4]   9.00-10.00  sec  3.74 MBytes  31.4 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  38.4 MBytes  32.2 Mbits/sec                  sender
[  4]   0.00-10.00  sec  38.3 MBytes  32.1 Mbits/sec                  receiver

iperf Done.

c:\iperf3>iperf3.exe -c 192.168.11.25
Connecting to host 192.168.11.25, port 5201
[  4] local 192.168.11.4 port 63331 connected to 192.168.11.25 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  2.75 MBytes  23.1 Mbits/sec
[  4]   1.00-2.00   sec  4.25 MBytes  35.7 Mbits/sec
[  4]   2.00-3.00   sec  4.38 MBytes  36.7 Mbits/sec
[  4]   3.00-4.00   sec  4.38 MBytes  36.7 Mbits/sec
[  4]   4.00-5.00   sec  4.00 MBytes  33.6 Mbits/sec
[  4]   5.00-6.00   sec  4.12 MBytes  34.6 Mbits/sec
[  4]   6.00-7.00   sec  3.50 MBytes  29.4 Mbits/sec
[  4]   7.00-8.00   sec  3.00 MBytes  25.2 Mbits/sec
[  4]   8.00-9.00   sec  3.62 MBytes  30.4 Mbits/sec
[  4]   9.00-10.00  sec  4.12 MBytes  34.6 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  38.1 MBytes  32.0 Mbits/sec                  sender
[  4]   0.00-10.00  sec  38.0 MBytes  31.9 Mbits/sec                  receiver

iperf Done.

I suspect that the issue is the TP-Link TL-PA4010KIT Nano AV600 Powerline Adapters used to get the network from one end of the building to the other.

As I can’t run a physical cable this seemed the best option and a quick test with iperf over WiFi shows that it is still faster (and I’d guess more reliable) than the WiFi option.

All that is left for me to do is to try to find out why the laptop manages 32Mb/s but the Pi is in the 22Mb/s - 25Mb/s range.

It isn’t a huge difference, but may be enough to explain the issues with playback on movies.

Thanks for your help, having hard numbers makes it easier to identify the bottlenecks.

Wow, that must be painfully slow. I couldn’t upgrade my RPi’s fast enough once the 2 B’s were released.

Rebooting your switch/s and/or powerline adapters may help. It is not unusual for powerline adapters in particular to drop down to slower speeds and only recover after a hard boot. Be aware that switches can go bad and reduce transfer rate (sometimes on just some ports). To use iperf to verify cable integrity you would really need to have both devices plugged directly into the same switch (ideally with two gigabit capable machines so your testing all four pairs).

Not terribly, fine for most things most of the time, just the current issue with some of the movies that’s bugging me. Ones that I’ve watched before without issue are not playing properly now, maybe the Pi has reached a tipping point,

I’ll investigate the networking more fully over the weekend and will try swapping cables and testing at different points to see if I can improve things.

If I can get the buffer working better it will probably smooth over most issues anyway, but with a more decent network speed then that wouldn’t be an issue in the first place.

I’ll see where things go.

1 Like

Mentioning that first time helps always :wink:

Surely every Pi (even the oldest one) will do 94Mbit over Ethernet Cable. But Powerline surely gives major performance issues.

Surely every Pi (even the oldest one) will do 94Mbit over Ethernet Cable.

I don’t think so, here is a comparison from a respected computer hardware review website.

image

But I think that I should be achieving higher speeds than I am so I’ll be testing and debugging everything over the weekend.

Thanks for that, wasn’t aware of that.

While this page only reports low speeds for Downloading but iperf also at 94 Mbit

https://www.jeffgeerling.com/blogs/jeff-geerling/getting-gigabit-networking

Thanks for the link, but all the models listed are newer than the rPi I currently have.

I only need a small throughput improvement to sort out the issue so hopefully I’ll find something in my network that makes up the shortfall.

UPDATE

I have physically moved the rPi so that both it and the file server are connected to the same switch and re-tested transfer speeds.

It would appear that with kodi running speeds are significantly lower.

Here are the results with kodi running.

osmc@osmc:~$ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 65507
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 65508
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.44   sec  7.50 MBytes  43.8 Mbits/sec    0    138 KBytes
[  5]   1.44-2.34   sec  5.00 MBytes  46.4 Mbits/sec    0    138 KBytes
[  5]   2.34-3.27   sec  5.00 MBytes  45.3 Mbits/sec    0    138 KBytes
[  5]   3.27-4.41   sec  6.25 MBytes  45.9 Mbits/sec    0    138 KBytes
[  5]   4.41-5.33   sec  5.00 MBytes  45.4 Mbits/sec    0    138 KBytes
[  5]   5.33-6.24   sec  5.00 MBytes  46.0 Mbits/sec    0    138 KBytes
[  5]   6.24-7.40   sec  6.25 MBytes  45.6 Mbits/sec    0    168 KBytes
[  5]   7.40-8.31   sec  5.00 MBytes  45.6 Mbits/sec    0    168 KBytes
[  5]   8.31-9.44   sec  6.25 MBytes  46.5 Mbits/sec    0    168 KBytes
[  5]   9.44-10.11  sec  3.75 MBytes  46.7 Mbits/sec    0    168 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.11  sec  55.0 MBytes  45.6 Mbits/sec    0             sender
[  5]   0.00-10.11  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 65509
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 65510
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.02   sec  3.37 MBytes  27.7 Mbits/sec
[  5]   1.02-2.03   sec  5.12 MBytes  42.5 Mbits/sec
[  5]   2.03-3.03   sec  5.12 MBytes  42.9 Mbits/sec
[  5]   3.03-4.02   sec  5.75 MBytes  48.8 Mbits/sec
[  5]   4.02-5.04   sec  5.88 MBytes  48.6 Mbits/sec
[  5]   5.04-6.00   sec  5.00 MBytes  43.3 Mbits/sec
[  5]   6.00-7.04   sec  5.88 MBytes  47.5 Mbits/sec
[  5]   7.04-8.02   sec  5.12 MBytes  44.1 Mbits/sec
[  5]   8.02-9.05   sec  5.38 MBytes  43.6 Mbits/sec
[  5]   9.05-10.03  sec  5.12 MBytes  43.7 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.03  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.03  sec  51.7 MBytes  43.3 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

Much better than when running over the powerline adapter with an average transfer speed of about 44 Mbits/sec compared with the speed of about 29 Mbits/sec measured yesterday.

One major difference is the number of retries is significantly lower then the previous test over the powerline adaptor which if I’m correct means that there are a lot of dropped packets over the powerline adapter connection.

Here are the results with kodi stopped.

osmc@osmc:~$ sudo systemctl stop mediacenter
osmc@osmc:~$ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 65477
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 65478
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.02   sec  4.61 MBytes  37.9 Mbits/sec
[  5]   1.02-2.02   sec  7.38 MBytes  61.8 Mbits/sec
[  5]   2.02-3.02   sec  7.38 MBytes  61.9 Mbits/sec
[  5]   3.02-4.02   sec  7.38 MBytes  62.2 Mbits/sec
[  5]   4.02-5.02   sec  7.38 MBytes  61.4 Mbits/sec
[  5]   5.02-6.02   sec  4.84 MBytes  41.0 Mbits/sec
[  5]   6.02-7.05   sec  7.25 MBytes  58.6 Mbits/sec
[  5]   7.05-8.03   sec  7.12 MBytes  61.4 Mbits/sec
[  5]   8.03-9.03   sec  7.38 MBytes  61.5 Mbits/sec
[  5]   9.03-10.02  sec  7.12 MBytes  60.7 Mbits/sec
[  5]  10.02-10.05  sec   128 KBytes  29.2 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.05  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.05  sec  68.0 MBytes  56.7 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 65479
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 65480
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.27   sec  10.0 MBytes  66.1 Mbits/sec    0    141 KBytes
[  5]   1.27-2.19   sec  7.50 MBytes  68.7 Mbits/sec    0    141 KBytes
[  5]   2.19-3.25   sec  8.75 MBytes  68.7 Mbits/sec    0    141 KBytes
[  5]   3.25-4.22   sec  7.50 MBytes  65.0 Mbits/sec    0    141 KBytes
[  5]   4.22-5.28   sec  8.75 MBytes  69.3 Mbits/sec    0    141 KBytes
[  5]   5.28-6.19   sec  7.50 MBytes  69.3 Mbits/sec    0    141 KBytes
[  5]   6.19-7.25   sec  8.75 MBytes  69.0 Mbits/sec    0    141 KBytes
[  5]   7.25-8.17   sec  7.50 MBytes  69.1 Mbits/sec    0    141 KBytes
[  5]   8.17-9.23   sec  8.75 MBytes  68.9 Mbits/sec    0    141 KBytes
[  5]   9.23-10.14  sec  7.50 MBytes  68.8 Mbits/sec    0    141 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.14  sec  82.5 MBytes  68.2 Mbits/sec    0             sender
[  5]   0.00-10.14  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

An an average transfer speed of about 63 Mbits/sec, more than enough for my purposes and in line with the expected top end for this model.

I repeated the tests several times and the results were all similar.

Anyone have any idea how to speed up the transfer rate whilst kodi is running?

I guess it could be a case of limited resources and the rPi cannot sustain the faster transfer speeds with the overhead of running kodi, but there could also be some optimisation that I’m just not aware of that I could do to improve the situation.

Next I will test the speeds over the powerline adapter before the second switch. I will supply those details when I have them.

I took some screenshots of the powerline adapters speeds reported by the tp-link utility in case they were useful.

A further update.

Transfer speeds with the powerline adapter but bypassing the second switch.

With kodi running about 37 Mbits/sec average, also no sign of any retries.

osmc@osmc:~$ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 49162
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 49163
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec  3.74 MBytes  31.3 Mbits/sec
[  5]   1.00-2.00   sec  4.14 MBytes  34.7 Mbits/sec
[  5]   2.00-3.00   sec  4.27 MBytes  36.0 Mbits/sec
[  5]   3.00-4.00   sec  4.21 MBytes  35.3 Mbits/sec
[  5]   4.00-5.00   sec  4.26 MBytes  35.6 Mbits/sec
[  5]   5.00-6.00   sec  4.12 MBytes  34.7 Mbits/sec
[  5]   6.00-7.01   sec  4.18 MBytes  34.7 Mbits/sec
[  5]   7.01-8.01   sec  4.20 MBytes  35.3 Mbits/sec
[  5]   8.01-9.00   sec  4.04 MBytes  34.1 Mbits/sec
[  5]   9.00-10.01  sec  4.22 MBytes  35.0 Mbits/sec
[  5]  10.01-10.03  sec  89.8 KBytes  35.5 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.03  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.03  sec  41.5 MBytes  34.7 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 49164
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 49166
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.00   sec  4.44 MBytes  37.1 Mbits/sec    0    185 KBytes
[  5]   1.00-2.00   sec  4.04 MBytes  33.9 Mbits/sec    0    195 KBytes
[  5]   2.00-3.00   sec  4.53 MBytes  38.0 Mbits/sec    0    195 KBytes
[  5]   3.00-4.00   sec  4.72 MBytes  39.6 Mbits/sec    0    205 KBytes
[  5]   4.00-5.00   sec  4.96 MBytes  41.6 Mbits/sec    0    205 KBytes
[  5]   5.00-6.00   sec  5.27 MBytes  44.2 Mbits/sec    0    217 KBytes
[  5]   6.00-7.00   sec  5.15 MBytes  43.0 Mbits/sec    0    217 KBytes
[  5]   7.00-8.00   sec  5.02 MBytes  42.3 Mbits/sec    0    217 KBytes
[  5]   8.00-9.00   sec  4.59 MBytes  38.5 Mbits/sec    0    217 KBytes
[  5]   9.00-10.00  sec  4.29 MBytes  36.0 Mbits/sec    0    217 KBytes
[  5]  10.00-10.03  sec   251 KBytes  69.0 Mbits/sec    0    217 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.03  sec  47.3 MBytes  39.5 Mbits/sec    0             sender
[  5]   0.00-10.03  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

Without kodi running, still about 37 Mbits/sec, and again no sign of retries.

osmc@osmc:~$ sudo systemctl stop mediacenter
osmc@osmc:~$ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 49179
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 49181
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.00   sec  4.65 MBytes  39.0 Mbits/sec    0    181 KBytes
[  5]   1.00-2.00   sec  4.41 MBytes  37.0 Mbits/sec    0    200 KBytes
[  5]   2.00-3.00   sec  4.23 MBytes  35.5 Mbits/sec    0    201 KBytes
[  5]   3.00-4.00   sec  4.41 MBytes  37.0 Mbits/sec    0    201 KBytes
[  5]   4.00-5.00   sec  4.47 MBytes  37.4 Mbits/sec    0    212 KBytes
[  5]   5.00-6.00   sec  4.66 MBytes  39.1 Mbits/sec    0    212 KBytes
[  5]   6.00-7.00   sec  4.47 MBytes  37.6 Mbits/sec    0    212 KBytes
[  5]   7.00-8.00   sec  4.59 MBytes  38.5 Mbits/sec    0    212 KBytes
[  5]   8.00-9.00   sec  4.47 MBytes  37.5 Mbits/sec    0    212 KBytes
[  5]   9.00-10.00  sec  4.59 MBytes  38.6 Mbits/sec    0    212 KBytes
[  5]  10.00-10.02  sec  0.00 Bytes  0.00 bits/sec    0    212 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.02  sec  45.0 MBytes  37.6 Mbits/sec    0             sender
[  5]   0.00-10.02  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 49183
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 49185
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec  4.02 MBytes  33.7 Mbits/sec
[  5]   1.00-2.00   sec  4.33 MBytes  36.3 Mbits/sec
[  5]   2.00-3.00   sec  4.21 MBytes  35.3 Mbits/sec
[  5]   3.00-4.00   sec  4.48 MBytes  37.6 Mbits/sec
[  5]   4.00-5.00   sec  4.32 MBytes  36.2 Mbits/sec
[  5]   5.00-6.00   sec  4.46 MBytes  37.5 Mbits/sec
[  5]   6.00-7.00   sec  4.53 MBytes  38.0 Mbits/sec
[  5]   7.00-8.00   sec  4.36 MBytes  36.6 Mbits/sec
[  5]   8.00-9.00   sec  4.43 MBytes  37.2 Mbits/sec
[  5]   9.00-10.00  sec  4.37 MBytes  36.6 Mbits/sec
[  5]  10.00-10.04  sec   145 KBytes  33.6 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.04  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.04  sec  43.7 MBytes  36.5 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

Now, finally using the second switch again …
With kodi running an average of about 32 Mbits/sec.

osmc@osmc:~$ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 49210
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 49211
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.67   sec  5.56 MBytes  27.9 Mbits/sec    9    125 KBytes
[  5]   1.67-2.38   sec  2.50 MBytes  29.7 Mbits/sec    0    135 KBytes
[  5]   2.38-3.43   sec  3.75 MBytes  29.9 Mbits/sec    0    150 KBytes
[  5]   3.43-4.38   sec  3.75 MBytes  33.4 Mbits/sec    0    160 KBytes
[  5]   4.38-5.35   sec  3.75 MBytes  32.4 Mbits/sec    0    167 KBytes
[  5]   5.35-6.61   sec  5.00 MBytes  33.1 Mbits/sec    0    173 KBytes
[  5]   6.61-7.54   sec  3.75 MBytes  33.9 Mbits/sec    0    177 KBytes
[  5]   7.54-8.48   sec  3.75 MBytes  33.5 Mbits/sec    0    184 KBytes
[  5]   8.48-9.46   sec  3.75 MBytes  32.0 Mbits/sec    0    188 KBytes
[  5]   9.46-10.11  sec  2.50 MBytes  32.2 Mbits/sec    0    222 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.11  sec  38.1 MBytes  31.6 Mbits/sec    9             sender
[  5]   0.00-10.11  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 49213
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 49214
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.02   sec  2.34 MBytes  19.3 Mbits/sec
[  5]   1.02-2.00   sec  4.10 MBytes  35.0 Mbits/sec
[  5]   2.00-3.00   sec  3.98 MBytes  33.3 Mbits/sec
[  5]   3.00-4.00   sec  4.08 MBytes  34.3 Mbits/sec
[  5]   4.00-5.06   sec  4.22 MBytes  33.4 Mbits/sec
[  5]   5.06-6.00   sec  4.17 MBytes  37.2 Mbits/sec
[  5]   6.00-7.00   sec  4.17 MBytes  35.0 Mbits/sec
[  5]   7.00-8.00   sec  4.26 MBytes  35.7 Mbits/sec
[  5]   8.00-9.00   sec  4.22 MBytes  35.4 Mbits/sec
[  5]   9.00-10.00  sec  4.20 MBytes  35.1 Mbits/sec
[  5]  10.00-10.03  sec  87.0 KBytes  30.0 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.03  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.03  sec  39.8 MBytes  33.3 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

Without kodi running an average of about 37 Mbits/sec, and those retries are back, although not many.

osmc@osmc:~$ sudo systemctl stop mediacenter
osmc@osmc:~$ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 49221
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 49222
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.00   sec  4.66 MBytes  39.1 Mbits/sec    8    107 KBytes
[  5]   1.00-2.01   sec  4.66 MBytes  38.9 Mbits/sec    2    101 KBytes
[  5]   2.01-3.01   sec  4.78 MBytes  40.1 Mbits/sec    2   94.1 KBytes
[  5]   3.01-4.00   sec  4.90 MBytes  41.3 Mbits/sec    1   88.4 KBytes
[  5]   4.00-5.00   sec  4.90 MBytes  41.1 Mbits/sec    0    125 KBytes
[  5]   5.00-6.01   sec  5.17 MBytes  42.8 Mbits/sec    6   84.1 KBytes
[  5]   6.01-7.00   sec  4.84 MBytes  41.1 Mbits/sec    0    120 KBytes
[  5]   7.00-8.00   sec  4.90 MBytes  41.2 Mbits/sec    4    115 KBytes
[  5]   8.00-9.00   sec  4.96 MBytes  41.7 Mbits/sec    3    113 KBytes
[  5]   9.00-10.00  sec  4.78 MBytes  40.1 Mbits/sec    3    107 KBytes
[  5]  10.00-10.05  sec  0.00 Bytes  0.00 bits/sec    0    108 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.05  sec  48.6 MBytes  40.5 Mbits/sec   29             sender
[  5]   0.00-10.05  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.11.4, port 49223
[  5] local 192.168.11.3 port 5201 connected to 192.168.11.4 port 49224
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec  3.99 MBytes  33.5 Mbits/sec
[  5]   1.00-2.00   sec  4.09 MBytes  34.3 Mbits/sec
[  5]   2.00-3.00   sec  4.10 MBytes  34.4 Mbits/sec
[  5]   3.00-4.00   sec  4.06 MBytes  34.1 Mbits/sec
[  5]   4.00-5.00   sec  4.24 MBytes  35.6 Mbits/sec
[  5]   5.00-6.00   sec  4.29 MBytes  36.0 Mbits/sec
[  5]   6.00-7.00   sec  4.10 MBytes  34.4 Mbits/sec
[  5]   7.00-8.00   sec  4.25 MBytes  35.6 Mbits/sec
[  5]   8.00-9.00   sec  4.16 MBytes  34.9 Mbits/sec
[  5]   9.00-10.00  sec  4.24 MBytes  35.5 Mbits/sec
[  5]  10.00-10.03  sec   118 KBytes  29.6 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.03  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.03  sec  41.6 MBytes  34.8 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

So in summary

rPi - ZyXel GS1900 - Storage

  • With kodi - about 44 Mbits/sec
  • Without kodi - about 63 Mbits/sec

rPi - TP-LINK PA211 - TP-LINK PA211 - ZyXel GS1900 - Storage

  • With kodi - about 37 Mbits/sec
  • Without kodi - about 37 Mbits/sec

rPi - Buffalo WHR-G300N v2 - TP-LINK PA211 - TP-LINK PA211 - ZyXel GS1900 - Storage

  • With kodi - about 32 Mbits/sec, some packet loss
  • Without kodi - bout 37 Mbits/sec, some packet loss

So what I’ve learned is;

  1. that debugging transfer speed issues is time consuming and,
  2. that it may be time to retire my once trusty Buffalo WHR-G300N v2 after over 19 years of mostly solid service.
  3. A more modern rPi or Vero 4k+ may be on my Christmas wishlist.

Big thanks to everyone that offered assistance and suggestions that helped me to get to this point.