Author Topic: microSD size  (Read 11502 times)

Adam Boardman

  • Full Member
  • ***
  • Posts: 191
    • View Profile
microSD size
« Reply #15 on: January 16, 2018, 08:17:35 am »
On the subject of filing systems, has anyone figured out what are the best ones for wear levelling?

For anyone who dosn't know what it is then have a read of Wear_leveling

But basically our flash drives/cards are going to last for a much longer time if we have some part of the system doing that for us. It can happen in the flash controller hardware or in the drivers or in the filesystem. I'm hoping the internal drive is sorted by the controller/driver but have no evidence of this being the case, removable media on the other hand is unlikely to have this?

One additional thing to do is to set 'noatime' so that every read doesn't also cause a write: ReducingWrites

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
microSD size
« Reply #16 on: January 16, 2018, 08:37:43 am »
memory cards have an internal controller which does wear levelling, but I don't think they support TRIM?
on my DSLR, I occasionally (after copying off all the photos) do a secure erase on the card which esssentially factory resets the card so that the wear-levelling can work more effectively. You need the right kind of memory card reader and to use the official SD card formatter in the right mode for that: https://www.sdcard.org/downloads/formatter_4/

I don't know anything about the memory controller in the Gemini, whether it's simply flash connected directly to the CPU with the OS taking care of wear levelling, or if there's an intermediate controller. Hopefully the latter. If the former, you definitely want to be using F2FS with TRIM, and never put swap on the internal flash to avoid destroying part of it.

p.s. and a lot depends on whether its SLC flash or MLC etc, the former gives many more write/erase cycles.
« Last Edit: January 16, 2018, 08:38:23 am by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Varti

  • Administrator
  • Hero Member
  • *****
  • Posts: 1278
    • View Profile
microSD size
« Reply #17 on: January 16, 2018, 09:20:04 am »
I'll be also using F2FS on my SD card with no swap partition, as suggested by speculatrix. I already use that filesystem on my Sharp Zaurus and I never had any problem with it.

By the way, does anybody know what type of internal storage will be used on the Gemini? Will it be an M.2 SSD drive (https://en.wikipedia.org/wiki/M.2, and thus will it be possible to upgrade it?

Varti
Planet Gemini PDA WiFi/LTE with Mediatek x27
SL-C1000 running Arch Linux ARM May2017, K30225 Wi-Fi CF Card, 64GB SDXC card
and many other Zauruses!

Alius

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
microSD size
« Reply #18 on: January 16, 2018, 09:58:14 am »
I thought most phone-like devices (and some budget convertible x86 tablets) used eMMC, but I could be mistaken.  Since Planet seems to be trying to leverage some existing turnkey hardware to focus on the uniqueness of the form-factor, I would be (pleasantly) surprised if they were able to put a true SSD in the Gemini

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
microSD size
« Reply #19 on: January 16, 2018, 10:31:13 am »
I'm pretty sure it will be eMMC. We have to hope they will have used an eMMC 5  module with high performance supporting HS400, to give good random I/O as well as sustained reads and writes.

I found this useful table:
https://www.datalight.com/solutions/technol...ison-by-version
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Grench

  • Full Member
  • ***
  • Posts: 110
    • View Profile
microSD size
« Reply #20 on: January 16, 2018, 03:33:51 pm »
Gemini flash thoughts...

M.2?  No.
Removable SSD?  No.
Soldered on eMMC module?  Definitely.

On partitions and formats...
For this I'm a bit torn.

Android since V6 has used EXT4 for it's own partition on the eMMC.  But...

Depending on how the OEM (Planet Computers) sets up Android, it may or may not be willing to read any partition format other than Fat32 (cards <= 32GB) and ExFat (cards > 32GB).

There ARE Linux drivers for ExFat (Thank Google) utilizing FUSE.  These can likely be made to work for Debian on the Gemini... maybe...  They were able to make them work on the Pandora (Another ARM Linux computer).

I think Planet is planning to have us boot Linux from the microSD slot.  Yet to be proven one way or the other.  If this is the case, I'll probably put multiple partitions on my microSD card to use in the Gemini.

Something I'm still missing, and can't seem to find via searching...  What is the definitive list of partition formats that Android 7 can support?

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
microSD size
« Reply #21 on: January 17, 2018, 08:43:28 am »
File system support comes down to the configuration used when the kernel was built.
Planet should release the kernel sources under the GPL and so it should be possible to replace the kernel or add modules to it restrospectively. And this is where the shadow of Mediatek looms, since devices based on Mediatek rarely get the full kernel sources released, and may require closed source binary blobs which make it hard or impossible to upgrade to a newer kernel.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

depscribe

  • Sr. Member
  • ****
  • Posts: 254
    • View Profile
microSD size
« Reply #22 on: January 17, 2018, 01:02:54 pm »
Quote from: Adam Boardman
One additional thing to do is to set 'noatime' so that every read doesn't also cause a write: ReducingWrites

I just had a colorful hour or so, having applied the suggestions in this link and rebooting to a read-only filesystem such that I could not unedit /etc/fstab. Had to do a mount -o remount,rw /dev/sda2 / in order to be able to undo what I had done. Is this an ext4-only thing? Because in ext3 it makes for excitement but no joy. (Though I must confess that it reduced the number of writes to zero!)
dep

Atari Portfolio (yes, it still works and yes, I bought it new)
Libretto 110 CT (with docking station and all kinds of PCMCIA stuff)
And, now, a Gemini and, fortunately, a GPD Pocket

Adam Boardman

  • Full Member
  • ***
  • Posts: 191
    • View Profile
microSD size
« Reply #23 on: January 17, 2018, 01:10:49 pm »
RE: noatime causing zero writes (readonly filesystem)

I've only ever used it with ext4, but from googleing the idea it appears other people have used it with ext3? Could you post your from/to lines in-case it was some other change? (I've also updated the page to avoid others having the same problem, I'll test it on my Gemini when I get it and update the page - or anyone else can)
« Last Edit: January 17, 2018, 01:20:45 pm by Adam Boardman »

depscribe

  • Sr. Member
  • ****
  • Posts: 254
    • View Profile
microSD size
« Reply #24 on: January 17, 2018, 01:37:12 pm »
Quote from: Adam Boardman
RE: noatime causing zero writes (readonly filesystem)

I've only ever used it with ext4, but from googleing the idea it appears other people have used it with ext3? Could you post your from/to lines in-case it was some other change? (I've also updated the page to avoid others having the same problem, I'll test it on my Gemini when I get it and update the page - or anyone else can)

UUID=00c71d45-5bc2-40a7-b52f-cd73c82d294f  /            ext3  errors=remount-ro             0  1  

became:

UUID=00c71d45-5bc2-40a7-b52f-cd73c82d294f  /            ext3  errors=remount-ro,data=writeback,noatime,nodiratime           0  1  


UUID=f33fcb46-c800-4a83-acef-3952e6f813d7  /home        ext3  defaults                      0  2  

became:

UUID=f33fcb46-c800-4a83-acef-3952e6f813d7  /home        ext3  defaults,data=writeback,noatime,nodiratime                   0  2  

Do you suppose it's the data=writeback setting that blows things up?

(I also have an additional drive in the machine, formatted ext4, but it is data only and has no UUID line at all, though this shouldn't figure in booting at all.)

The write reduction fix is of interest because Linux tends toward a lot of unnecessary disk activity, and reducing it is a Real Good Thing.
dep

Atari Portfolio (yes, it still works and yes, I bought it new)
Libretto 110 CT (with docking station and all kinds of PCMCIA stuff)
And, now, a Gemini and, fortunately, a GPD Pocket

depscribe

  • Sr. Member
  • ****
  • Posts: 254
    • View Profile
microSD size
« Reply #25 on: January 17, 2018, 02:29:24 pm »
It appears definitely to be a problem with the data=writeback. Just tried without it and all is tickety-boo.
dep

Atari Portfolio (yes, it still works and yes, I bought it new)
Libretto 110 CT (with docking station and all kinds of PCMCIA stuff)
And, now, a Gemini and, fortunately, a GPD Pocket

Adam Boardman

  • Full Member
  • ***
  • Posts: 191
    • View Profile
microSD size
« Reply #26 on: January 17, 2018, 03:14:59 pm »
Excellent, I expect the access time bits have more of an impact than the writeback, so I'm glad they work for you.

depscribe

  • Sr. Member
  • ****
  • Posts: 254
    • View Profile
microSD size
« Reply #27 on: January 17, 2018, 05:25:47 pm »
Quote from: Adam Boardman
Excellent, I expect the access time bits have more of an impact than the writeback, so I'm glad they work for you.

There seems to be a noticeable performance increase as well. Thanks!
dep

Atari Portfolio (yes, it still works and yes, I bought it new)
Libretto 110 CT (with docking station and all kinds of PCMCIA stuff)
And, now, a Gemini and, fortunately, a GPD Pocket

depscribe

  • Sr. Member
  • ****
  • Posts: 254
    • View Profile
microSD size
« Reply #28 on: January 17, 2018, 10:26:47 pm »
Quote from: Grench
I think Planet is planning to have us boot Linux from the microSD slot.  Yet to be proven one way or the other.  If this is the case, I'll probably put multiple partitions on my microSD card to use in the Gemini.

Not if this is accurate:

"Whichever model of Gemini PDA you choose, it already comes with a very healthy 64GB of on-board storage.  Once you take into account the installed Android and Linux operating systems however, and then the space occupied by all your apps, and system and temporary files, that space will very quickly be significantly reduced.  Many Gemini owners therefore will want to expand their storage with the addition of a MicroSD card."
dep

Atari Portfolio (yes, it still works and yes, I bought it new)
Libretto 110 CT (with docking station and all kinds of PCMCIA stuff)
And, now, a Gemini and, fortunately, a GPD Pocket

Grench

  • Full Member
  • ***
  • Posts: 110
    • View Profile
microSD size
« Reply #29 on: February 02, 2018, 01:46:49 pm »
Quote from: depscribe
Quote from: Grench
I think Planet is planning to have us boot Linux from the microSD slot.  Yet to be proven one way or the other.  If this is the case, I'll probably put multiple partitions on my microSD card to use in the Gemini.

Not if this is accurate:

"Whichever model of Gemini PDA you choose, it already comes with a very healthy 64GB of on-board storage.  Once you take into account the installed Android and Linux operating systems however, and then the space occupied by all your apps, and system and temporary files, that space will very quickly be significantly reduced.  Many Gemini owners therefore will want to expand their storage with the addition of a MicroSD card."

Considering the number of (likely unintentional) inaccuracies in those starter articles, it would not surprise me in the least if he's completely off in assumption land on those statements.  No fault of his own, but the guy is a clearly writer trying to be a techie.  I seriously doubt if he has anymore insights into the OS configurations on the Gemini than you or I do.

You will note through the articles that the author has never actually held a Gemini let alone looked at how the software is or isn't installed by default.