Gert
Posts: 147
Joined: Wed Oct 24, 2012 10:19 pm

Generic storage benchmark on RPI

Sun Sep 15, 2019 9:41 pm

Hi Folks,

There's a lot of disk benchmarking done for SSD / SD etc and other storage using CrystalDiskMark which runs on PC. Is there an equivalent running natively on RPI raspian? It will be a better 'whole-system' test for storage performance that just testing the media on a PC without taking interface drivers and OS into consideration. I would like to test a new Seagate 5T laptop disk on the RPI4B with USB3 connection.

Thanks,
Gert

ejolson
Posts: 3674
Joined: Tue Mar 18, 2014 11:47 am

Re: Generic storage benchmark on RPI

Sun Sep 15, 2019 9:44 pm

Gert wrote:
Sun Sep 15, 2019 9:41 pm
Hi Folks,

There's a lot of disk benchmarking done for SSD / SD etc and other storage using CrystalDiskMark which runs on PC. Is there an equivalent running natively on RPI raspian? It will be a better 'whole-system' test for storage performance that just testing the media on a PC without taking interface drivers and OS into consideration. I would like to test a new Seagate 5T laptop disk on the RPI4B with USB3 connection.

Thanks,
Gert
A fairly standard test is Bonnie.

https://en.m.wikipedia.org/wiki/Bonnie%2B%2B

ejolson
Posts: 3674
Joined: Tue Mar 18, 2014 11:47 am

Re: Generic storage benchmark on RPI

Tue Sep 17, 2019 2:06 am

ejolson wrote:
Sun Sep 15, 2019 9:44 pm
Gert wrote:
Sun Sep 15, 2019 9:41 pm
Hi Folks,

There's a lot of disk benchmarking done for SSD / SD etc and other storage using CrystalDiskMark which runs on PC. Is there an equivalent running natively on RPI raspian? It will be a better 'whole-system' test for storage performance that just testing the media on a PC without taking interface drivers and OS into consideration. I would like to test a new Seagate 5T laptop disk on the RPI4B with USB3 connection.

Thanks,
Gert
A fairly standard test is Bonnie.

https://en.m.wikipedia.org/wiki/Bonnie%2B%2B
As Bonnie is included in the standard Raspbian repositories, it can be installed with the command

Code: Select all

$ sudo apt-get install bonnie++
Here are some results obtained by running Bonnie++ on a Raspberry Pi 4B with 2GB RAM using a 8TB BTRFS-formatted USB3 Seagate external HD:

Code: Select all

Version  1.98       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Name:Size etc        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
turbo            4G   80k  99  203m  66 87.3m  50  439k  98  135m  42  1769 189
Latency               152ms   40284us     283ms   19468us   61093us   74904us
Version  1.98       ------Sequential Create------ --------Random Create--------
turbo               -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 2046920797  78 +++++ +++ 1692906767  88 -1598280175  80 +++++ +++ -651977127  67
Latency               899us     603us    1383us    1973us      78us    6909us
A second run led to different results.

Code: Select all

Version  1.98       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Name:Size etc        /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
turbo            4G   79k  99  205m  66 87.0m  50  439k  98  137m  43  1593 163
Latency               139ms   41426us     232ms   19160us   89797us   53673us
Version  1.98       ------Sequential Create------ --------Random Create--------
turbo               -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 503242964  80 +++++ +++ -1496136360  90 1090869246  82 +++++ +++ -819275573  90
Latency              1296us     894us    2146us     639us      48us    5103us
It is very difficult for me to interpret, especially the negative numbers that appear as rates in the file create and delete section.

Return to “Networking and servers”