Thursday, January 21, 2010

Giz Explains: SSDs and Why You Wish You Had One












Speed. Toughness. Efficiency. Silence. That's why we want solid-state drives in our computers. But we worry about the zoom-zoom performance degrading over time, and the fact that SSDs might eventually wear out. Here's what you need to know about 'em.

Why Solid-State Drives Are Awesome (Or At Least, Better Than Hard Drives)

To understand what's great about SSDs, let's start with HDDs (you know, old-fashioned hard drives). On a basic level, a hard disk drive works thusly: Inside is a magnetized recording surface called a platter that spins around really fast, with a head that zooms across disk to read and write data—think kinda like a record player, except the head never touches the surface, 'cause that would be very, very bad. So, you can see the problem with hard drives: They're fragile (don't drop your computer) and they're slow to access stuff because the head has to physically move to where the data is.













With an SSD, on the other hand, we're talking straight silicon. What's inside is a bunch of flash memory chips and a controller running the show. There are no moving parts, so an SSD doesn't need to start spinning, doesn't need to physically hunt data scattered across the drive and doesn't make a whirrrrr. The result is that it's crazy faster than a regular hard drive in nearly every way, so you have insanely quick boot times (an old video, but it stands), application launches, random writes and almost every other measure of drive performance (writing large files excepted). For a frame of reference, General Manager of SanDisk's SSD group, Doron Myersdorf, says an equivalent hard drive would have to spin at almost 40,000rpm to match an SSD. And, you can drop it—at least, a little.

Secrets of the SSD

Typically, what you've inside an SSD is a bunch of NAND flash memory chips for storage—the same stuff found in memory cards and USB thumb drives—along with a small cache of DRAM, like you'd find on most current hard drives. The DRAM is also flash memory, but the difference between the two is that the storage memory is non-volatile, meaning the data it holds won't go poof when it loses power, while the faster DRAM is volatile memory, so "poof" is exactly what happens to DRAM data when the power goes out. That's fine because it's the faster DRAM is just for caching things, holding them temporarily to make the whole system work faster.

So, let's talk a bit about flash memory itself. I'll try to keep it straightforward and not lose you, because it's key to the benefits and problems with solid-state storage.

Flash memory is made up of a bunch of memory cells, which are made up of transistors. There are two basic kinds of memory: With single-level cell (SLC) memory, one bit of data is stored per cell. (Bits, the basic building block of information, if you recall, have two states, 0 or 1.) The SLC type is fast as hell and lasts a long time, but it is too expensive for storing the dense amounts of data you'd want in a personal computer. SLC memory is really only used for enterprise stuff, like servers, where you need it to last for 100,000 write cycles.

The solution for normal humans is multi-level cell memory. Currently, up to 4 bits can be stored per cell. "Multi-level" refers to the multiple levels of voltage in the cell used to get those extra bits in. MLC SSD drives are much cheaper than SLC but are, as I mentioned, slower, and can wear out faster than their pricier counterpart. Still, for now and going forward into the foreseeable future, all of the SSDs you could come close to owning are of the MLC variety.

The Bad Stuff

Structurally, flash memory is divided into blocks, which are broken down further into pages. And now, we get into one of the major problems with flash. While data can be read and written at the individual page level, it can only be erased at the larger block level. In other words, suppose you have a 256k block and a 4k page, and you want to erase just one page worth of data, you have to erase the whole block, and then write all the rest of the data back to the block.

This is a huge problem, for one, because MLC flash memory wears out after 10,000 write cycles. Two, as the drive fills up, performance significantly degrades. (Anandtech has a pretty great illustration, amidst a massively deep dive on SSDs you should read if you're interested at all, showing this.) That's because without free blocks to write to, you've gotta go through that intensive erase and rewrite cycle, which, as you'd imagine, entails a lot of overhead. Problem numero three is that, according to SanDisk CEO Eli Harari, there's "a brick wall" in the near future, when storage at the chip level could stop increasing in the not-too-distant future.

Mitigating the Bad Stuff

The thing is, you actually probably still want an SSD in your next computer, to make it run awesomer. Because where there are problems, there are sorta solutions. Remember how I mentioned up above the other major component in an SSD, besides the flash memory, is the controller? They're a big part of what differentiates one company's SSD from another's. The controller is the secret sauce, as SanDisk's Myersdorf told me. Because the game, for now, is all about managing flash better, both physically and logically. In other words, it's about algorithms.

The first standard technique for long flash-memory life is wear leveling, which is simply not writing to the same area of the drive over and over again. Instead, the goal is to fill up the entire drive with stuff before you have to start erasing blocks, knowing that erasing and re-writing will use up precious cycles. The problem of "Write amplification"—say you have a 1MB document that ends up causing 4MB worth of writes to the drive because of the whole block and pages problem described above, where you wind up reading, erasing and re-writing a bunch of extra blocks and pages—that is being lowered, says Myersdorf, because drive management is shifting from being block-based to page-based. More granular algorithms with caching and prediction means there's less unnecessary erasing and writing.

The biggest thing is what's called TRIM. As you probably know, when you delete something from your computer, it isn't instantly vaporized. Your OS basically just marks the data as "Hey it's cool to pave over this with new stuff." Your hard drive has no real idea you deleted anything. With the TRIM function, when you delete something, the OS actually tells the SSD, "Hey you can scrub this crap." The SSD dumps the block to a cache, wipes the pages with the stuff you want gone, and copies the stuff you want to keep back to a new block, leaving you with clean pages for the next time you want to write something to the disk. This means better performance when you're saving new stuff, since it handles the read-erase-rewrite dance ahead of time. Windows 7 supports TRIM, and Myersdorf says Windows 8 will be even better for solid-state storage.

As for busting through the brick wall of limited storage, the number of electrons that can reside in a cell, increasing flash memory storage at a pace faster than Moore's Law, right now, Toshiba, who invented NAND flash, is currently the chip capacity king. The company just announced a new 64GB NAND flash module that combines 16 4GB NAND chips. This would seem to be closing in on that wall, which we don't want them to do, because we want the dollar-to-MB ratio to keep dropping. Myersdorf is optimistic (despite his boss's gloomy pronouncement), "There have been several walls in history of the [flash] industry—there was transition to MLC, then three bits per cell, then four—every time there is some physical wall, that physics doesn't allow you to pass, there is always a new shift of paradigm as to how we make the next step on the performance curve."

Okay, the big question then: When are SSDs gonna get seriously affordable? A 160GB version of one of the one of the most acclaimed SSDs, Intel's X25, retails for $470. OCZ's Colossus is a verifiable brick of solid-state storage, and the 1TB model has an MSRP of $2200, though it's going for much more. By contrast, a 1TB WD hard drive is like from a hundred bucks on a bad day. Myersdorf says it's hard to say when the dollar to byte is going to go down absolutely, mostly because of supply and demand, but he did predict that a lot of "mainstream" laptops are gonna have 256GB SSDs in the next 18 months. Oh good, I'll be due for a new laptop right around then.

Video of the Week – The True Power of an Apple Newton



This is actually really good. When you watch this, keep in mind that this was announced May 1992, and came out August 1993.
Also keep amount its specs:

CPU: ARM 610 (RISC) @ 20 MHz
RAM: 640K internal, 4MB PCMCIA
Display: 336 x 240 reflective LCD
Interface: touch-screen w/ stylus
Ports: RS422 serial, Infrared
Expansion: one PCMCIA (Type II) slot
OS: Newton OS v1.05

When this came out it was really ahead, and some analysts may say TOO ahead, which makes sense why this product did not do so well (and maybe the $699 price tag). The market was not ready for an all in one PDA/Note Taking Device.

Another thing to realize is that the hardware really wasn't the most advanced during its time. As unsuccessful as this product was, it does show what Apple is all about and that is implementing the right software.

It proves that the Apple Tablet will have revolutionary software if it is going to be start or re-revolutionize the market. Just like the iPhone, iPod, and the Machintosh.

OnLive Beta gets a preview, lukewarm approval


We've now pretty much reached saturation point with OnLive demos, so it's good to finally see an independent set of eyes poring over the service and giving us the lowdown on the actual user experience. Whether you call it on demand, streamed, or cloud gaming, the concept is remarkably simple -- OnLive pumps games via a web browser onto your machine and gives you the full gaming experience without the need for all that pretty, but expensive hardware. PC Perspective's Ryan Shrout "found" a login to the Beta program and has put together a very thorough comparison between OnLive and playing the games locally on the same computer. His conclusion is that latency issues at present make an FPS like Unreal Tournament unplayable, but slower input games like Burnout Paradise or Mass Effect give pleasingly close renditions of the real thing. We encourage you to hit the source link to see side-by-side video comparisons and more in-depth analysis.

Palm Pre Plus shows off multitasking upgrade with 50 simultaneous apps (video)


Yea, you read that right -- fifty apps loaded side by side by freaking side on the Pre Plus, and the thing just kept on ticking. The chaps over at Pre Central decided to test out specifically how much of an improvement the doubling of RAM and storage in the new handset delivered, and they were not disappointed. Opening up the same apps on both phones, they found the original Sprint Pre (sporting a mere 256MB of RAM) ran out of puff at the 13 app mark, whereas the Pre Plus soldiered on until a nice round fifty was reached. Go past the break to see the video evidence for yourself -- long live multitasking!


Apple rumor roundup: pipe dreams, Lala's role and Verizon's iPhone 4G

In case you haven't noticed, things are getting out of hand in the world of Apple rumors. Frankly, it's all we can do to read another one and trudge onward, but hey -- we've no problem with folks putting their reputations on the line here. Let's dig in to the latest pair, shall we?

The rumor: Apple's acquisition of Lala will actually lead to customers having access to an "online locker" for multimedia. This could be a cloud storage location for one's iTunes library, enabling them to have access to their jams and vids even when away from their at-home storage. The trick is that the cloud would only hold the metadata, and streaming would originate from somewhere else on Apple's end.
Our take: Okay, so we want to believe. Just imagine if your next Apple tablet or iPhone knew exactly what songs you owned in iTunes, and at a moment's notice, you could tap into the iTunes store and stream full, unedited versions of those songs from anywhere. Amazing, no? Problem is, the bulk of iTunes libraries aren't made up of content that was purchased in iTunes (or purchased at all). It seems that the best Apple could do would be to negotiate streaming deals for content you've actually purchased within iTunes, which results in a half-baked user experience. Last we checked, Stevie J wasn't much on half-baked user experiences.

The rumor: Astoundingly, the mythical Apple tablet won't be the company's "one more thing" next week; instead, it'll be a refreshed iPhone... that works on Verizon Wireless. Oh, and iPhone OS 4.0. So says Canaccord Adams analyst Peter Misek, anyway.
Our take: Ha! Apple has never been one to showcase too much at one time, and we're guessing that the outfit would be smart enough to withhold a new iPhone introduction for a separate press event. We don't doubt that a Verizon iPhone is in the works (though an LTE version will be at least a year or two out), but there's no way Jobs steals the tablet's thunder by giving every rabid iPhone user hot sweats when considering the switch to Big Red. Bottom line? Don't bank on it.

At this point, we reckon everyone would be best served by taking a huge step back, a deep breath and one of those so-called "chill pills." Next Wednesday ain't so far away, now is it?