in reply to Re: Adding cols to 3d arrays - syntax
in thread Adding cols to 3d arrays - syntax
Storable is an XS module that (quickly) serializes and unserializes Perl data structures to and from its own binary format. The idea is to build the @PPN and @LPN indexes once and then save those as (presumably much smaller) files alongside the image. Actual usage is to read the index arrays back in full, then open the image file and seek/read/unpack only the data that you need for each analysis from the full image.
For efficiency, the controller is likely to batch writes until it has a full erase block and only then "flush the buffers" out to the NAND array, and there may even be structures larger than an erase block that are significant to the FTL. The odd "bank 32" data hints at such a structure. How long is that apparent field?
If the FTL uses a log structure, the "LBA 128" field might be the write sequence number you have been looking for. The nonsensical "LBA" list may simply be garbage, "unused" space that gets written with whatever happened to be in the controller's memory when writing the block. In other words, it may be a list of LPNs, but not LPNs that are relevant to the current state of the NAND array. Or, in C terms, the contents of an uninitialized buffer.
Also, a small note about this site: there is a "reply" link for each post, and your post appears as a child of that post if you use it, instead of appearing at the top-level in the thread. PerlMonks also notifies the author of the post you replied to when a reply is made in this way. Please use it. I will request to have this subthread reparented, but please try to maintain the threaded nature of the discussion. The "reply" link for this post should appear to the right of this paragraph. --->
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Adding cols to 3d arrays - syntax
by peterrowse (Acolyte) on Sep 21, 2019 at 00:12 UTC | |
by jcb (Parson) on Sep 21, 2019 at 04:53 UTC | |
by peterrowse (Acolyte) on Sep 21, 2019 at 13:33 UTC | |
by jcb (Parson) on Sep 21, 2019 at 22:30 UTC | |
by peterrowse (Acolyte) on Sep 22, 2019 at 01:41 UTC | |
|