Em test tiếp trên pi4 để làm rõ việc tốc độ upload của pi chậm.
Test trên dây ethernet, các thiết bị liên quan đều là gigabit.
pi@raspi4:~ $ uname -a
Linux raspi4 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux
pi@raspi4:~ $ cat /proc/device-tree/model
Raspberry Pi 4 Model B Rev 1.1
Check eth0:
Mã:
pi@raspi4:~ $ ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.18.24 netmask 255.255.255.0 broadcast 192.168.18.255
ether dc:a6:32:4a:0a:cb txqueuelen 1000 (Ethernet)
RX packets 17908274 bytes 1480419362 (1.3 GiB)
RX errors 0 dropped 3 overruns 0 frame 0
TX packets 20180815 bytes 2908126291 (2.7 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Mã:
pi@raspi4:~ $ sudo ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: gs
Wake-on: d
SecureOn password: 00:00:00:00:00:00
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
1. Test bằng speedtest-cli 2.0.2 - Tốc độ upload rất chậm:
pi@raspi4:~ $ sudo apt install speedtest-cli
pi@raspi4:~ $ speedtest-cli --version
2.0.2
Mã:
pi@raspi4:~ $ speedtest-cli
Retrieving speedtest.net configuration...
Testing from VNPT (222.254.198.xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by VTC DIGICOM (Ho Chi Minh City) [7.56 km]: 3.169 ms
Testing download speed................................
Download: 62.95 Mbit/s
Testing upload speed..................................
Upload: 3.93 Mbit/s
2. Test bằng speedtest-cli 2.1.2 - Tốc độ upload OK:
pi@raspi4:~ $ sudo apt-get install python-pip
pi@raspi4:~ $ sudo pip install speedtest-cli
pi@raspi4:~ $ speedtest --version
speedtest-cli 2.1.2
Python 2.7.16 (default, Oct 10 2019, 22:02:15) [GCC 8.3.0]
Mã:
pi@raspi4:~ $ speedtest
Retrieving speedtest.net configuration...
Testing from VNPT (222.254.198.xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by VTC DIGICOM (Ho Chi Minh City) [7.56 km]: 4.693 ms
Testing download speed................................
Download: 65.23 Mbit/s
Testing upload speed..................................
Upload: 64.02 Mbit/s
Em tạm kết luận:
- Có vẻ như pi4 chưa tương thích tốt với OS và phần mềm. Việc này tương tự như pi3 lúc mới ra. Phải hơn 1 năm sau khi release pi3 mới ổn định về mặt tương thích software.
- Nên theo dõi thường xuyên tốc độ upload từ pi.