PINE64
Will purchasing an NVMe SSD noticably improve performance - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Pinebook Pro Hardware and Accessories (https://forum.pine64.org/forumdisplay.php?fid=116)
+--- Thread: Will purchasing an NVMe SSD noticably improve performance (/showthread.php?tid=8234)

Pages: 1 2 3


RE: Will purchasing an NVMe SSD noticably improve performance - User 11436 - 11-23-2019

(11-11-2019, 01:08 AM)hdk Wrote: Is there a preferred benchmark tool to use at Pine64?

rock64@pinebookpro:~$ systemd-analyze
Startup finished in 4.919s (kernel) + 8.238s (userspace) = 13.157s
graphical.target reached after 8.206s in userspace


I can produce lots of info from Hardinfo.

I got the following figures when booting the standard Debian Stretch image from the eMMC:

Code:
Startup finished in 1.922s (kernel) + 11.936s (userspace) = 13.859s

Will report back when I have an SSD.


RE: Will purchasing an NVMe SSD noticably improve performance - Arglebargle - 12-12-2019

Hey, I just wanted to add some data toward answering the original question "will an SSD noticeably improve performance?" 

Code:
rock64@pinebookpro:~$ iostat -h mmcblk1
Linux 4.4.190-1233-rockchip-ayufan-gd3f1be0ed310 (pinebookpro)  12/11/2019      _aarch64_       (6 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          22.9%    0.7%    8.9%    0.2%    0.0%   67.3%

Device             tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
mmcblk1
                 26.51       128.4k       259.7k      58.5G     118.3G

rock64@pinebookpro:~$ uptime
22:58:42 up 5 days, 12:32,  3 users,  load average: 0.48, 0.42, 0.42

So we're looking at 5 days uptime booted off the eMMC doing a variety of things from the desktop. The iowait % is the big number to pay attention to here, this is the time that the machine spent with a cpu core active waiting on the disk to complete an io operation.

Two tenths of a percent of the time this was the case, this very clearly demonstrates that disk io isn't the performance bottleneck on the PBP under typical desktop use conditions. If you have a usage pattern that requires extremely heavy disk access (constantly compiling, for example) then you'll benefit more from an NVMe drive, otherwise you really won't see much improvement most of the time.

There are also a handful of ways to mitigate the need for an SSD even if you require fast disk access; as an example chromium seems to like fast storage for it's user cache, so I've setup a 550MB zram mountpoint for that. If you need persistence for fast cache data you can combine tmpfs (or zram, which will be a tad slower but much more memory efficient) with overlayfs using the memory device as an upper layer and storage on the emmc as a persistent lower layer.

Anyway, long story short, 99.8% of the time over 5 days of desktop use, browsing heavily, code editing, watching netflix, etc my PBP wouldn't have seen any real improvement from using NVMe over eMMC.


RE: Will purchasing an NVMe SSD noticably improve performance - hdk - 12-12-2019

In my opinion the actual speed of the device is also important.
rock64@pinebookpro:~$ iostat
Linux 4.4.190-1233-rockchip-ayufan-gd3f1be0ed310 (pinebookpro) 12/12/19 _aarch64_ (6 CPU)

avg-cpu: %user %nice %system %iowait %steal %idle
7.79 0.05 2.38 0.04 0.00 89.74

Device tps kB_read/s kB_wrtn/s kB_read kB_wrtn
loop0 0.02 0.15 0.00 337 0
loop1 0.02 0.15 0.00 332 0
loop2 0.02 0.47 0.00 1064 0
loop3 0.06 1.41 0.00 3197 0
loop4 0.02 0.15 0.00 337 0
loop5 0.02 0.15 0.00 345 0
loop6 0.02 0.15 0.00 332 0
loop7 0.02 0.15 0.00 344 0
nvme0n1 87.35 359.57 322.65 815505 731768
mmcblk1 0.17 3.08 0.00 6986 0
mmcblk1boot1 0.02 0.10 0.00 216 0
mmcblk1boot0 0.02 0.10 0.00 216 0
loop8 0.02 0.46 0.00 1044 0
zram0 0.12 0.46 0.00 1052 4
zram1 0.13 0.52 0.00 1184 4
zram2 0.13 0.52 0.00 1184 4
zram3 0.13 0.52 0.00 1184 4
zram4 0.13 0.52 0.00 1184 4
zram5 0.13 0.52 0.00 1184 4

Readable iostat.