SD cards for Pinebook Pro
#1
  What is the most ideal speed for the Pinebook Pro SD cards  ?  ( without going needlessly over specification )
 
        I read the wiki as it being 50 mb,  would that be correct..?

        Thanks  !  BC
      LINUX = CHOICES
         **BCnAZ**
               Idea
   Donate to $upport
your favorite OS Team
#2
(12-22-2019, 11:53 PM)bcnaz Wrote:   What is the most ideal speed for the Pinebook Pro SD cards  ?  ( without going needlessly over specification )
 
        I read the wiki as it being 50 mb,  would that be correct..?

        Thanks  !  BC

Wiki - Pinebook Pro - Expansion Ports - MicroSD cards

So yes, 50MB per second is the top the RK3399 can support.

A bit slow for an OS, but still usable.
--
Arwen Evenstar
Princess of Rivendale
#3
So a 100 mb/sec sd card is plenty to run that

Thank you
      LINUX = CHOICES
         **BCnAZ**
               Idea
   Donate to $upport
your favorite OS Team
#4
You can add this in your fstab


Code:
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>

UUID=$ROOT-UUID /  ext4    defaults,noatime 0 1

This will not update atime on any file and refresh the inode (and do writes)

I use this for around 10 years without any issues in my git trees and build environment

Please change to your $ROOT-UUID
#5
In some ways, using this is slightly better;
Code:
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>

UUID=$ROOT-UUID /  ext4    defaults,relatime 0 1
And it looks like this is the default behaviour when "noatime" is not used.

It basically makes sure that if a file is accessed after last modification, the access time must reflect that. But otherwise, access time is not updated every access, just the first after modification.
--
Arwen Evenstar
Princess of Rivendale
#6
I bought a bunch of cards that meet the A1 standard (the new standard to help qualify the speed of SD cards for use as Android auxiliary storage).

It made a big difference for me although I can only speak anecdotally. Anyhow using my Debian installer to these new A1 cards just feel snappy and comfortable. When I used one of my older class 10/UHS-1 cards it was very obviously much slower to complete the install process (and running a debootstrap from scratch was downright sluggish).

The workload the PBP is likely to put on SD cards is likely to be similar to Android (or at least more like Android than a camera) so using the A1/A2 standard makes sense to me.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#7
Those read and write speeds are only under ideal conditions, in other words, reading and writing large files.
When you use a micro SD as boot device, IOPS (input/output operations per second) will become more important.
And as danielt mentions, you still can notice the difference in IOPS.

Update: Would be nice when exFAT will be included in the standard image.
#8
(12-23-2019, 11:40 AM)danielt Wrote: I bought a bunch of cards that meet the A1 standard (the new standard to help qualify the speed of SD cards for use as Android auxiliary storage).

It made a big difference for me although I can only speak anecdotally. Anyhow using my Debian installer to these new A1 cards just feel snappy and comfortable. When I used one of my older class 10/UHS-1 cards it was very obviously much slower to complete the install process (and running a debootstrap from scratch was downright sluggish).

The workload the PBP is likely to put on SD cards is likely to be similar to Android (or at least more like Android than a camera) so using the A1/A2 standard makes sense to me.

Like you mentioned IOPS are the most important metric for flash storage on an SBC containing a Linux root filesystem. You really aren't going to be doing that many large sequential transfers, and the SD reader on most SBCs is capped at 50MB/s, so speeds above 50MB/s are basically meaningless. I look at 4k IOPS almost exclusively when I'm spec'ing SD cards for Linux systems.

@bcnaz --

I've been using Sandisk A1/A2 cards for the last couple of years on all of my linux SBCs with pretty good results. I bought a handful of random A1 cards from Amazon for $8-9/ea to test against the Sandisk/Samsung I usually use  and spent an hour benching them last month: https://gist.github.com/foundObjects/c02...09b555a9e6

tl;dr - If you can find Sandisk A1 Extreme cards from around 2017 they're the best performers. Sandisk A2 Extreme and Samsung EVO cards are solid as well.

I've spent the last couple of years tinkering with improving disk io on all of my SBCs and here are the things I've found that have the biggest impact:
  • Mount everything noatime, this will chop out a significant chunk of metadata io load. Small frequent writes are the worst-case io load for sd cards.
  • Set a decently long commit interval for all of your filesystems, something between 3 and 10 minutes. This will cause transient io operations to complete in the filesystem cache rather than making multiple small updates to the media.
  • If possible use a filesystem with transparent compression; this can drastically reduce real io on flash media and net a significant speed boost on highly compressible data. I run ZFS or btrfs with lz4/lzo/zstd on all of my flash nand machines.
  • I also put heavily used compressible data like swap and /var/log on zram. Mounts like /var/log work really well with a combination of zram, overlayfs, overlayfs-tools to commit data from the upper to the lower and systemd timers to do the commit work behind the scenes when needed. tmpfs is even better if you have a lot of ram, but most SBCs don't.
FWIW I run all of my SBCs on battery backup power so I can get away with a lot of caching tricks that would otherwise be risky. Fortunately the PBP has a built in UPS so everything above is pretty safe, just try not to crash your kernel unexpectedly.

ZFS and btrfs have some performance costs vs ext4, if snapshots don't matter to you it might be worth looking into LVM/VDO for transparent compression. I haven't done that, for me snapshots and send/receive outweigh the small performance cost.

(12-23-2019, 02:26 PM)jiyong Wrote: Those read and write speeds are only under ideal conditions, in other words, reading and writing large files.
When you use a micro SD as boot device, IOPS (input/output operations per second) will become more important.
And as danielt mentions, you still can notice the difference in IOPS.

Update: Would be nice when exFAT will be included in the standard image.

Try this: https://github.com/barrybingo/exfat-nofuse with dkms.

https://github.com/ayufan-rock64/linux-b...fat-nofuse
#9
AFAIR

extFAT is in mainline currently in staging
It's worth to mention, that ext4/btrfs and the world famous extFAT (shrugs)
are optimized for rotating rust.

There is some other filesystem, I'm currently looking at F2FS

Quote:F2FS is based on Log-structured File System (LFS), which supports
          versatile "flash-friendly" features. The design has been focused on
          addressing the fundamental issues in LFS, which are snowball effect
          of wandering tree and high cleaning overhead.
#10
exFAT is optimized for flash storages, was developed for them and indeed is even a part of the SD standard, it's the FS, that should be used with SDXC cards. one should be advised to use it on every removable flash based device for their own comfort. F2FS would be slower for sure, and certainly is a "bye" to interoperability.
ANT - my hobby OS for x86 and ARM.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook Pro Initial Impressions kunger 443 590,286 04-16-2024, 07:29 PM
Last Post: KC9UDX
  looking to buy one pinebook pro (mainland China) duanduan 3 2,301 03-21-2024, 07:44 PM
Last Post: wangyukunshan
  Cellular module for Pinebook Pro Lotech 1 403 03-05-2024, 05:40 AM
Last Post: KC9UDX
  Screen on pinebook stays black but can ssh into machine tuxxpine 0 305 02-23-2024, 04:22 PM
Last Post: tuxxpine
  Sale my ANSI PineBook Pro cuthbertdavies 0 293 02-14-2024, 09:12 PM
Last Post: cuthbertdavies
  Compiling with -j6 on the Pinebook Pro (Overheat) KC9UDX 0 229 02-14-2024, 09:01 AM
Last Post: KC9UDX
  Pinebook Pro in EU for Sale - €90 jan_vdk 2 680 02-07-2024, 02:12 AM
Last Post: 23Ro
  Pinebook Pro for sale tomekdev 2 749 02-01-2024, 11:35 AM
Last Post: tomekdev
  Video Editing Is Possible On The PineBook Pro! ImmyChan 10 7,627 12-17-2023, 09:29 PM
Last Post: insideau786
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 2,247 12-15-2023, 02:11 PM
Last Post: wdt

Forum Jump:


Users browsing this thread: 2 Guest(s)