Lan and wifi connection is very poor with Ubuntu

I installed ubuntu and use with wifi hotspot. The problem is that despite having a 1 Gb connection, the maximum speed with the lan is 80 mb in download and 120 in upload. And as a hotspot it only bounces 30 mb in download . Usually the pc cable, always with Ubuntu, goes to 900 mb in download and 200 in up.Drivers failed?

Is there no one left?

Your question is too generic.

Generic answer:
Ethernet speed depends on various factors (kernel in use, cable CAT, router, wifi router, etc…) and can also be optimized (with some kernel params, IRQ affinity, etc…), search for the threads talking about measuring Gb ethernet speed. The tool you use to measure it must be the same for others in order to compare with.

With such a low speed I can assume (I might be wrong) you use Samba. Regarding Samba speed, seems to be compatible with what the samba users claim.

Regarding Wifi speed (and hotspot), things get worse. I should not get into this but here we go, for all the boards I have here with Cypress/Broadcom, the performance is poor to bad. Surprisingly, I have Realtek in my RockPi E (dev version) which performs great, a perfect match with my TPLINK router and ASKEY router.

Some reference:

Thanks for the explanations. I did the tests with the usual operating system, Ubuntu and Speedtest of Ookla. Usual cable, connected to the router, a Fritzbox 7590 with FTTH at 1 Gb. Speed I get with the pc, 900 Mb in down and 200 in Up, while with the Rockpi I have 80 in down and 120 in UP. And if I connect in Wi-Fi to the hotspot created with the Rockpi, then there really is something to cry. I will try to install the Win10, to see if it is really a hardware limitation, or just the driver not working under Ubuntu. Thank you

In your real case usage and test, you added internet latency, traffic shape, browser cache, and many variable factors.

Here are some of my tests (simple benchmarks) just for reference:

Gb Raw speed with iperf3 with Radxa X 2GB/4GB USB stick with ubuntu 20.04.3 kernel 5.12.2 (CLI) and my ancient Intel® Core™2 Duo CPU E8600@ 3.33GHz (LXDE desktop)

[  5] local 192.168.254.72 port 46332 connected to 192.168.254.253 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   115 MBytes   965 Mbits/sec    0   1.58 MBytes       
[  5]   1.00-2.00   sec   112 MBytes   943 Mbits/sec    0   1.63 MBytes       
[  5]   2.00-3.00   sec   111 MBytes   934 Mbits/sec    0   1.82 MBytes       
[  5]   3.00-4.00   sec   112 MBytes   944 Mbits/sec    0   3.14 MBytes       
[  5]   4.00-5.00   sec   111 MBytes   933 Mbits/sec    0   3.14 MBytes       
[  5]   5.00-6.00   sec   112 MBytes   944 Mbits/sec    0   3.14 MBytes       
[  5]   6.00-7.00   sec   112 MBytes   943 Mbits/sec    0   3.14 MBytes       
[  5]   7.00-8.00   sec   111 MBytes   933 Mbits/sec    0   3.14 MBytes       
[  5]   8.00-9.00   sec   112 MBytes   944 Mbits/sec    0   3.14 MBytes       
[  5]   9.00-10.00  sec   112 MBytes   943 Mbits/sec    0   3.14 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.10 GBytes   943 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.09 GBytes   940 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.254.253, port 5201
Reverse mode, remote host 192.168.254.253 is sending
[  5] local 192.168.254.72 port 46336 connected to 192.168.254.253 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   112 MBytes   942 Mbits/sec                  
[  5]   1.00-2.00   sec   112 MBytes   941 Mbits/sec                  
[  5]   2.00-3.00   sec   112 MBytes   941 Mbits/sec                  
[  5]   3.00-4.00   sec   112 MBytes   941 Mbits/sec                  
[  5]   4.00-5.00   sec   112 MBytes   942 Mbits/sec                  
[  5]   5.00-6.00   sec   112 MBytes   941 Mbits/sec                  
[  5]   6.00-7.00   sec   112 MBytes   941 Mbits/sec                  
[  5]   7.00-8.00   sec   112 MBytes   942 Mbits/sec                  
[  5]   8.00-9.00   sec   112 MBytes   941 Mbits/sec                  
[  5]   9.00-10.00  sec   112 MBytes   941 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.10 GBytes   943 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.10 GBytes   941 Mbits/sec                  receiver

iperf Done.

Real world wget download speed (I use CLI and not Desktop)

Radxa X Wifi 5GHz (2.5 mts from wifi router)

wlan0     IEEE 802.11  ESSID:"FIBER-5G"  
          Mode:Managed  Frequency:5.5 GHz  Access Point: 94:EA:EA:AA:87:8F   
          Bit Rate=6 Mb/s   Tx-Power=31 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=63/70  Signal level=-47 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0



alex@svn:/tmp$ ssh ubuntu@192.168.254.73
The authenticity of host '192.168.254.73 (192.168.254.73)' can't be established.
ECDSA key fingerprint is SHA256:Tp+y8ICknLJCCazPUPJ/BkLk4qO7BI4hqDGBwfZFNrM.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.254.73' (ECDSA) to the list of known hosts.
ubuntu@192.168.254.73's password: 
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.12.2-rockpix x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
Last login: Fri Feb  4 20:11:59 2022 from 192.168.254.253
ubuntu@rockpix:~$ wget https://speed.hetzner.de/100MB.bin
--2022-02-04 20:20:03--  https://speed.hetzner.de/100MB.bin
Resolving speed.hetzner.de (speed.hetzner.de)... 88.198.248.254, 2a01:4f8:0:59ed::2
Connecting to speed.hetzner.de (speed.hetzner.de)|88.198.248.254|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘100MB.bin’

100MB.bin           100%[===================>] 100.00M  5.22MB/s    in 22s     

2022-02-04 20:20:27 (4.53 MB/s) - ‘100MB.bin’ saved [104857600/104857600]

ubuntu@rockpix:~$ ifconfig
enp1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet6 fe80::2e0:4cff:fe88:67f  prefixlen 64  scopeid 0x20<link>
        ether 00:e0:4c:88:06:7f  txqueuelen 1000  (Ethernet)
        RX packets 2778637  bytes 2972404878 (2.9 GB)
        RX errors 0  dropped 22  overruns 0  frame 0
        TX packets 2091789  bytes 2607428298 (2.6 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 122  bytes 11582 (11.5 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 122  bytes 11582 (11.5 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.254.73  netmask 255.255.0.0  broadcast 192.168.255.255
        ether 10:2c:6b:50:66:e0  txqueuelen 1000  (Ethernet)
        RX packets 73217  bytes 108877105 (108.8 MB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 17323  bytes 1631366 (1.6 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Radxa X Gb eth

ubuntu@rockpix:~$ wget https://speed.hetzner.de/100MB.bin
--2022-02-04 20:13:56--  https://speed.hetzner.de/100MB.bin
Resolving speed.hetzner.de (speed.hetzner.de)... 2a01:4f8:0:59ed::2, 88.198.248.254
Connecting to speed.hetzner.de (speed.hetzner.de)|2a01:4f8:0:59ed::2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘100MB.bin’

100MB.bin           100%[===================>] 100.00M  7.60MB/s    in 15s     

PC Intel E8600 box Gb eth

alex@svn:/tmp$ wget https://speed.hetzner.de/100MB.bin
--2022-02-04 17:13:14--  https://speed.hetzner.de/100MB.bin
Resolving speed.hetzner.de (speed.hetzner.de)... 2a01:4f8:0:59ed::2, 88.198.248.254
Connecting to speed.hetzner.de (speed.hetzner.de)|2a01:4f8:0:59ed::2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘100MB.bin’

100MB.bin           100%[===================>] 100,00M  7,64MB/s    in 15s     

2022-02-04 17:13:30 (6,71 MB/s) - ‘100MB.bin’ saved [104857600/104857600]

Testing with 1GB.bin data

ubuntu@rockpix:~$ df -lh
Filesystem      Size  Used Avail Use% Mounted on
udev            953M     0  953M   0% /dev
tmpfs           192M  3.9M  188M   2% /run
/dev/sda2       3.2G  2.2G  889M  71% /
tmpfs           959M     0  959M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           959M     0  959M   0% /sys/fs/cgroup
/dev/sda1       511M   36M  476M   7% /boot/efi
tmpfs           192M     0  192M   0% /run/user/1000

Don’t have enough space but I tried anyway:

Radxa X wifi 5G

alex@svn:/tmp$ ssh ubuntu@192.168.254.73
ubuntu@192.168.254.73's password: 
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.12.2-rockpix x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
Last login: Fri Feb  4 20:49:38 2022
ubuntu@rockpix:~$ wget https://speed.hetzner.de/1GB.bin
--2022-02-04 20:50:48--  https://speed.hetzner.de/1GB.bin
Resolving speed.hetzner.de (speed.hetzner.de)... 88.198.248.254, 2a01:4f8:0:59ed::2
Connecting to speed.hetzner.de (speed.hetzner.de)|88.198.248.254|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1048576000 (1000M) [application/octet-stream]
Saving to: ‘1GB.bin’

1GB.bin              88%[================>   ] 888.19M  6.07MB/s    in 2m 39s  


Cannot write to ‘1GB.bin’ (Success).
ubuntu@rockpix:~$ rm *.bin
ubuntu@rockpix:~$ exit
logout
Connection to 192.168.254.73 closed.

Radxa X Gb eth

alex@svn:/tmp$ ssh ubuntu@192.168.254.72
ubuntu@192.168.254.72's password: 
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.12.2-rockpix x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
Last login: Fri Feb  4 20:50:46 2022 from 192.168.254.253
ubuntu@rockpix:~$ wget https://speed.hetzner.de/1GB.bin
--2022-02-04 20:55:13--  https://speed.hetzner.de/1GB.bin
Resolving speed.hetzner.de (speed.hetzner.de)... 2a01:4f8:0:59ed::2, 88.198.248.254
Connecting to speed.hetzner.de (speed.hetzner.de)|2a01:4f8:0:59ed::2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1048576000 (1000M) [application/octet-stream]
Saving to: ‘1GB.bin’

1GB.bin              88%[================>   ] 888.19M  3.04MB/s    in 2m 14s  


Cannot write to ‘1GB.bin’ (Success).

As you can see, it is on pair with my PC box (single threaded), not writing the complete 1 GB file could have helped Radxa X with the result, but I am using a USB stick which is slow as hell.

You should consider that your PC may have more threads and cores.

Conclusion:

Using a Desktop (ubuntu and others) requires you to debloat (remove unnecessary services) to have a mean and lean distro , then you can have similar results.

Thanks. I did some tests from CLI and in fact the speed is
Download: 836.23 Mbps (data used: 871.7 MB)
Upload: 180.36 Mbps (data used: 229.0 MB)
while on the usual server but from a browser it does not go beyond 130 MB
Using everything with Hotspot, however, the connected devices do not go beyond 30 MB in WIFI 5 GHZ. Can the problem be corrected?

4 GB dram is minimum requirement for a relatively good experience. Browsers fire a lot of threads. Tried Brave?

I think hotspot Is slow by nature with mobile wifi chips. Try with your phone and compare the results

PS:
Try updating the wifi firmware as per kotori’s instructions. Wifi improve a lot with the new firmware.

I have the 4 gb version … I was hoping they were enough. I installed Brave, but the connection is always slow. With the Hotspot it is very slow