| Forum Home | ||||
| PC World Chat | ||||
| Thread ID: 80308 | 2007-06-18 16:03:00 | Some Unhappy Info On Flash Drives | SurferJoe46 (51) | PC World Chat |
| Post ID | Timestamp | Content | User | ||
| 560420 | 2007-06-18 16:03:00 | I went to a small seminar last night at the local junior college and got handed this text to consider . Not for sure knowing who wrote it, as there were no credits to the paper, I present it here intact after a TextBridge Pro scan . I left off the header and the tail to the article as I had a hard time setting the font for them anyway: Flash drives only look like disks . In fact, nothing works the way youd think . Flash is really different from magnetic recording, and those differences have a big impact on flash drive performance . How well vendors manage flash oddities has a huge impact on performance and even drive lifespan . The five weirdest things about flash drives Ive started from the bottom up - the bits - to present flash weirdness logically . And what it means to users of flash drives . 1) Flash drives can only write zeros . Every write must be preceded by an erase because the only way to write a one is to erase first, which writes all ones . Every write means an erase followed by a write, which is slows performance . 2) To write a page you must first erase the entire block . NAND flash, the most common kind, is divided into blocks - typically 128 KB - and each block is divided into pages - typically 2 KB . To write a new page, the entire 128 KB block must be copied first - less pages due for rewriting - and the entire block rewritten . This impacts performance even more . You may just need to write 2 KB, but the drive has to erase 128 KB and then write 128 KB . This makes small random writes very slow - even slower than notebook disk drive writes . And since todays PC/Mac file systems perform lots of small random writes, you wont see all the performance flash drives promise after you boot up . 3) There are no random writes in a block . Each block write starts with page 0 and proceeds in order to the 64th block . This is great for the blazing sequential write speeds that vendors happily quote, but it means that small random write performance is pretty awful . 4) Block size is a tradeoff, not a given . As flash chip capacities grow, keeping block size constant means more blocks to manage . For example, if flash drives were divided into 512 byte blocks, a 64 GB flash drives block table would require 128 million entries and about 384 MB of storage . With a 128 KB block, the table size is a more manageable 524,352 entries and less than 2 MB of storage . This means that vendors have the opportunity to improve flash drive performance through smaller block sizes and better block management techniques . Theyll cost more to implement, but you should get more too . 5) The most important piece of a flash drive is the translation layer . This software takes the underlying weirdness of flash and makes it look like a disk . The translation layer is unique to each vendor and none of them are public . Each makes assumptions that can throttle or help performance under certain workloads . What workloads? Sorry, youll have to figure that out for yourself . The bottom line is that flash drive write performance will be all over the map as engineers try to optimize for a wide range of workloads . The Storage Bits' Take Of All This: Flash drives fast access times are a compelling advantage over magnetic disks . Flash prices are dropping faster than disk prices, so the cost differential is dropping, making flash more attractive each day . But just because it looks like a disk doesnt mean it acts like a disk . It will be years before we have a good handle on the details of flash drive performance . Of course, if filesystems stopped issuing lots of small random writes these performance issues would go away . Apples new ZFS does this, but NTFS doesnt and it isnt clear if it can be modified to reduce the problem . If credits are found, I would appreciate if someone tells me, but as it is, I think the teacher had written this himself and just gave it to us as a hand-out for the rest of the lecture . |
SurferJoe46 (51) | ||
| 560421 | 2007-06-18 16:59:00 | Here is your cite (blogs.zdnet.com) SJ. | sal (67) | ||
| 560422 | 2007-06-18 23:06:00 | I hope Robin Harris doesn't kill me for that then.....If the mods want to pull this post, please do. Teachers too, should give credit for purloined articles.... |
SurferJoe46 (51) | ||
| 560423 | 2007-06-19 06:18:00 | Apples new ZFS does this, but NTFS doesnt and it isnt clear if it can be modified to reduce the problem. not that i am nit-picking but....... ZFS is a file system originally created by Sun Microsystems for the Solaris Operating System. |
robsonde (120) | ||
| 560424 | 2007-06-19 06:51:00 | not that i am nit-picking but....... ZFS is a file system originally created by Sun Microsystems for the Solaris Operating System. That would be 100% correct. Apple will be licensing the technology from Sun although it is rumoured that Leopard will only have read permissions for ZFS rather than Read write which will possibly come out in what ever Apple names the next version after Leopard - or something like that. What ever the case ZFS is supposed to be pretty amazing for large HDs with lots of large files. |
winmacguy (3367) | ||
| 560425 | 2007-06-19 07:35:00 | At the moment, "flash drives" are not what's being sold . They are USB flash non-volatile memory devices . They are a very good removable medium for storing files offline . As "disk drives" there is still a fundamental problem: they have a limited number of write cycles . It's being improved, but that will take time, and a lot of money . Seagate wouldn't sell many disk drives if they said they would guarantee them for only 1 000 000 writes to each sector . So I don't think it's really a problem . Yet . :D |
Graham L (2) | ||
| 560426 | 2007-06-19 11:07:00 | Seagate wouldn't sell many disk drives if they said they would guarantee them for only 1 000 000 writes to each sector . Did you mean 100,000? Seagate only guarantee conventional drives for 5 years, with load levelling flash drives are expected to last "decades" . |
PaulD (232) | ||
| 560427 | 2007-06-20 06:30:00 | ... "expected" or hoped? I'll believe it. In a few dacades. A disk accumulates a lot of operations in a fairly short time. 10^5 is approximately equal to 10^6 in reliability statistics :D |
Graham L (2) | ||
| 1 | |||||