geerlingguy / internet-pi

Raspberry Pi config for all things Internet.
MIT License
4.29k stars 449 forks source link

wrong measurements? #592

Open MizarCs opened 5 months ago

MizarCs commented 5 months ago

It's about a couple of months that my internet-pi is measuring 258Mb/s despite https://www.speedtest.net tells me 786Mb/s: this is a huge difference and I don't know why it's happening. Any advice? Is there a "Docker networking" issue ongoing? My Rpi 4 is connected straight to the router connected via WAN port to the the fiber coupler. TIA

martinbrose commented 5 months ago

Hi @MizarCs,

to really investigate the problem, you should probably go to the speedtest docker frontend on your pi-hole at port 9798 and have a look at the details there. And based on that, the underlying repo https://github.com/MiguelNdeCarvalho/speedtest-exporter might be a good resource too.

You mentioned Rpi 4, which should do 1 Gbps over the integrated ethernet. So I guess we can exclude potential trouble sources of Ethernet-over-USB dongle or older Raspberry Pi versions, which could introduce a 300 Mbps limit.

If you want to double check the reported speed, you could also test-drive my pull request https://github.com/geerlingguy/internet-pi/pull/475, which runs the speedtest on Cloudflare instead of speedtest.net. Or if you want to keep it simple, just run my underlying docker image and see what results it gives you: https://github.com/martinbrose/cloudflare-speedtest-exporter

Just a few ideas. Happy to help if you need further guidance.

Cheers

github-actions[bot] commented 1 month ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

MizarCs commented 1 month ago

Hi Martin, sorry for the "delay", I really missed your reply and noticed today the count down to close it in 30 days. I'm far from home now and I'll be back in few days so I can check what you suggest. I hope to have a feedback for you soon. Thanks a lot and I'll be in touch hopefully soon. Regards

MizarCs commented 4 weeks ago

well .... I reinstalled all (disabling pi-hole) and it seams I have the same issue. I'm currently using a Raspberry Pi 4 with 8GB ram so you got it right to doublececk ... dmesg |grep eth0 [ 14.476081] bcmgenet fd580000.ethernet eth0: Link is Down [ 18.559685] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off port 9798 says: [cut] speedtest_server_id 27363.0

HELP speedtest_jitter_latency_milliseconds Speedtest current Jitter in ms

TYPE speedtest_jitter_latency_milliseconds gauge

speedtest_jitter_latency_milliseconds 0.087

HELP speedtest_ping_latency_milliseconds Speedtest current Ping in ms

TYPE speedtest_ping_latency_milliseconds gauge

speedtest_ping_latency_milliseconds 5.142

HELP speedtest_download_bits_per_second Speedtest current Download Speed in bit/s

TYPE speedtest_download_bits_per_second gauge

speedtest_download_bits_per_second 2.77874864e+08

HELP speedtest_upload_bits_per_second Speedtest current Upload speed in bits/s

TYPE speedtest_upload_bits_per_second gauge

speedtest_upload_bits_per_second 1.88242768e+08

HELP speedtest_up Speedtest status whether the scrape worked

TYPE speedtest_up gauge

speedtest_up 1.0

... and it shows 277Mb/s despite ookla speedtest is giving me DOWNLOAD Mbps 774.27 UPLOAD 189.65 Mbps. Any other advice is very welcome.