Slashdot Mirror


Can SSDs Be Used For Software Development?

hackingbear writes "I'm considering buying a current-generation SSD to replace my external hard disk drive for use in my day-to-day software development, especially to boost the IDE's performance. Size is not a great concern: 120GB is enough for me. Price is not much of a concern either, as my boss will pay. I do have concerns on the limitations of write cycles as well as write speeds. As I understand, the current SSDs overcome it by heuristically placing the writes randomly. That would be good enough for regular users, but in software development, one may have to update 10-30% of the source files from Subversion and recompile the whole project, several times a day. I wonder how SSDs will do in this usage pattern. What's your experience developing on SSDs?"

89 of 480 comments (clear)

  1. I'm not seating it by timeOday · · Score: 5, Insightful

    I'm using the Intel SSD and I think it's great - fast and silent. Will it last? I'd argue you never know about any particular model of hard drive or SSD until a few years after it is released. On the other hand, I'd also argue it doesn't matter much. Say one drive has a 3% failure rate in the 3rd year and another has a 6% rate. That's a huge difference percentage-wise (100% increase). And yet it's only a 3% extra risk - and, most importantly, you need a backup either way.

    1. Re:I'm not seating it by Zebra_X · · Score: 5, Interesting

      The real key here is this: when an SSD drive can no longer execute a write - the disk you will let you know. Reads do not cause appreciable wear so you will end up with a read only disk when the drive has reached the end of it's life. This is vastly superior to the drive just dying becuase it's had enough of this cruel world.

      I'd be interested to see some statistics on electrical failure of these drives though... but it seems that isn't as much of an issue.

    2. Re:I'm not seating it by berend+botje · · Score: 2, Funny

      You haven't actually done much work with these drives have you? I can tell because of the pixels and the amount of nonsense you display....

      Point is, for significant use, SSD's crap out in less than a year.

      And yes, I have statistics and anecdotal evidence both on my side.

    3. Re:I'm not seating it by Zebra_X · · Score: 3, Insightful

      "Anyway, the make believe part is your thinking that by failing a write then your data is still readable which in fact majority of cases its dead Jim"

      Are you sure about this - based on your previous flow:
      "4) Chip reports back to controller erase success or fail"
      is when the OS is notified by the drive that the write failed. Presumably, the drive or the OS might try another part of the bank, sector or what have you. At no point are you earsing non-free sectors.

      It is fundamentally the write operation that causes the bits to fail, not the read. So the rest of the contents of the disk are fine - make an image and transfer to a new drive. Easy.

    4. Re:I'm not seating it by larry+bagina · · Score: 3, Funny
      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    5. Re:I'm not seating it by Haeleth · · Score: 4, Insightful

      "Anecdotal evidence" is an oxymoron.

      Point is, I could just as easily claim that SSDs last ten years, and since neither of us has provided a shred of evidence to support our assertions, neither of us has any credibility whatsoever.

    6. Re:I'm not seating it by fm6 · · Score: 3, Funny

      "Anecdotal evidence" is an oxymoron.

      Do you have any evidence?

    7. Re:I'm not seating it by Anonymous Coward · · Score: 3, Interesting

      Warning: I'm an Intel employee

      But I've been using the 80GB Intel MLC drive since mid-year 2008 and it's great. Very fast and silent -- I refuse to go back to a mechanical drive again. It's perfect for a client workload (99.9% of users) but not perfect for a transaction heavy server (use the SLC drive).

      My workload is writing code and generating/parsing very large data sets from fab (1 - 4 GB).

      Here is the "insider" information from my drive:

      6.3TB written total (roughly 9 months of usage)
      58 cycles (average) on each block of Nand

      Given that the component Nand is qualified out to 10K, that's clearly long enough for at least 5 years of usage.

    8. Re:I'm not seating it by tytso · · Score: 4, Interesting

      So interested people want to know --- how do you get the "insider" information from an X25-M (ie., total amount of writes written, and number of cycles for each block of NAND)?

      I've added this capability to ext4, and on my brand-spanking new X25-M (paid for out of my own pocket because Intel was to cheap to give one to the ext4 developer :-), I have:

      <tytso@closure> {/usr/projects/e2fsprogs/e2fsprogs} [maint]
      568% cat /sys/fs/ext4/dm-0/lifetime_write_kbytes
      51960208

      Or just about 50GB written to the disk (I also have a /boot partition which has about half a GB of writes to it).

      But it would be nice to be able to get the real information straight from the horse's mouth.

  2. Swap? by qoncept · · Score: 3, Interesting

    Do you have a swap file/partition? You're talking hundreds of writes a day, tops. That sounds like a big number, but in reality it just ain't. I would question why you feel the need for an SSD, though. I know the difference between $300 and $50 isn't that big in the grand scheme of things, what benefit are you expecting?

    --
    Whale
    1. Re:Swap? by timeOday · · Score: 5, Informative

      The main difference is a good SSD is much, much faster than any hard drive. If discussions about the topic don't give that impression, it's only because people fixate on sustained transfer - where there is still some competition between slower SSDs and hard drives - rather than seek time, which is often more important, and where SSDs blow the doors off hard drives. To me, suddenly widening the biggest bottleneck in PC performance for the first time in a couple decades is pretty exciting.

    2. Re:Swap? by Mad+Merlin · · Score: 3, Informative

      Yeah, except only the SLC SSDs are worth having. MLC SSDs are junk and extremely common, you're better off with a spinning platter drive. However, I can't recommend SLC SSDs enough, they're substantially faster than conventional spinning platter drives in all ways.

    3. Re:Swap? by Anonymous Coward · · Score: 2, Interesting

      Would you care to explain your opinion that MLC SSDs are junk? I know some people have gotten a bad impression of MLC SSDs because Windows' default configuration doesn't play nicely with them. However if you tune Windows, MLCs work great. If you use OS X, just about everything is, by accident, property tuned and they work great. My guess, with Linux they will just work great.

      Three days in with my new SSD and OS X, and I love it. The almost total elimination of disk latency has made it a whole new experience. I can't even measure launch times in icon bounces any more; on average the windows appear before the icon has even finished its first jump off the dock.

    4. Re:Swap? by afidel · · Score: 4, Insightful

      The best bet if your project is smaller than about 20GB is to buy a box full of ram and use a FAT32 formatted ramdrive. Orders of magnitude faster than even an SSD.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    5. Re:Swap? by afidel · · Score: 4, Informative

      NTFS has a fairly high overhead for a compile, lots of small temp files that all have to be created and deleted having their ACL's added to the MFT and then removed. I've seen compile time drop to 1/4th the time by switching from NTFS to FAT32 on the same hardware.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    6. Re:Swap? by wtbname · · Score: 2, Informative

      I Have the 80 gig MLC SSD from intel, and it's not junk. It's freaking fast.

    7. Re:Swap? by Haeleth · · Score: 4, Funny

      Holy crap! If you think a developer needs 16G of RAM, you're NUTS!

      Or using Java/Haskell/Ruby and/or Eclipse/VS.NET/Emacs (delete according to prejudice).

    8. Re:Swap? by afidel · · Score: 2, Informative

      If you are relying on case sensitivity to differentiate files that's a big old bag of fail. NTFS is case preserving but will not allow the same filename with different cases, there are plenty of protocols and code that are either case preserving or case blind so you should never really rely on it for much of anything but your own neumonic of sorts.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    9. Re:Swap? by Anonymous Coward · · Score: 2, Insightful

      Where do you work? I had to piss and moan to get 2GB of RAM! I would kill for 16GB.

      I think the better question is where do YOU work that 2GB was such an ordeal. 4GB of desktop ram is $50 at newegg. If you work in the US... it's a shitty tech environment. That said, I bought a 24" LCD 3 years ago for myself and brought it into work when I wanted one that match my home display :)

    10. Re:Swap? by jaavaaguru · · Score: 2, Insightful

      Virtual machines.

      I have 3 running right now because I have two VPN connections to different networks using the Cisco VPN client, and another VM for testing client software on. Even then, I'm using just over half of the 4GB RAM the computer has.

    11. Re:Swap? by nabsltd · · Score: 2, Interesting

      I have 3 running right now because I have two VPN connections to different networks using the Cisco VPN client

      The security rules of some VPN connections (that force everything through the VPN and effectively cut you off from the local network) meant that you had to have a lot of boxes just to make up your "workstation".

      Now, with VMs, you can have the VPN connection, get to the local network, and be able to transfer data from the local network to the other end of the VPN. This has basically restored my sanity (and made the flash drives I had purchased for sneakernet much less useful).

  3. should be fine by MagicMerlin · · Score: 3, Informative

    Unless you type like The Flash, even MLC SSDs from the better vendors (Intel) should be fine for anything outside of server applications. Simple math should back this up (how many GB total the drive can write over its lifetime vs how much you produce each day). merlin

    1. Re:should be fine by Tetsujin · · Score: 4, Funny

      Unless you type like The Flash, even MLC SSDs from the better vendors (Intel) should be fine for anything outside of server applications. Simple math should back this up (how many GB total the drive can write over its lifetime vs how much you produce each day).

      I don't know who this "The Flash" is... But this reminds me of some odd invoices I've seen here lately at Star Labs. Someone special-ordered a custom keyboard rated to one hundred times the usual keystroke impact, an 80MHz keyboard controller, and a built-in 1MiB keystroke buffer. Pretty ridiculous, huh? The usual 10ms polling rate for a USB keyboard should be enough for anybody - no need for all that fancy junk.

      --
      Bow-ties are cool.
    2. Re:should be fine by clone53421 · · Score: 2, Insightful

      how many GB total the drive can write over its lifetime vs how much you produce each day

      It's not as simple as that. Make a small change (insertion or deletion) near the beginning of a large source code file, and the entire file – from the edit onward – must be written over. Then, any source code file that has been modified must be read and built, overwriting the previous binary files for those source codes. Finally, all the binary files must be re-linked into the executable.

      So you're not just writing ___ bytes of code. You're writing ___ bytes of code, re-writing ___ bytes of code because it followed code that was added or modified, and overwriting ___ of the object, library, debug, executable, etc. etc. files that are created when the project is built. In a large project that's probably in the order of megabytes. That is what TFS meant by:

      in software development, one may have to update 10-30% of the source files from Subversion and recompile the whole project, several times a day. I wonder how SSDs will do in this usage pattern.

      --
      Alexander Peter Kristopeit bought his basement from his mommy for one dollar.
    3. Re:should be fine by __aasqbs9791 · · Score: 3, Funny

      Find who ordered that keyboard and I think you'll find out who the Flash is.

    4. Re:should be fine by Tetsujin · · Score: 2, Funny

      I don't know who this "The Flash" is...

      http://lmgtfy.com/?q=%22The+Flash%22

      "But this reminds me of some odd invoices I've seen here lately at Star Labs."

      --
      Bow-ties are cool.
    5. Re:should be fine by CAIMLAS · · Score: 2, Informative

      So? Find out how much is actually being written. It's trivial (at least in Windows). If this is a linux machine, you can either use iostat or look at the actual files within /sys which denote this information and do some basic arithmetic.

      So, say you rewrite (say) 2Gb of data a day. Set the disk cache to be high. The SSD should last a year or two, minimum, at this rate of writing because it balances the writes across the disk.

      Another approach which could be taken is not use the SSD for daily compiling use. Use a RAM disk. RAM is cheap. Load the project you're working on into a ramdisk, and you don't have to worry about it. At the end of the day, move the project back to storage.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
  4. Re:Umm... by Rockoon · · Score: 4, Funny

    Math is hard! Lets buy both!

    --
    "His name was James Damore."
  5. Get an enterprise drive (SLC, not MLC) by vlad_petric · · Score: 4, Insightful

    If they're good enough for Databases (frequent writes), they should be just fine for devel.

    OTOH, You should be a lot more concerned about losing data because of a) software bugs or b) mechanical failures in a conventional drive

    --

    The Raven

  6. Backups by RonnyJ · · Score: 4, Informative

    If you're worried about losing work, I think your backup solution is what you need to improve instead.

  7. How do raids perform? by wjh31 · · Score: 2, Interesting

    could a raid structure give the performance boost i assume you are after? ive no experiance with them but i gather they can offer higher read/write rates. Can someone with more experiance say exactly how much of a performace boost they give, a set of small HDD's could be the same price without the concerns over cycle limits

  8. IDE? by Hatta · · Score: 4, Funny

    You should get an SATA SSD instead.

    --
    Give me Classic Slashdot or give me death!
  9. SSDs = productivity by Civil_Disobedient · · Score: 5, Interesting

    I use SSDs for my (both) development systems--the first was for the work system, and after seeing the improvements I decided I would never use spinning-platter technology again.

    The biggest performance gains are in my IDE (IntelliJ). My "normal" sized projects tend to link to hundreds of megs of JAR files, and the IDE is constantly performing inspections to validate the code is correct. No matter how fast the processor, you quickly become IO-bound as the computer struggles to parse through tens of thousands of classes. After upgrading to SSD, I no longer find the IDE struggling to keep up.

    I ended up going with SSD after reading this suggestion for increasing IDE performance. The general jist: the only way to improve the speed of your programming environment is to get rid of your file access latency.

  10. Is it worth the money for you? by Zakabog · · Score: 3, Informative

    The company I'm working at thought about using SSDs, but we were thinking more on the server end (to allow faster database access.) You don't have to worry about the write limits as it's highly unlikely you will hit them within the lifetime of a standard hard drive.

    The main issue we ran into was cost, the drives we were looking at started around $3,000 for something like 80 gigs. That just wasn't worth it for us, though if you personally feel that the added cost (and I doubt you're looking at a $3,000 SSD, more likely you're looking at the $300 drives) is worth the performance gains then go for it. Though I think even for $300 it won't make a worthwhile difference.

    There are other bottlenecks to consider, is your CPU fast enough, do you have enough RAM, could the hard drive your software and OS is on use an upgrade, etc. Perhaps even buy an internal SATA drive (if you can) to replace the external you're using, those external enclosures generally aren't known for their performance. If you've exhausted all of those options and you still need more speed, then I'd say go for the SSD.

  11. Re:Umm... by Tetsujin · · Score: 4, Insightful

    If you're not good enough at arithmetic to understand that this isn't an issue, should you really be developing software?

    Maybe you can explain why it isn't an issue, then?

    One thing about flash in general is that in order to rewrite a small amount of data, you need to (at the low level) erase and rewrite a relatively large amount of data. So depending on how extensively the filesystem is cached, where the files are located, etc., rebuilding a medium-sized project could wind up re-writing a large portion of the SSD...

    --
    Bow-ties are cool.
  12. Re:Umm... by JamesP · · Score: 3, Funny

    I'd say: "Programming is hard let's do Java"

    --
    how long until /. fixes commenting on Chrome?
  13. Developers should use *slow* machines by petes_PoV · · Score: 4, Insightful
    That way it'll encourage them to write efficient implementations.

    If you give your programmers an 8-way 4GHz m/b with 64GB of memory (if sucha thing exists yet), they'll use all the processing power in dumb, inefficient algorithms, just because the development time is reduced. While those of us in the real world have to get by on "normal" machines.

    When we complain about poor performance, they just shrug and say "well it works fine on my nuclear-powered, warp-10, so-fast-it-can-travel-back-in-time" machine"

    However, if they were made to develop the software on boxes that met the minimum recommended spec. for their operating system, they'd have to give some thought to making the code run efficiently. If it extended the development time and reduced the frequency of updates, well that wouldn't be a bad thing either.

    --
    politicians are like babies' nappies: they should both be changed regularly and for the same reasons
    1. Re:Developers should use *slow* machines by Anonymous Coward · · Score: 4, Insightful

      compile time has nothing to do with inefficient algorithms slowing down programs.

    2. Re:Developers should use *slow* machines by vadim_t · · Score: 5, Insightful

      Disagree. This problem went away for the most part.

      First, performance isn't nearly the problem it used to be. We aren't using anymore the kind of hardware that needs the programmer to squeeze every last drop of performance out of it. In fact, we can afford to be massively wasteful by using languages like Perl and Python, and still get things done, because for most things, the CPU is more than fast enough.

      Second, we're not coding as much in C anymore. In C I could see this argument, lazy programmer writing bubble sort or something dumb like that because for him waiting half a second on his hardware isn't such a problem. But most of this has been abstracted these days. Libraries, and high level languages contain highly optimized algorithms for sorting, searching and hashes. It's a rare need to have to code your own implementation of a basic data structure.

      Third, the CPU is rarely the problem anymore, I/O is. Programs spend most of their time waiting for user input, the database, the network, or in rare cases, the hard disk. A lot of code written today is shinier versions of things written 20 years ago, and which would run perfectly fine on a 486. Also for web software the performance of the client is mostly meaningless, since heavy lifting is server-side.

      Also, programming has a much higher resource requirement than running the result. People code on 8GB boxes because they want to: run the IDE, the application, the build process with make -j4, and multiple VMs for testing. On Windows you're going to want to test your app on XP and Vista, on Linux you may need to try multiple distributions. VMs are also extremely desirable for testing installers, as it's easy to forget to include necessary files.

      I'd say that giving your developer a 32 core box would actually be an extremely good idea, because the multicore CPUs have massively caught on, but applications capable of taking advantage of them are few. Since coding threaded code is not lazy but actually takes effort, giving the programmers reasons to write it sounds like a very good idea to me.

    3. Re:Developers should use *slow* machines by glwtta · · Score: 4, Insightful

      That way it'll encourage them to write efficient implementations.

      That's just stupid - I'm going to write better code because my compiles take longer?

      There seem to be a lot of these posts on Slashdot with down-home folk wisdom on how to educate the smug and indifferent programmer, who is so clearly divorced from reality that he doesn't even know what computers his customers use. I get the sneaking suspicion that the authors know very little about actual programming.

      There are two reasons for bad software:

      a) incompetent programmers
      b) bad project management

      The latter includes things like unrealistic timelines and ill defined scope and requirements. I'm not sure which one is the bigger culprit, but both are pervasive.

      In neither case, though, are you going to fix the problem with gimmicky bullshit like inadequate equipment.

      --
      sic transit gloria mundi
    4. Re:Developers should use *slow* machines by ultrabot · · Score: 4, Informative

      That way it'll encourage them to write efficient implementations.

      Actually, the opposite is true.

      If development is painful (which it is, if your workflow is hampered by slow builds), you will produce crappier code. It's all about retaining focus & flow. Sad thing is, compilation still takes too long; you can still check your gmail or refresh slashdot.

      How many of you are reading this article while automake is checking the version of your fortran compiler in order to run gcc on a .c file?

      --
      Save your wrists today - switch to Dvorak
    5. Re:Developers should use *slow* machines by pebs · · Score: 2, Insightful

      That way it'll encourage them to write efficient implementations.

      If you give your programmers an 8-way 4GHz m/b with 64GB of memory (if sucha thing exists yet), they'll use all the processing power in dumb, inefficient algorithms, just because the development time is reduced. While those of us in the real world have to get by on "normal" machines.

      I hear this all the time, and its completely silly because it only applies to a subset of software being developed. For example, most of the software I develop at my current job is deployed to hardware that actually has much higher specs than the hardware I am developing on, because I write mostly server-side software that is deployed to servers with generous resources. I work on the client-side as well (though a much smaller percentage), but the performance bottlenecks are not there anyway, they are when hitting the database. Of course, my development environment is unrealistic for a different reason -- it doesn't simulate the load that occurs in production. I don't think using a machine with pitiful specs for development is going to accurately simulate what happens when more than one user uses a system.

      In any case, us developers need fast machines because we actually have to build/rebuild the software constantly. And sometimes our tools are resource hungry, like servers that we have to restart frequently, or heavy-weight IDE's that are fucking slow even on the badass hardware we have (yes, there are different choices that can be made here, but not everyone gets to make those choices). The end users don't have this problem; the software is already built for them, the servers started up, and the caches warmed.

      --
      #!/
    6. Re:Developers should use *slow* machines by psnyder · · Score: 5, Insightful

      A similar argument was used in World War II to keep bolt action sniper rifles in use in some countries instead of 'upgrading' to 'auto-loading' rifles. With bolt action, after shooting, you had to physically lift the bolt, cock it in place, and push it down again before you could fire another shot.

      The argument was, if the snipers knew they couldn't fire again immediately, they would be more careful lining up and aiming that first shot. With an 'auto-loading' rifle, you could keep your eye in the scope and fire off more rounds.

      It seems quite obvious, that if you're in the field, the seconds after that first shot are very important. If you need to take your eye away from the scope, and spend the time reloading the chamber, the outcome could be completely different than if you were able to fire off a few rounds immediately.

      A good sniper would have aimed that first shot up carefully no matter what rifle they were using, in the same way a good programmer will make efficient, elegant algorithms no matter what machine they're using. You'd only have to 'limit' your programmers if you think they're bad programmers. If a supervisor is thinking along these lines, they've already hired bad programmers and are setting both themselves and their team up for failure. The faster the machines, the less time wasted. You don't need forced limits reminding them about efficiency, because any decent programmer will already be thinking about it.

    7. Re:Developers should use *slow* machines by rossz · · Score: 2, Interesting

      I worked in the game industry in the past and I felt this was one of their problems. The developers all had the latest greatest processors and the cutting edge overpriced video cards. The games ran just fine, of course. On a typical system, however, the game performance would suck big time. I refuse to replace my computer every year just to play the latest game.

      You can continue to give the developers cutting edge hardware, but make sure your QA people are running "typical" systems.

      My experience was from years ago when a 386 system was standard. I don't know what it's like today.

      --
      -- Will program for bandwidth
    8. Re:Developers should use *slow* machines by merreborn · · Score: 4, Insightful

      Developers should use *slow* machines
      That way it'll encourage them to write efficient implementations.
      If you give your programmers an 8-way 4GHz m/b with 64GB of memory (if sucha thing exists yet), they'll use all the processing power in dumb, inefficient algorithms, just because the development time is reduced. While those of us in the real world have to get by on "normal" machines.

      No, developers should develop on fast machines... and test on slow machines.

      It's a waste of money to pay your programmers $50/hr to sit and wait for compiles to complete, IDEs to load, etc. That hurts the employer, and the additional cost gets passed on to the customer. It's in everyone's best interest that developers are maximally productive.

      Give them fast development environments, and realistic test environments.

    9. Re:Developers should use *slow* machines by virtue3 · · Score: 2, Interesting

      I read all my slashdot during "build time". The worst part is, my work machine is so crappy, I'm in C# and I still have time to at least read the summary before it finishes JITing.

    10. Re:Developers should use *slow* machines by wrook · · Score: 2, Interesting

      A friend of mine was a sniper. He told me that he only ever carried 3 bullets. The first was for the target. The second was in case he missed with the first shot. The third was for himself: if he had to use the second bullet he didn't have enough time to get away.

    11. Re:Developers should use *slow* machines by bheading · · Score: 3, Insightful

      The reality in any organization is that there are good programmers and not-so-good programmers. And from time to time, even the good ones make mistakes. Different programmers have different strengths and weaknesses. That is why programming languages have things like type checking, and why software developers employ principles like encapsulation and data hiding. Your argument is that these practices are "restricting" clever programmers by making the software inflexible.

      Taking your argument to its logical conclusion, you might say it isn't necessary to add debugging information or logging to programs if you higher decent programmers who never make mistakes.

  14. Re:Lifetime is not an issue :p by Tetsujin · · Score: 4, Funny

    Current SSDs have a lifetime of somewhere around 10.000 years. I think that's enough.

    10000 years or 100000 writes, whichever comes first. :D

    --
    Bow-ties are cool.
  15. I've been doing just this by SanityInAnarchy · · Score: 4, Interesting

    Just got one in a Dell laptop, came with Ubuntu. A subjective overview:

    I have no idea how well it performs with swap. I'm not even really sure why I have swap -- I don't have quite enough to suspend properly, but I also never seem to run out of my 4 gigs of RAM.

    It's true, the write speed is slower. However, I also frequently transfer files over gigabit, and the bottleneck is not my SSD, it's this cheap Netgear switch, or possibly SSH -- I get about 30 megabytes per second either way.

    So, is there gigabit between you and the SVN server? If so, you might run into speed issues. Maybe. Probably not.

    Also worth mentioning: Pick a good filesystem if a lot of small files equals a lot of writes for you. A good example of this would be ReiserFS' tail packing -- make whatever "killer FS" jokes you like, it really isn't a bad filesystem. But any decent filesystem should at least be trying to pack writes together, and I only expect the situation to improve as filesystems are tuned with SSDs in mind.

    It also boots noticeably faster than my last machine. This one is 2.5 ghz with 4 gigs of RAM; last one was 2.4 ghz with 2 gigs, so not much of a difference there. It becomes more obvious with actual use, like launching Firefox -- it's honestly hard to tell whether or not I've launched it before (and thus, it's already cached in my massive RAM) -- it's just as fast from a cold boot. The same is true of most things -- for another test, I just launched OpenOffice.org for the first time this boot, and it took about three seconds.

    It's possible I've been out of the loop, and OO.o really has improved that much since I last used it, but that does look impressive to me.

    Probably the biggest advantage is durability -- no moving parts to be jostled -- and silence. To see that in action, just pick out a passively-cooled netbook -- the thing makes absolutely no discernible noise once it's on, other than out of the speakers.

    All around, I don't see much of a disadvantage. However, it may not be as much of an advantage as you expect. Quite a lot of things will now be CPU-bound, and there are even the annoying bits which seem to be wallclock-bound.

    --
    Don't thank God, thank a doctor!
  16. If you really want blistering performance... by Mysticalfruit · · Score: 2, Insightful

    If price isn't an option, then he should get himself 4 ANS-9010's and set them up as a hardware RAID0 hanging off the back of good fast raid controller.

    If he filled each of them with 4GB DIMMs he'd have 128GB of storage space.

    Volatile? Hell yeah... But also just crazy fast...

    --
    Yes Francis, the world has gone crazy.
  17. Re:Umm... by blueg3 · · Score: 4, Insightful

    Neither he nor you have attempted to answer the question quantitatively. Look at how big a block is, a bit about their write-leveling strategy, how large your source files are, the quantity of data you overwrite and how frequently, and what the lifetime of SSD blocks is, and figure out how long the SSD should last. Even an order-of-magnitude calculation would be better than nothing.

    You both are approaching the problem qualitatively: SSDs have limited rewrite lifetimes, and I'm doing a lot of rewriting -- isn't that bad? You don't know! Figure it out!

  18. Simple arithmetics by MathFox · · Score: 4, Insightful
    A typical flash cell easily lasts 10.000 writes. Let's assume that every compile (or svn update) only touches 10% of your SSD space, that gives you 100.000 "cou" (compiles or updates). If you do 20 cou per day, the SDD will last 5000 working days, or 20 year.

    Now find a hard disk that'll last that long.

    --
    extern warranty;
    main()
    {
    (void)warranty;
    }
  19. RAM disk ? by smoker2 · · Score: 2, Interesting

    Can't you just load up on RAM and create a RAM drive for working stuff and keep the slow HDD for shutdown time ? Cheaper than SSD and no write cycle issues. You can also get RAM based IDE and SATA drives.

  20. Re:oh no! several times per day! by MichaelSmith · · Score: 2, Funny

    I used to worry about rewrites on my eeepc. But I have installed ubuntu twice in the last month and the disk seems to be exactly the same as it was initially so I don't worry any more.

  21. Adaptec confirms it... by guruevi · · Score: 3, Informative

    Although they use an SSD for another purpose, they said currently SSD's last about 6 months under heavy read/write conditions (cache on a RAID controller) even with leveling techniques. Hard drives last a whole lot longer for those purposes I would say.

    I think SSD in a desktop-type system would be all right however I would suggest you invest in some fast disks instead of SSD until SSD matures and more lifetime data is available. Remember MTBF doesn't always mean that a piece of hardware will last that long. Most likely it will die long before that.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  22. Re:Umm... by Anonymous Coward · · Score: 2, Funny

    Java is hard, let's use Python.

  23. How about ramdisks? by ultrabot · · Score: 2, Interesting

    Sometimes I wonder whether it would make sense to optimize the disk usage for flash drives by writing transient files to ramdisk instead of hard disk. E.g. in compilation, intermediate files could well reside on ramdisk. If you rely on "make clean" a lot (e.g. when you are rebuilding "clean" .debs all the time), you won't have that much attachment to your object files.

    Of course this may require more work than what it's really worth, but it's a thought.

    --
    Save your wrists today - switch to Dvorak
  24. Intel or bust by Chris+Snook · · Score: 2, Informative

    Developing on a conventional SSD with large user-visible erase blocks is PAINFUL. The small writes caused by creating temporary files in the build process absolutely destroy performance. There are ludicrously expensive enterprise products which work around this in software, but at the laptop/desktop scale, you want something that's self-contained. As far as I'm aware, Intel's X25 drives are the only ones actually on the market now that hide the erase blocks effectively at the firmware level. The MLC ones should be fine.

    --
    There's no failure quite as dissatisfying as a complete and total solution to the wrong problem.
  25. Re:Umm... by gandhi_2 · · Score: 2, Insightful

    You are confusing programming and computer science.

  26. Re:Umm... by Joce640k · · Score: 5, Interesting

    Before we start, let me make a prediction: You never asked about the MTBF of your hard disk, right...?

    http://www.intel.com/design/flash/NAND/mainstream/

    a) When Intel says "new level of ... reliability", maybe it means they thought about this problem when they designed the drive.

    b) When they say "NAND flash", maybe it means they're not using the cheapest MLC memory as mentioned in that scary wikipedia article.

    c) When their datasheet says "Minimum useful life of five years, assuming 20Gb/day of writing", maybe they got those numbers from real engineers, with degrees.

    d) When their datasheet also says, "Should the host system attempt to exceed 20 GB writes per day by a large margin for an extended period, the drive will enable the endurance management feature to adjust write performance, this feature enables the device to have, at a minimum, a five year useful life", maybe they were really really paranoid about saying 'five years' because they know people will start class-action lawsuits if it doesn't work out.

    So, um, how this even got greenlighted in 2009 is beyond me. It's like 1999 called wanting its flash-myths thread back.

    --
    No sig today...
  27. Re:Umm... by Anonymous Coward · · Score: 5, Funny

    The English language has syntax, too. It concerns things like proper placement and use of apostrophes.

  28. Re:Umm... by vux984 · · Score: 5, Informative

    Cheaper drives (which mgmt is sure to require) have 1,000 write cycles (assuming the worst). For certain high-traffic files, that means (assuming 30 writes in a day) a whole 33 days of use.

    If that were true. Then an SSD hard drive couldn't run a linux mail server for a small business for more than a couple minutes thanks to the various log files.

    1) The maximum write cycles for a block was around 10,000 in 1994. And about 100,000 in 1997. But in 2009 you think 1000? No. Its currently in the millions, even for the cheap SSDs.

    2) Look up wear levelling.

    3) Look up the MTBF on an SSD vs a spinning platters type.

    I've seen studies that have calculated that modern drives will could write continuously at maximum speed for 50+ years before exhausting wear levelling and hitting write cycle limits.

    The odds of it failing from something else long before then are much greater. Getting a mere 5+ years of life and easily beating your average spinning disk hard drive is a no brainer.

  29. I don't know enough about SSDs by Daimanta · · Score: 2, Interesting

    yet, but I am eager to learn. What happens if you exceed the limit of writes? How does usage degrade the disks? Is heat bad? Does using the SSD as virtual memory degrade the disk fast?

    What about bad sectors, how do they compare with HDDs? Are SSDs generally more sturdy(longer lifespans) than HDDs?

    Inquiring minds want to know.

    --
    Knowledge is power. Knowledge shared is power lost.
  30. Re:Umm... by dgatwood · · Score: 2, Insightful

    Perl is hard. Let's use brainf*ck.

    --

    Check out my sci-fi/humor trilogy at PatriotsBooks.

  31. Wear leveling question by Stephen+Ma · · Score: 2, Interesting
    As I understand it, flash drives use wear leveling to spread the writing burden over many sectors of the disk. So each time I overwrite the same sector, say logical sector 100, the data goes to a different spot on the drive. That makes sense.

    However, suppose I fill up the drive with data, then free half of it. My question is: how does the drive know that half its sectors are free again for use in wear leveling? As far as the drive knows, all of its sectors still hold data from when the drive was full, and no sectors are available for levelling purposes.

    Is there some protocol for telling the drive that "sectors x, y, z are now free"? Or does the drive itself understand the disk layout of the zillions of different filesystems out there?

  32. Re:Umm... by bluesk1d · · Score: 5, Insightful

    This is why it's almost pointless to ask a question on Slashdot. You get 100s of replies in a 50/50 distribution of random tech-word ramblings and flat out useless contempt, leaving you feeling stupid and your question unanswered.

  33. Re:Umm... by berend+botje · · Score: 2, Insightful

    Please also factor in the amount of static files on the drive. This has been, historically, forgotten. You do not have the whole drive to do 'swap-the-crappy-block' on.

  34. I wouldn't touch SSD's right now by billcopc · · Score: 2, Interesting

    Everyone's going SSD-crazy, but I'm not yet convinced. They're not _that_ much faster than spinning platters of death, at least not yet, and I'd much rather throw a ton of Ram at the disk cache for the same amount of money.

    If you're really worried about performance, invest in a true Ramdisk - the kind that has DDR memory slots on one side and a SATA connector on the other. You can write a 2-line script to mount and format it on boot, and even backup its contents upon shutdown (if needed). That's the ultimate /tmp drive, and it will not wear out no matter how hard you pound it.

    --
    -Billco, Fnarg.com
    1. Re:I wouldn't touch SSD's right now by Yvan256 · · Score: 2, Funny

      it will not wear out no matter how hard you pound it.

      That's what SHE said.

  35. Re:Umm... by dgatwood · · Score: 5, Informative

    The whole "millions" thing may be true for SLC parts. MLC parts (which are much cheaper) have much lower write counts. The best MLC flash I'm aware of is only rated for a million write cycles. Thousands or tens of thousands is more typical for MLC flash parts. Write amplification makes this even more fun, since it means that a write of one disk block can require rewriting many, many blocks that otherwise would not have been written. If the wear leveling algorithm is optimal, then it's a moot point. If the wear leveling is nowhere near optimal, you can create artificial workloads that will burn out a few cells on the flash part in hours, which is a bit problematic. There is no clear-cut answer for this sort of question, unfortunately, at least not with the current crop of MLC tech.

    Consider a log-structured filesystem, perhaps....

    --

    Check out my sci-fi/humor trilogy at PatriotsBooks.

  36. WARNING google "intel ssd fragmentation" by BobSixtyFour · · Score: 3, Interesting

    Serious Long-Term Fragmentation Problems...

    Potential buyers BEWARE, and do some research first. Google the term "intel ssd fragmentation" before purchasing this drive to understand this potential long-term issue. Chances are it won't impact most people, but if you plan on using this drive to house lots of smaller files, think again.

    Also
    Absolutely avoid using defragmentation tools on this drive! They will only decrease the life of the drive.

  37. Re:Umm... by Jeffrey+Baker · · Score: 4, Informative

    If you build is really IOPS-bound, then an SSD will utterly smoke a single disk. Even a whopping great expensive disk can only muster 300 iops under the best possible circumstances, and typically 100 iops under real conditions. A cheapo SSD can deliver 1000 mixed iops, and a good SSD can deliver 100,000 mixed iops. Ever since switching to an SSD on my dev machine I no longer have to suffer through things like a :wq in vim taking 5-10 seconds, or loading a file taking several seconds, etc. One of the benchmarks I did was starting Firefox during a build. On the machine with a disk, it actually took more than ONE MINUTE to start Firefox under a build load. With the SSD, there is no measurable difference between the Firefox startup on an idle machine and a machine with a build happening. The difference is massive.

  38. Re:SSD, maybe not right now.. MacBook Air develope by aegis17 · · Score: 2, Funny

    I primarily use SSD's for backups.

    Yeah, I primarily use my Learjet as a backup in case my civic breaks down too.

  39. Re:Software Development? Really? by Greyfox · · Score: 2, Funny
    Oh wah wah you might have to wait an hour or so for your project to compile.

    I had to fucking type my boot sequence in octal to get the system to jump to the correct sector on an 8" floppy. Kids these days. Honestly...

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  40. Re:Umm... by kelnos · · Score: 2, Insightful

    No, he's confusing software development with basic math skills.

    --
    Xfce: Lighter than some, heavier than others. Just right.
  41. Re:Umm... by Anonymous Coward · · Score: 3, Funny

    Visual Basic is hard. Let's use Powerpoint.

  42. Re:An SSD walks into a bar... by Yvan256 · · Score: 2, Funny

    And what does that have to do with Solar System Dynamics?

  43. Re:Umm... by adisakp · · Score: 2, Interesting

    One thing about flash in general is that in order to rewrite a small amount of data, you need to (at the low level) erase and rewrite a relatively large amount of data.

    The technical term for small write requests actually causing large writes is "Write Amplification". This is one reason the Intel SSD drives are so fast. They have a Write Amplification (WA) factor of 1.1 (done by combining small writes) while many other drives have a WA as high as 20. They also use an "intelligent" wear-leveling algorithm that can reduce spurious writing by nearly a factor of 3.

  44. my Intel SSD logging info by Anonymous Coward · · Score: 2, Informative

    Warning: I'm an Intel employee

    But I've been using the 80GB Intel MLC drive since mid-year 2008 and it's great. Very fast and silent -- I refuse to go back to a mechanical drive again. It's perfect for a client workload (99.9% of users) but not perfect for a transaction heavy server (use the SLC drive).

    My workload is writing code and generating/parsing very large data sets from fab (1 - 4 GB).

    Here is the "insider" information from my drive:

    6.3TB written total (roughly 9 months of usage)
    58 cycles (average) on each block of Nand

    Given that the component Nand is qualified out to 10K, that's clearly long enough for at least 5 years of usage

  45. Re:Umm... by makapuf · · Score: 2, Informative

    PPT is hard. Let's yell.

  46. Linux /tmpfs or Vista ReadyBoost by billstewart · · Score: 2, Insightful

    If your main problem is speeding up your development environment's use of temporary disk storage (because Linux is already caching a lot), use /tmpfs, which stores the files in virtual memory, and if the system needs to page them out, it does that - it's really useful for files that are going to get created for short periods but don't need to get kept for long.

    Windows Vista Readyboost is doing something fancy and semi-automatic with caching in USB flash disks - get yourself a USB2 memory stick and turn it on. The stuff is so cheap these days that you might as well buy a large fast ReadyBoost stick, but you'll probably get a lot of payoff even from adding small drives - 8GB is now $20-40, and 32GB is ~$60-120 depending on how extreme you want to get.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  47. Re:Umm... by Velox_SwiftFox · · Score: 3, Informative

    My own experience with a pair of Intel X25-M SLC 32GB drives: after less than a month of moderate use one began reporting unrecoverable read errors at an increasing rate.

    We have RMAed the drive and gotten a replacement, but based on the approximately 1500 hours real-world MTBF we had to that point, instead of the claimed 3 million hours MTBF/1 petabyte write lifetime, and unrecoverable bit read error rate on the order of 1/10^15 which lured us into having to repair the resulting database damage.

  48. Re:Umm... by shutdown+-p+now · · Score: 2, Interesting

    Perl is hard. Let's use brainf*ck.

    That's not Funny, that's Insightful. Brainfuck by itself is indeed very easy - why, just 8 basic operators! The irony is that Java is "simpler" than C++ by the same measure (less language features). In practice, this just shows how pointless the measure is in general.

  49. Yes by lnxpilot · · Score: 2, Interesting

    I've been using a Patriot Warp V2 64GB SSD for a relatively large project (~400k lines of C code).
    The "write stutter" is a bit annoying, especially when I do a full "make clean", but it's not too bad.

  50. Re:Umm... by Hal_Porter · · Score: 2, Funny

    brainf*ck.

    What's with the auto-censordoody? Or are you just a sissy - too shy to use the expletive? And why the heck should I care?

    Fixed that for you.

    --
    echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  51. Re:Umm... by AllynM · · Score: 2, Interesting

    d) When their datasheet also says, "Should the host system attempt to exceed 20 GB writes per day by a large margin for an extended period, the drive will enable the endurance management feature to adjust write performance, this feature enables the device to have, at a minimum, a five year useful life"...

    You make many good points, but I should point out that the quoted feature never made it into the retail product. When conducting the testing for my article, I wrote several TB per day to my X25-M and experienced no drop in write speeds - provided those writes were more sequential than random.

    Constantly hitting an X25-M with small writes will net you at most an average 50% drop in sequential write speeds. The drive will eventually reach an equilibrium based on the mix of write sizes you hit it with. The M has larger flash blocks and has to track a relatively higher level of write combining, and it is possible for it to get 'stuck' at some very low write speeds (see the article for more detail). This is a unique condition that Intel is currently looking into.

    Getting back to the quoted section: The write speed slow downs seen in my testing resulted only from the ratio of small/large files written and had nothing to do with the rate / volume of data written over any particular time period.

    Article in question:
    http://hardware.slashdot.org/article.pl?sid=09/02/13/2337258
    http://www.pcper.com/article.php?aid=669

    In response to the post, I would recommend either an MLC SSD with very high IOPS (Intel), one of the newer MLC SSD's with on-board SRAM cache (OCZ Vertex / 3rd gen Samsung), or for the highest overall read/write throughput, a pair of SLC SSD's in RAID-0. For SLC, the Intel drive is very good, but there are much cheaper alternatives out there (i.e. G.Skill rebranded Samsung SLC). Note that the X25-E uses write combining, and will take that same 50% worst-case sequential write hit. Other SLC units are not as fast at small writes (no combining), but their performance remains rock steady regardless of what you hit them with.

    The G.Skill SLC drive I mentioned:
    http://www.newegg.com/Product/Product.aspx?Item=N82E16820231186

    Regards,
    Allyn Malventano
    Storage Editor, PCPer.com

    --
    this sig was brought to you by the letter /.
  52. Re:Umm... by raynet · · Score: 2, Insightful

    I did calculate the worst case scenario once, gonna try it again on 128GB flash-drive.

    So, 128GB SSD has 128GiB flash but user gets usually 128GB or 120GB so that there are cells that can be used for wear leveling and also for badblocks so they get better yields (SSDs can ship with several broken cells). Lets assume a 128GB SSD, thus it has: 8.79GiB reserved for wear leveling.

    First we need to fill up the drive, otherwise it can use the unused cells for wear leveling. So, first we need to write 119GiB.

    Now we can began killing the drive, we write 1 byte to random sectors, assuming Intel SSD, each 1 byte write requires the SSD to erase 512KiB block (erase always erases multiple pages, on Intel SSDs, it is 512KiB). There are 18+ million blocks to wear level on.

    MLC can handle 10k writes, SLC 100k writes. Thus we get minimum amount to write in 1byte random writes to kill a flash is:

    MLC: 171GiB + initial 119GiB
    SLD: 1716GiB + initial 119GiB

    For 120GB SSD the write amounts are about twice as much.

    Comparing to eg. 50% full drive:

    MLC: 13TiB + initial 59GiB
    SLD: 130TiB + initial 59GiB

    This ofcourse assumes a brain-dead write leveling algorithm where as eg. the Intel SSD will wait until it has 512KiB of pages in the cache before commiting them on disk so the drive will last even longer.

    And ofcourse the OS will cache writes and when compiling apps you rarely write 1 byte blocks as files usually are much larger than that, just assuming couple KiB files created by the compilation you would have to write 2671TiB to the drive before it fails, and even at continous advertised 130MB/s speeds it would take 249days to kill the drive (at random 2KiB writes).

    Puuh, I hope I rememberer it all correctly and didn't make any math errors.

    --
    - Raynet --> .