Product Idea: USB Flash Drives
#65
(04-01-2021, 11:01 PM)dsimic Wrote: Too high load on the server would actually be a good problem to have.  I wouldn't worry too much about it for now, though.

I did manage to get cgit up and running, was a little bit of a pain. Seems like it's not quite yet mature for small servers hosting large repositories, but should be good enough for our purpose.

(04-01-2021, 11:01 PM)dsimic Wrote: That's an accurate description of the issue at hand.  Maybe we could put the link into the "Community and Support" section on the main wiki page, as an example of the community collaboration and effort?  That might even attract the attention of Pine64.

I was essentially told that anything put on the main page would be removed. I think we would need to ask before adding something, otherwise some wiki admin will just revert it again.

(04-01-2021, 11:01 PM)dsimic Wrote: Meh, not even doing a repeated read from "smart" flash would guarantee anything, because the embedded flash controller could simply return the buffered data that is still in transit to the underlying flash memory. 

Some industrial full-size SD cards mitigate the issue by including supercaps that provide the emergency power required to actually complete all write operations that were acknowledged as successful, which is the same approach as in enterprise SSDs.  However, there's simply no space for such supercaps in Micro SD cards or SPI flash chips, which makes them inherently unreliable.

I believe that between the filesystem and the flash control, there should be something that can be done in this space. But I guess this can also be part of the experimentation anyway.

(04-01-2021, 11:01 PM)dsimic Wrote: The leakage you mentioned actually belongs to a whole other category of issues, usually called bit rot or silent data corruption.  It is actually unrelated to the acknowledged writes that end up not reaching the underlying flash memory.  I'll try to explain this further.

There are three "players" in this game: the flash memory, the embedded flash controller, and the host.  When the flash "lies" to the controller, by experiencing the effects of cosmic rays or a defective cell, it is the silent data corruption.  In this case, the flash actually doesn't "lie", it's instead simply unaware of the changes to the data.  When the controller "lies" to the host, as a result of performing the wear leveling or as just an attempt to improve performance, it is the write that hasn't actually reached the flash memory.  In this case, the controller really "lies", by being fully aware of the data not reaching the underlying flash.

Eliminating the controller (a true "liar") from the above-described equation leaves the host to deal with low-level flash issues, but eliminates the possibility of having incomplete writes treated as complete.  Of course, the possibility for silent data corruption still remains, as a constraint of the flash memory technology, which can be mitigated using additional ECC data.

I'll have to look at this further. By the way, the chips linked in the wiki-page are automotive grade, so they have ECC in them too.

(04-01-2021, 11:01 PM)dsimic Wrote: It would be fun, but receiving a copyright infrigement notice would be much less fun. Smile

Inspired of course - not a direct clone. Also the PCB would be entirely hidden in the final casing for the device.

(04-03-2021, 03:00 PM)Arwen Wrote: I've added SMART to the Wiki's suggested features, (with a probable pre-req of UASP).

I saw, looks good Smile

(04-03-2021, 03:00 PM)Arwen Wrote: In regards to the copy on write, what I meant was that the flash is not used as simple addressable blocks. Since we have wear leveling, and spares, we have to have an internal "directory" which when I ask for from block 357 it gives me logical block 357, and not the physical block 357 which might be for something else.

My thought is to make sure that this internal "directory" of logical blocks from the host, to physical blocks in flash, is kept consistent. Even if we have to re-write the "directory", (with version number so we know which is more current), into another place. So that the old "directory" is good, UNTIL the new "directory" is completely written.

Perhaps taking a feature from ZFS and having 2 copies of the "directory" at all times may help avoid corruption.

Note: All metadata on ZFS has at least 2 copies, even on a single disk.

I think I get what you mean - but this is wear leveling, not a filesystem?

(04-03-2021, 03:00 PM)Arwen Wrote: Last, many software & hardware development projects include test jigs. We may want to create a USB test jig that will remove power. Perhaps by relay to avoid the capacitance issue. Or perhaps use an existing USB controlled relay with a special USB to USB adapter that cuts power.

Here are a few USB controlled relays I found cheaply;
https://www.amazon.com/NOYITO-1-Channel-...B07C3LPH3X
https://www.amazon.com/SMAKN®-LCUS-1-mod...B01CN7E0RQ

That first one has additional models that have 2 or 4 which could in theory cut the other lines too. (Though, I don't know about capacitance issues...)

Those seem to be USB controlled relays, not relays to control USB? The problem with having one of those on each of the lines is the capacitance and resistance they add. Honestly the complexity overhead is not worth it - designing this test rig could end up as large a task as the USB device itself.
  Reply


Messages In This Thread
Product Idea: USB Flash Drives - by barray - 03-03-2021, 05:57 AM
RE: Product Idea: USB Flash Drives - by Arwen - 03-04-2021, 02:25 PM
RE: Product Idea: USB Flash Drives - by Julius_GU - 03-05-2021, 01:33 PM
RE: Product Idea: USB Flash Drives - by Julius_GU - 03-05-2021, 03:59 PM
RE: Product Idea: USB Flash Drives - by barray - 03-05-2021, 07:04 PM
RE: Product Idea: USB Flash Drives - by barray - 03-05-2021, 09:23 PM
RE: Product Idea: USB Flash Drives - by Arwen - 03-07-2021, 03:33 PM
RE: Product Idea: USB Flash Drives - by barray - 03-07-2021, 04:59 PM
RE: Product Idea: USB Flash Drives - by barray - 03-07-2021, 11:15 PM
RE: Product Idea: USB Flash Drives - by Julius_GU - 03-14-2021, 12:05 PM
RE: Product Idea: USB Flash Drives - by Arwen - 03-14-2021, 01:40 PM
RE: Product Idea: USB Flash Drives - by barray - 03-14-2021, 02:01 PM
RE: Product Idea: USB Flash Drives - by Arwen - 03-14-2021, 02:18 PM
RE: Product Idea: USB Flash Drives - by barray - 03-14-2021, 03:12 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-15-2021, 04:00 PM
RE: Product Idea: USB Flash Drives - by barray - 03-15-2021, 04:31 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-15-2021, 08:32 PM
RE: Product Idea: USB Flash Drives - by barray - 03-16-2021, 02:43 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-16-2021, 03:21 PM
RE: Product Idea: USB Flash Drives - by barray - 03-16-2021, 04:42 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-16-2021, 05:11 PM
RE: Product Idea: USB Flash Drives - by barray - 03-16-2021, 06:02 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-16-2021, 06:36 PM
RE: Product Idea: USB Flash Drives - by barray - 03-16-2021, 08:23 PM
RE: Product Idea: USB Flash Drives - by Julius_GU - 03-17-2021, 02:04 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-19-2021, 05:47 AM
RE: Product Idea: USB Flash Drives - by barray - 03-17-2021, 07:02 PM
RE: Product Idea: USB Flash Drives - by barray - 03-17-2021, 10:26 PM
RE: Product Idea: USB Flash Drives - by barray - 03-20-2021, 12:26 AM
RE: Product Idea: USB Flash Drives - by dsimic - 03-20-2021, 03:08 AM
RE: Product Idea: USB Flash Drives - by barray - 03-20-2021, 04:37 AM
RE: Product Idea: USB Flash Drives - by dsimic - 03-20-2021, 05:47 AM
RE: Product Idea: USB Flash Drives - by barray - 03-21-2021, 12:01 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-21-2021, 03:48 PM
RE: Product Idea: USB Flash Drives - by barray - 03-21-2021, 04:18 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-21-2021, 04:56 PM
RE: Product Idea: USB Flash Drives - by barray - 03-21-2021, 10:39 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-22-2021, 12:11 AM
RE: Product Idea: USB Flash Drives - by barray - 03-22-2021, 12:19 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-26-2021, 06:59 AM
RE: Product Idea: USB Flash Drives - by LazLong - 03-22-2021, 06:20 PM
RE: Product Idea: USB Flash Drives - by barray - 03-23-2021, 04:37 AM
RE: Product Idea: USB Flash Drives - by LazLong - 03-23-2021, 02:02 PM
RE: Product Idea: USB Flash Drives - by israel - 03-23-2021, 06:02 AM
RE: Product Idea: USB Flash Drives - by barray - 03-23-2021, 04:33 PM
RE: Product Idea: USB Flash Drives - by barray - 03-27-2021, 02:06 AM
RE: Product Idea: USB Flash Drives - by dsimic - 03-27-2021, 03:00 AM
RE: Product Idea: USB Flash Drives - by barray - 03-28-2021, 01:47 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-28-2021, 03:04 PM
RE: Product Idea: USB Flash Drives - by barray - 03-28-2021, 03:28 PM
RE: Product Idea: USB Flash Drives - by dsimic - 03-28-2021, 09:46 PM
RE: Product Idea: USB Flash Drives - by barray - 03-29-2021, 08:09 AM
RE: Product Idea: USB Flash Drives - by dsimic - 04-01-2021, 07:50 AM
RE: Product Idea: USB Flash Drives - by xalius - 03-29-2021, 08:34 AM
RE: Product Idea: USB Flash Drives - by Arwen - 03-29-2021, 11:15 AM
RE: Product Idea: USB Flash Drives - by barray - 03-30-2021, 11:20 AM
RE: Product Idea: USB Flash Drives - by barray - 03-30-2021, 12:44 PM
RE: Product Idea: USB Flash Drives - by Arwen - 04-01-2021, 01:27 PM
RE: Product Idea: USB Flash Drives - by dsimic - 04-01-2021, 02:05 PM
RE: Product Idea: USB Flash Drives - by barray - 04-01-2021, 05:31 PM
RE: Product Idea: USB Flash Drives - by dsimic - 04-01-2021, 09:20 PM
RE: Product Idea: USB Flash Drives - by barray - 04-01-2021, 10:02 PM
RE: Product Idea: USB Flash Drives - by dsimic - 04-01-2021, 11:01 PM
RE: Product Idea: USB Flash Drives - by Arwen - 04-03-2021, 03:00 PM
RE: Product Idea: USB Flash Drives - by dsimic - 04-07-2021, 12:52 PM
RE: Product Idea: USB Flash Drives - by barray - 04-05-2021, 07:47 PM
RE: Product Idea: USB Flash Drives - by barray - 04-11-2021, 10:52 AM
RE: Product Idea: USB Flash Drives - by dsimic - 04-12-2021, 01:09 AM
RE: Product Idea: USB Flash Drives - by Arwen - 04-13-2021, 11:31 AM
RE: Product Idea: USB Flash Drives - by dsimic - 04-14-2021, 11:13 AM
RE: Product Idea: USB Flash Drives - by barray - 04-20-2021, 07:19 PM
RE: Product Idea: USB Flash Drives - by dsimic - 04-20-2021, 08:07 PM
RE: Product Idea: USB Flash Drives - by xalius - 04-21-2021, 08:45 AM
RE: Product Idea: USB Flash Drives - by barray - 04-21-2021, 08:32 PM
RE: Product Idea: USB Flash Drives - by xalius - 04-22-2021, 01:27 PM
RE: Product Idea: USB Flash Drives - by dsimic - 04-25-2021, 02:13 PM
RE: Product Idea: USB Flash Drives - by barray - 04-25-2021, 10:24 PM
RE: Product Idea: USB Flash Drives - by dsimic - 04-25-2021, 10:44 PM
RE: Product Idea: USB Flash Drives - by barray - 05-14-2021, 01:43 AM
RE: Product Idea: USB Flash Drives - by dsimic - 05-16-2021, 01:11 AM
RE: Product Idea: USB Flash Drives - by barray - 05-16-2021, 02:10 AM
RE: Product Idea: USB Flash Drives - by dsimic - 05-16-2021, 05:29 AM
RE: Product Idea: USB Flash Drives - by Arwen - 05-16-2021, 11:32 AM
RE: Product Idea: USB Flash Drives - by poVoq - 05-16-2021, 05:25 PM
RE: Product Idea: USB Flash Drives - by barray - 05-16-2021, 07:08 PM
RE: Product Idea: USB Flash Drives - by barray - 05-17-2021, 10:36 PM
RE: Product Idea: USB Flash Drives - by dsimic - 05-17-2021, 11:59 PM
RE: Product Idea: USB Flash Drives - by barray - 05-18-2021, 09:08 PM
RE: Product Idea: USB Flash Drives - by barray - 06-01-2021, 10:23 PM
RE: Product Idea: USB Flash Drives - by dsimic - 06-04-2021, 04:51 AM
RE: Product Idea: USB Flash Drives - by barray - 06-04-2021, 11:33 PM
RE: Product Idea: USB Flash Drives - by dsimic - 06-04-2021, 11:51 PM
RE: Product Idea: USB Flash Drives - by barray - 06-07-2021, 10:04 AM
RE: Product Idea: USB Flash Drives - by dsimic - 06-11-2021, 04:15 AM
RE: Product Idea: USB Flash Drives - by barray - 06-12-2021, 04:35 AM
RE: Product Idea: USB Flash Drives - by dsimic - 07-07-2021, 08:08 PM
RE: Product Idea: USB Flash Drives - by barray - 07-08-2021, 09:21 PM
RE: Product Idea: USB Flash Drives - by biketool - 07-09-2021, 03:09 AM
RE: Product Idea: USB Flash Drives - by dsimic - 07-09-2021, 03:27 AM
RE: Product Idea: USB Flash Drives - by biketool - 07-09-2021, 09:03 AM
RE: Product Idea: USB Flash Drives - by dsimic - 07-09-2021, 01:43 PM
RE: Product Idea: USB Flash Drives - by barray - 07-10-2021, 04:53 AM
RE: Product Idea: USB Flash Drives - by biketool - 07-10-2021, 11:54 AM
RE: Product Idea: USB Flash Drives - by barray - 07-12-2021, 01:08 AM
RE: Product Idea: USB Flash Drives - by tarksur - 09-01-2022, 01:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Possible new Pine64 product - Pine Blue Ray DVD Linux tv box Omnios 5 1,507 07-24-2023, 03:21 PM
Last Post: Omnios
  QuartzPro64 SPI flash Melab 1 904 03-16-2023, 07:50 PM
Last Post: Melab
  Modular product design Zotax 0 854 01-28-2023, 11:50 AM
Last Post: Zotax
  Product Idea: PineTracker EternityForest 0 786 01-12-2023, 10:33 PM
Last Post: EternityForest
  New product idea: Pine Glasses Blathers 2 2,767 12-02-2022, 09:51 PM
Last Post: erikzoltan
Lightbulb Product Idea: Pine Graphics Tablet israel 10 8,287 04-19-2022, 04:12 AM
Last Post: Houstand345
  Article: Auto Flash and Test NuttX on RISC-V BL602 (PineCone) lupyuen 0 1,284 01-24-2022, 05:41 PM
Last Post: lupyuen
  Rackmount cluster case as a Pine Store product? dfr 3 3,370 09-30-2021, 04:52 PM
Last Post: poVoq
  E-Note Device (E-Ink, E-Paper, Project Idea) Sirius 9 9,123 08-18-2021, 08:28 AM
Last Post: biketool
  PineVR as a new product? poVoq 11 11,465 05-31-2021, 09:33 AM
Last Post: MirceaKitsune

Forum Jump:


Users browsing this thread: 2 Guest(s)