我在 Raspberry Pi 1 B+ (armv6l) 上使用 Goodram Class 10 16GB SD 卡安装了官方 FreeBSD 13-RELEASE,但磁盘读写速度非常慢(186 kbytes/sec):
# diskinfo -tv /dev/mmcsd0
/dev/mmcsd0
512 # sectorsize
15634268160 # mediasize in bytes (15G)
30535680 # mediasize in sectors
4194304 # stripesize
0 # stripeoffset
SDHC SD16G 2.0 SN 00000247 MFG 04/2021 by 254 42 # Disk descr.
00000247 # Disk ident.
# Attachment
Yes # TRIM/UNMAP support
0 # Rotation rate in RPM
Seek times:
Full stroke: 250 iter in 0.954876 sec = 3.820 msec
Half stroke: 250 iter in 0.946644 sec = 3.787 msec
Quarter stroke: 500 iter in 1.888141 sec = 3.776 msec
Short forward: 400 iter in 1.510555 sec = 3.776 msec
Short backward: 400 iter in 1.510279 sec = 3.776 msec
Seq outer: 2048 iter in 7.485804 sec = 3.655 msec
Seq inner: 2048 iter in 7.220448 sec = 3.526 msec
Transfer rates:
outside: 102400 kbytes in 549.596899 sec = 186 kbytes/sec
middle: 102400 kbytes in 549.520508 sec = 186 kbytes/sec
inside: 102400 kbytes in 547.767644 sec = 187 kbytes/sec
名称:
# uname -a
FreeBSD rpi-b 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr 9 06:30:27 UTC 2021 [email protected]:/usr/obj/usr/src/arm.armv6/sys/RPI-B arm
整体系统速度也非常慢(例如启动时间约为5分钟)。有什么想法要在这里做什么?
答案1
Sandisk Ultra SDHC 16G 适合我
- 13.0 中的 RPi 零(ARM ARM1176 r0p7)
- mmcsd0:16GB <SDHC SU16G 8.0 SN 00736959 MFG 06/2013 by 3 SD> 在 mmc0 50.0MHz/4bit/65535 块
- 无任何负载,仅供偶尔测试
- 9:34PM 33 天,18:34,1 位用户,平均负载:0.01、0.02、0.00
root@rpi-b:~ # diskinfo -tv /dev/mmcsd0
/dev/mmcsd0
512 # sectorsize
15931539456 # mediasize in bytes (15G)
31116288 # mediasize in sectors
4194304 # stripesize
0 # stripeoffset
SDHC SU16G 8.0 SN 00736959 MFG 06/2013 by 3 SD # Disk descr.
00736959 # Disk ident.
# Attachment
Yes # TRIM/UNMAP support
0 # Rotation rate in RPM
Seek times:
Full stroke: 250 iter in 0.176581 sec = 0.706 msec
Half stroke: 250 iter in 0.346380 sec = 1.386 msec
Quarter stroke: 500 iter in 0.318554 sec = 0.637 msec
Short forward: 400 iter in 0.249260 sec = 0.623 msec
Short backward: 400 iter in 0.242115 sec = 0.605 msec
Seq outer: 2048 iter in 1.541124 sec = 0.753 msec
Seq inner: 2048 iter in 1.592520 sec = 0.778 msec
Transfer rates:
outside: 102400 kbytes in 6.119237 sec = 16734 kbytes/sec
middle: 102400 kbytes in 6.354481 sec = 16115 kbytes/sec
inside: 102400 kbytes in 6.650328 sec = 15398 kbytes/sec
- 12.2 中的 RPi3(ARM Cortex-A53 r0p4)
- mmcsd0:16GB <SDHC SU16G 8.0 SN 1CCBFA6F MFG 10/2012 by 3 SD> 在 mmc0 50.0MHz/4bit/65535 块。
- 测试低容量 Nagios 没有问题
- 12:00AM 89 天,23:38,1 位用户,平均负载:0.00、0.00、0.00
root@rpi-3:~ # diskinfo -tv /dev/mmcsd0
/dev/mmcsd0
512 # sectorsize
15931539456 # mediasize in bytes (15G)
31116288 # mediasize in sectors
4194304 # stripesize
0 # stripeoffset
SDHC SU16G 8.0 SN 1CCBFA6F MFG 10/2012 by 3 SD # Disk descr.
1CCBFA6F # Disk ident.
Yes # TRIM/UNMAP support
0 # Rotation rate in RPM
Seek times:
Full stroke: 250 iter in 0.825192 sec = 3.301 msec
Half stroke: 250 iter in 0.533887 sec = 2.136 msec
Quarter stroke: 500 iter in 0.648232 sec = 1.296 msec
Short forward: 400 iter in 0.198193 sec = 0.495 msec
Short backward: 400 iter in 1.061558 sec = 2.654 msec
Seq outer: 2048 iter in 1.054052 sec = 0.515 msec
Seq inner: 2048 iter in 0.821306 sec = 0.401 msec
Transfer rates:
outside: 102400 kbytes in 5.042619 sec = 20307 kbytes/sec
middle: 102400 kbytes in 4.768441 sec = 21475 kbytes/sec
inside: 102400 kbytes in 5.317633 sec = 19257 kbytes/sec