Sionの日記

オッサンゲーマー

Raspberry PiでmicroSDカードの性能測定

toki-blog.com

Pi3のアップデートが糞遅いので調査。比較としてPi4の結果から(Pi3はまだ測定中)

Pi4

Card CSD status register: MID: 3 OID: SD PNM: SB16G PRV: 8.0 MDATE: 12/2017
Card SCR status register: SD Physical Version Specification: 5
MicroSD information: Clock Speed: 50.0 - Manufacturer: SanDisk - Model: SB16G - Vendor:  - Product: SD - HW Version: 0x8 - FW Version: 0x0 - Date Manufactured: 12/2017 - Class: A1 Class 10

         Category                  Test                      Result
HDParm                    Disk Read                 35.12 MB/sec
HDParm                    Cached Disk Read          31.62 MB/sec
DD                        Disk Write                7.2 MB/s
FIO                       4k random read            2541 IOPS (10166 KB/s)
FIO                       4k random write           565 IOPS (2261 KB/s)
IOZone                    4k read                   9690 KB/s
IOZone                    4k write                  4105 KB/s
IOZone                    4k random read            7505 KB/s
IOZone                    4k random write           3812 KB/s

                          Score: 1051

Pi3

Card CSD status register: MID: 2 OID: TM PNM: SA32G PRV: 2.4 MDATE: 5/2016
Card SCR status register: SD Physical Version Specification: 3
MicroSD information: Clock Speed: 50.0 - Manufacturer: Toshiba - Model: SA32G - Vendor:  - Product: SD - HW Version: 0x2 - FW Version: 0x4 - Date Manufactured: 05/2016 - Class: Class 10 U1

     Category                  Test                      Result
HDParm                    Disk Read                 21.65 MB/sec
HDParm                    Cached Disk Read          20.83 MB/sec
DD                        Disk Write                7.5 MB/s
FIO                       4k random read            2093 IOPS (8374 KB/s)
FIO                       4k random write           27 IOPS (111 KB/s)
IOZone                    4k read                   7244 KB/s
IOZone                    4k write                  1618 KB/s
IOZone                    4k random read            6067 KB/s
IOZone                    4k random write           108 KB/s

                          Score: 505

なるほど。ランダムライトが糞過ぎるってことかぁ。つかClassAxにしないとダメっぽいね。年始でPCショップ行くだろうから安いA1当たりと交換するかな

Pi2(自宅鯖:参考)
※bootのみSDカードでその他は2.5インチHDDのハイブリッド

     Category                  Test                      Result
HDParm                    Disk Read                 25.47 MB/sec
HDParm                    Cached Disk Read          28.32 MB/sec
DD                        Disk Write                29.3 MB/s
FIO                       4k random read            127 IOPS (511 KB/s)
FIO                       4k random write           359 IOPS (1439 KB/s)
IOZone                    4k read                   10281 KB/s
IOZone                    4k write                  8775 KB/s
IOZone                    4k random read            502 KB/s
IOZone                    4k random write           1375 KB/s

                          Score: 689

やべぇ。HDDに負けてるわw