树莓派使用SSD后PCIe Gen 3.0测速

启用PCIe Gen 3.0前测速
li@raspberrypi:~ $ dd if=/dev/zero of=/tmp/tempfile bs=4MB count=10001000+0 records in1000+0 records out4000000000 bytes (4.0 GB, 3.7 GiB) copied, 9.02906 s, 443 MB/sli@raspberrypi:~ $ dd if=/tmp/tempfile of=/dev/null bs=4MB count=10001000+0 records in1000+0 records out4000000000 bytes (4.0 GB, 3.7 GiB) copied, 8.4739 s, 472 MB/s
启用PCIe Gen 3.0后测速:
li@raspberrypi:~ $ dd if=/dev/zero of=/tmp/tempfile bs=4MB count=10001000+0 records in1000+0 records out4000000000 bytes (4.0 GB, 3.7 GiB) copied, 4.82376 s, 829 MB/sli@raspberrypi:~ $ dd if=/tmp/tempfile of=/dev/null bs=4MB count=10001000+0 records in1000+0 records out4000000000 bytes (4.0 GB, 3.7 GiB) copied, 4.86248 s, 823 MB/s
可以看到,树莓派5启用PCIe Gen 3.0后,数据写入速度达到829 MB/s,读取速度达到823 MB/s,相比SD卡和PCIe Gen 2.0是有很大的提升!阅读全文

树莓派更换镜像源,加快软件更新下载速度

树莓派使用清华大学镜像源(https://mirrors.tuna.tsinghua.edu.cn/help/raspberrypi/)速度比较快,更换方法如下:1.查看系统版本
li@raspberrypi:~ $ lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription: Debian GNU/Linux 12 (bookworm)Release: 12Codename: bookworm
2.编辑源设置文件
sudo nano /etc/apt/sources.list
3.添加清华大学镜像源在文件首行 添加:
deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bookworm main
阅读全文