Slashdot Mirror


MRAM Inches Towards Prime Time

levin writes "According to an article over at EETimes, magnetoresistive RAM chips are getting a little more practical. Infineon Technologies released info on a new 16M MRAM component on Tuesday and the read and write cycle times of this chip make it 'competitive with established DRAM.' How long before nonvolatile memory becomes the solution to crash-prone software rather than better programming?"

68 of 261 comments (clear)

  1. No Subject by Anonymous Coward · · Score: 5, Insightful

    Last time I checked, most of the software crashes aren't caused by memory randomly disappearing.

    1. Re:No Subject by TheLink · · Score: 2, Insightful

      I think a lot of people have been trolled by the story.

      Hmm, slashdot's filters are pretty annoying too. I have to type slower in order to post successfully. Gack.

      --
    2. Re:No Subject by John+Courtland · · Score: 2, Informative

      No shit. I wonder what kind of havok a shitty OS will wreak on an NVRAM system? I hope there is always a way to reset the banks, because I don't trust much of anything, especially Windows, to behave well enough to stay "running" like that with no "failsafe" power-cycle option.

      --
      Slashdot is proof that Sturgeon's Law applies to mankind.
  2. huh? by pe1rxq · · Score: 5, Insightful

    How long before nonvolatile memory becomes the solution to crash-prone software rather than better programming?

    Probably very long......
    There are very little volatile-memory related software bugs.....
    HINT: You don't want your ram back in the same corrupt state it was in before the reboot.

    Jeroen

    --
    Secure messaging: http://quickmsg.vreeken.net/
    1. Re:huh? by gfody · · Score: 4, Insightful

      How long before ______________ becomes the solution to crash-prone software rather than better programming?

      I'm sure it was just something he added to the article submission to try and sound smart. After all.. it does make sense for a lot of other articles (faster cpus, faster memory, severely high level programming languages, etc etc).

      --

      bite my glorious golden ass.
    2. Re:huh? by Threni · · Score: 2, Insightful

      >I'm sure it was just something he added to the article submission to try and
      >sound smart

      All the more ironic that it had the opposite effect! "Oh, I dunno..just put something about Microsoft...no, bad programming...that's better." "But how does a different type of RAM magically fix errors in program design?" "Shut up! This is my article and I'll write what I like!"

    3. Re:huh? by Grizzlysmit · · Score: 2, Insightful

      How long before nonvolatile memory becomes the solution to crash-prone software rather than better programming?

      Probably very long......
      There are very little volatile-memory related software bugs.....
      HINT: You don't want your ram back in the same corrupt state it was in before the reboot.

      Yep and wait till you see how many previously working programs start behaving as buggy as hell with nonvolatile memory, we're going to have to be far more careful about the init state of memory in a instant on world.
      --
      in my life God comes first.... but Linux is pretty high after that :-D
      Francis Smit
  3. Hopefully never. by Tokerat · · Score: 4, Interesting

    How long before nonvolatile memory becomes the solution to crash-prone software rather than better programming?
    Advanced hardware is no excuse for coders to get lazy. We have enough of that already, let's not make it worse by taking things for granted.

    That being said, imagine the power savings and lightning fast startup times! I'd love an "instant on" PC! ( or, erm...Mac :-D )
    --
    CAn'T CompreHend SARcaSm?
    1. Re:Hopefully never. by robvangelder · · Score: 3, Interesting

      I don't know about you, but the startup times for PCs just don't annoy me.

      It's a daily ritual for me:
      Turn on Computer
      Walk to kitchen
      Make Coffee!
      Walk to desk
      Log on

      I never even see the machine boot up.

    2. Re:Hopefully never. by wookyhoo · · Score: 5, Funny

      You turn it off in the first place? :o

    3. Re:Hopefully never. by nacturation · · Score: 2, Insightful

      You upgrade hardware with the power on?

      Your hardware upgrade is a daily ritual?

      --
      Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
    4. Re:Hopefully never. by jafomatic · · Score: 3, Insightful
      You two been married long? ;)

      (soooo offtopic, but I couldn't resist)

      --
      ::jafomatic
  4. Wouldn't fix crashing programs by SirCrashALot · · Score: 5, Insightful
    If a program crashes, its memory is corrupted so saving its state past a reboot wouldn't help. Assuming the system goes down, theres a chance that you might want to save some of the data but if it thats far gone, it might not be trustworthy.

    Looks cool for applications such as hibernate.

  5. I don't follow this statement by wankledot · · Score: 4, Interesting
    "...How long before nonvolatile memory becomes the solution to crash-prone software rather than better programming?"

    Someone explain to me how MRAM will help with stability if it is simply replacing the same type of functionality that good old fashioned RAM has.

    --
    My sig is blank, I typed this by hand.
    1. Re:I don't follow this statement by lightray · · Score: 4, Insightful

      Exactly.. MRAM will actually encourage better programming, since users will have no reason to reboot other than because of crashes; rebooting will be even more of an onus.

      Nonetheless, I don't know whether that particular aspect of MRAM will make any difference. I can't remember the last time I had to reboot Linux due to a software crash! Virtual/protected memory systems are very good about isolating applications from each other already.

      The real benefits of MRAM are far more exciting. Unlike conventional DRAM, MRAM does not need to be refreshed (it's nonvolatile), yet its fast enough and could be cheap enough to replace DRAM. The result is a huge POWER SAVINGS since you wouldn't have to use power to run the DRAM refresh cycles. Moreover, MRAM is simpler, so it could have higher integration densities, and thus would be cheaper.

      MRAM falls into the general domain of "spintronics" (which is the name given to technologies which exploit the spin of electrons in addition to their charge). One of the most exciting applications of spintronics is in reconfigurable computing. We could make "real" reconfigurable logic -- cheap nonvolatile FPGA's. Your processor could quite literally rewire itself on the fly, adapting to the task at hand. Very exciting.

    2. Re:I don't follow this statement by Mycroft_VIII · · Score: 2, Funny
      "Your processor could quite literally rewire itself on the fly, adapting to the task at hand. Very exciting."


      But only if we pull the chip out of his head, and set the switch to the learning mode that skynet had turned off.
      Sorry had to do it.

      Mycroft
      --
      https://signup.leagueoflegends.com/?ref=4c3ed6600b6ea
  6. Wha? by Anonymous Coward · · Score: 5, Insightful

    How is nonvolatile RAM supposed to prevent crashes? Crashes are the result of unexpected program interaction, hardware incompatibilty, or poorly-anticipated user input.

  7. Programmer Error by LakeSolon · · Score: 5, Insightful

    "How long before nonvolatile memory becomes the solution to crash-prone software rather than better programming?"

    Never. Having the same bits in memory after a reboot doesn't help if you wrote the wrong bits in the first place.

    "On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."

    ~Lake

  8. Not a solution by Alioth · · Score: 5, Insightful

    Non-volatile main memory is unlikely to be a solution against crash-prone software. If the software crashed because there was a bug in how it handled the data in memory, if the data is still there and the application reads it again, it'll just crash in exactly the same place.

    In any case, an application crashing very seldom causes the machine to actually power down, and an application crashing and being restarted never gets to use the same memory the same way anyway, so the point is entirely moot. If your main memory is nonvolatile RAM, the advantage is you can design a system that can be powered down and suspended without having all that lengthy write of the entire machine's state to disk (and read when it comes back up again), which would be extremely useful on a laptop. If you can do this, you can have essentially uptime of years, so the incentive would be to write MORE stable operating systems and applications if the expectation is that even a laptop may go years between reboots.

  9. What? by bobintetley · · Score: 4, Informative

    How long before nonvolatile memory becomes the solution to crash-prone software rather than better programming?

    What? A crash-prone program is a crash-prone program, regardless of whether it vanishes or not when you turn the power off.

  10. Preserve corruption across power-cycle by noidentity · · Score: 3, Insightful

    How long before nonvolatile memory becomes the solution to crash-prone software rather than better programming?

    Good, now I'll be able to preserve memory corruption even after a power-cycle! Last time I checked, software crashes weren't due to the fact that DRAM loses its contents when powered down.

  11. Re:16M? by Mycroft_VIII · · Score: 4, Insightful

    For main memory on a pc, not much, unless of course it's a tiny chip and you put at least 16 on a card the size of current ram dimms.
    However it seems to me somthing like this on a hard-drive with a journaling file system properly built to use it, could have some use.
    Heck most hard drives today only have 8MB for cache as it is.

    Mycroft

    --
    https://signup.leagueoflegends.com/?ref=4c3ed6600b6ea
  12. irrelevant to crash-prone software by bollow+(a)+NoLockIn · · Score: 3, Insightful
    How long before nonvolatile memory becomes the solution to crash-prone software rather than better programming?

    If your operating system has crashed, it has crashed. You need to reboot it. MRAM cannot change that. The point is that with MRAM you should be able to switch off your computer and switch it on again later without reboot and without need to save RAM contents to disk at power-down and to retore them from disk after the system is switched on again.

    Hence if anything, this technology will increase pressure on operating system vendors to produce OSes which don't crash badly enough to require a reboot.

    --
    Under construction: swpat politics overview article
  13. Moving parts are soooo 2000 by robvangelder · · Score: 5, Interesting

    Once step closer to replacing HDD, CDROM, DVD and all those other "moving parts" storage devices.

    In 20 years, we'll all be looking back at DVD and CDROM like we do at Tape Cassette.

    Moving parts and things that go whirr make me cringe.

    I just want to plug it in and get instant access.

    1. Re:Moving parts are soooo 2000 by Anonymous Coward · · Score: 4, Interesting

      You can already have a solid state PC if you want. I've replaced a broken HD in an older laptop with Compactflash through a 2.5" CF-IDE adapter. I run Linux, with the root fs mounted ro and I only use small apps, so I don't need swap with 192MB Ram. My main workspace is in Ram on a tmpfs (the laptop battery acts as a UPS); when I'm done I save the essentials on a USB pen drive. For backing up bigger archives, I plug in a 2.5" USB HD. That's my only "moving parts" storage device, but I don't use it day-to-day.

      If you can live without bloatware like Windows, OS X or KDE/Gnome, it's easy enough to go solid state today. My CF card is bigger than the HD that I used to run Linux 2.0 with X and Fvwm 1.2 ...

    2. Re:Moving parts are soooo 2000 by gfody · · Score: 3, Insightful

      obviously, by moving he meant mechanical (gears, discs, heads).. subatomic movement happens fast enough that we don't need to worry about it becoming the slowest process by thousands of orders of magnitude like the current situation with HDDs. I would love it if everybody would just stop worrying about making cpus, gpus and ram faster and just focus on a new form of permanent storage that wasn't a million times slower than anything else in the system.

      --

      bite my glorious golden ass.
  14. What an asinine question. by torpor · · Score: 4, Interesting


    "How long before nonvolatile memory becomes the solution to crash-prone software rather than better programming?"

    Hello. What do you think -hard disks- are?

    I'll give you 5 seconds to come up with a list of operating system 'features' that have been 'standardized' which really resulted from this 'ideology' about how to not write 'safe' code and just let other parts of the system 'deal with it' ...

    Give up? Okay, I'll give you a few:

    1. Swap. Yup, if the program has no idea how much RAM it has or needs, and no idea how to manage it, and the programmer just wants it all ... there's swap. Otherwise known as 'virtual memory', or, as they used to say in the good ol' days "fail-safe swap-over".

    2. "Protected Memory". Yup. Same deal. Let the OS deal with 'bad programming'.

    Non-volatile memory has nothing to do with 'protecting from bad programming' and everything to do with writing 'true' persistent state machines... just like these two 'features'.

    In summary: If it wasn't for 'bad programming', operating systems wouldn't have anything to do ...

    Flame on.

    --
    ; -- the corruption of government starts with its secrets. a truly free people keep no secrets. --
    1. Re:What an asinine question. by JiffyJeff · · Score: 2, Interesting

      Perhaps I'm speaking in the wrong forum, but in coding I often across events in which I have no idea how much data I'll be reading until I'm done.

      Shit, this is problem shared by kids' lemonade stands and database developers worldwide.

      The world is construed with constantly changing amounts of units. Ask just about any software engineer how many users use his system and he'll say "Ummm, I don't know."
      Is he "stupid" because he doesn't know? No, it's no real working model can predict the future of something whose uncertainly of use is based on the number of users who use it.

      As I proceed to digress, I have to admit that there are surely situations in which models fit very well, but think about the big picture. If you had to write a "simple" program to calculate 'pi' given any input.... could you do it? If you had to record transactions for a given bank for a given day -- could you magnify that for a million users for a year?... Or for a second?

      Expect the unexpected... And deal with it.

  15. Crash savedty by ooze · · Score: 3, Interesting

    Is not the main point of non-volatile memory. The two main advantages are significatly less power consumption (only put energy into it, when you want to change the sate, not on every single cycle) and having permanent storage at the speed of System Memory (may I see the time coming, when there will be no seperate permanent storage devices, like hds and all this periphery, with all the bus technology and other error prone parts?...It's a long shot, but this is an important first step)

    --
    Just because I can imagine doing a hippopotamus, doesn't mean I'd like to do it.
  16. One step closer... by Chrysophrase · · Score: 4, Insightful

    ... to the "immediately on" computer. Boot times reduced to next to nothing will be prove to be a giant leap in the usability of computers, I think.

    --
    "It usualy starts with some screaming. Afterwards there is much running around."
  17. Re:16M? by Mycroft_VIII · · Score: 3, Interesting

    Gak, didn't read close enough, it's only 18Mb(2MB). Still as aid for aware journaling filesystems it could be good, it's 30-40ns speed is fast enough for hard drive caching.
    What I'd really like to see is memory fast enough to not need clock multipliers on the cpu's, or perhaps a memory controller that spans enough modules to achieve the same effect. Unfortunately the added complexity would probably be a major pita, or require serious re-design of memory sub-systems.

    Mycroft

    --
    https://signup.leagueoflegends.com/?ref=4c3ed6600b6ea
  18. Why would it make a programmer lazy by mcrbids · · Score: 4, Interesting

    Wouldn't non-volatile RAM actually make programmers more attentive?

    One of the most common programming errors is a memory-leak. Can you imagine what would happen if you couln't reboot the Windows machine to clear the memory for another few days?

    Non-volatile RAM may be the best excuse yet to switch to something more, ah... tightly coded!

    That said, I think that the current memory/disk model of computing is antiquated. Why distinguish memory from disk? Why not treat it all the same?

    A HDD is the base storage medium. RAM is a cache of that. L2 cache is a cache of RAM. L1 cache caches L2 cache.

    Why the distinction from HDD to memory? Instead of allocating RAM directly, why not follow the *nix philosophy of "everything is a file" and if you want a storage space for some temp values, open a file and write them in.

    The memory allocated for a particular process would then appear as a file (perhaps buried somewhere in /proc ?) like any other file. Then, determining which program was leaking ram could be done with a simple `ls -la`.

    Instead of flushing to special swap partitions, the memory files would simply be committed to disk when you run out of RAM. (moved down the cache chain from RAM to disk)

    Switching to a fundamentally different type of memory may be the right time to reconsider system architectures and challenge our conventional assumptions of computing, especially since memory leaks can be so severe, even in commercial software!

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.
  19. Re:instant on? by OutRigged · · Score: 2, Interesting

    Isn't the whole idea of a reboot to unload and reload all operating system components? Thus resetting the system state from a crash or updating configuration or executable files that were in use. If magnetic RAM saves the state when it's off, how will that help Windows users or any computer user with a reboot? The only real benefit I can see here is power saving. If a program crashes the entire operating system, you'll most likely need to reload all the operating system components. Reloading a copy of the memory that's already crashed would be pointless.

    Then again, I'm probably missing something. I didn't rtfa, of course.

    --
    RaGe
    We're all just noise on the wires..
  20. Fast and Low Power by Gigantic1 · · Score: 2, Insightful

    Hmm...fast and low power - I like it. I don't exactly know how it might be a substitue for my PC's RAM, but I can certainly imagine it being a great way to replace Flash and SRAM.

  21. That's not why programs crash by Thornkin · · Score: 4, Insightful

    Programs don't crash because the memory is cleared during reboots. They crash because they refer to memory that never existed in the first place.
    Perhaps nonvolatile memory will improve startup times (think super-fast hibernate) but crashes? Not a chance.

  22. Re:16M? by mahbidness · · Score: 3, Insightful

    For main memory or video memory, yeah, not so much at first glimpse. The "nonvolatile" portion is where it gets sexy. The primary reason static RAM isn't widely implemented for ALL memory right now is simply cost. Dynamic RAM's volatile nature forces the CPU or a memory controller to take time to read and write the contents of each portion of memory repeatedly thousands of time per second, else the contents of the memory are lost. Not having to do that would be a huge work saver for future hardware, allowing it to focus on any problems at hand. Very cool stuff.

    --

    "It is a solemn thought: dead, the noblest man's meat is inferior to pork."

  23. Just you wait... by BortQ · · Score: 5, Funny

    The real future is in ENRAM. Give it all your money and then it crashes !

    --

    A Multiplayer Strategy Game for Mac OS X, Windows, and Linux
  24. Wouldn't this actually make the problem much worse by ArsenneLupin · · Score: 3, Insightful
    How long before nonvolatile memory becomes the solution to crash-prone software rather than better programming?

    At least now, when your Windows crashes, you can reboot your machine, and in extreme cases powercycle it.

    However, with such non-volatile RAM, this is a thing of the past: even leaving the machine unpowered for an hour won't erase the crashed program state...

  25. Somewhat stupid argument by burbilog · · Score: 2, Interesting
    One of the most common programming errors is a memory-leak. Can you imagine what would happen if you couln't reboot the Windows machine to clear the memory for another few days?

    Why everyone automatically assumed that memory can't be cleared upon reboot?! WTF???!! What you were smoking today? It's fucking RAM guys! BIOS could clean it for you during reboot. Or operating system could do it before loading itself.

    1. Re:Somewhat stupid argument by mcrbids · · Score: 2

      Why everyone automatically assumed that memory can't be cleared upon reboot?! WTF???!! What you were smoking today? It's fucking RAM guys! BIOS could clean it for you during reboot. Or operating system could do it before loading itself.

      Sooo... where's the advantage of NVRAM?

      So, we spend years and millions of dollars developing something that we then disable anytime it behaves differently than something widely available?

      With a minimum of profanity, PLEASE EXPLAIN TO ME WHY YOU'D WANT NON-VOLATILE RAM if it's going to be erased on boot anyway?

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
    2. Re:Somewhat stupid argument by burbilog · · Score: 2, Insightful
      With a minimum of profanity, PLEASE EXPLAIN TO ME WHY YOU'D WANT NON-VOLATILE RAM if it's going to be erased on boot anyway?

      I'd want non-volatile ram for instant on-off like my Palm does without fear of loosing memory when battery goes dead. Instant power-on/power-off != reboot.

    3. Re:Somewhat stupid argument by jafomatic · · Score: 2
      PLEASE EXPLAIN TO ME WHY YOU'D WANT NON-VOLATILE RAM if it's going to be erased on boot anyway?

      You wouldn't. But that's not really the question, is it? The question (or rather, the answer) is that you would have a choice of powering down and emptying memory, or just powering down.

      I've decided to omit the "minimum profanity" you've requested, as there's no mention of the desired quantity or measurement listed in your post.

      --
      ::jafomatic
  26. Re:Wouldn't this actually make the problem much wo by cpghost · · Score: 2, Interesting

    Exactly. The kernel's crashed state will be preserved, so you won't be able to reboot cleanly. Some kind of checkpointing (like in database servers) would be useful here: just reboot to the last valid checkpoint. Of course, this requires a lot more WRAM though...

    --
    cpghost at Cordula's Web.
  27. There's nothing new under the sun by ColourlessGreenIdeas · · Score: 5, Funny

    Yay! We're going to get instant-on computers, just like home computers in the '80s were. How are we going to achieve it? Some form of jumped-up magnetic core memory!

    --
    In soviet russia stale jokes recycle you!
  28. Non-volatile needs better software by klagermkii · · Score: 3, Insightful

    If the big advantage of non-volatile RAM is the reduction in how many times you have to wait for your PC to perform a full startup and shutdown the last thing you want to have is your software being so crap that you have to reboot it all the time anyway.

  29. What about laptops? Or embedded systems? by Moraelin · · Score: 4, Insightful

    You see, there are perfectly good reasons to tunr a computer off, regardless of whether it's running Linux or Windows or Solaris or MacOS X. And then you'll want it to start as quickly as possible when you want it back on.

    Laptops are the prime example. You don't want it on all the time, when you don't need it. You want to still have some juice in the battery when you do need it. You'll also want it up and running as fast as possible when you do need it.

    Dunno about you, but I'd rather just start using it, instead of sitting and watching through 5 minutes of Linux loading everything _and_ the kitchen sink at startup, then loading KDE, then taking ages to start Open Office, etc. If MRAM lets me have it up and ready in 1 second, I'm all for it.

    E.g., there are computers in a lot of gadgets. Take my CD-based MP3 player, for example. Whenever I power it up, it takes a couple of seconds to basically boot and read the track list. If all that could stay in MRAM, and have it start playing the millisecond I hit that button, it would be a much more convenient gadget.

    And even with regular PCs, you have to understand that some people actually _use_ their PC. They don't just keep them for a retarded "my uptime can beat yours" contest. And, like any other tool, there are perfectly good reasons to turn it off when you're not using it any more.

    If nothing else, for the noise. Now this computer is a lot more silent since I replaced the fans with 12 dBA ones, and got Seagate drives. But all else being equal, I'd still _not_ have an extra source of noise near my bed when I'm trying to sleep.

    For a lot of people the electricity bill is a factor too. Yes, it's not a small fortune, but for a lot of people it matters. And it's still paying money for something they don't need. They're getting exactly zero use out of that computer running all night, so why would that be on their electricity bill?

    Basically all I'm saying is: next time make sure brains are engaged, before jumping in with the standard knee-jerk "Microsoft sucks" post. Yes, I know. It gives retards the impression of belonging to some big sad community. Makes you sooo cool if you're whining about Microsoft too.

    But sometimes it still can't hurt to pull your head out of your ass. There _are_ uses for some stuff (e.g., the MRAM we're talking about here) that aren't a Windows-vs-Linux thing at all. They're just as useful for either.

    Of course, that would mean actually thinking and actually doing a real analysis, instead of just reaching for the fashionable dogma. But I'm sure you'll get the hang of that, eventually.

    --
    A polar bear is a cartesian bear after a coordinate transform.
  30. Re:16M? by crbowman · · Score: 3, Interesting

    Read the whole article my friend. While 2 MBytes may not be much it is plenty for many embedded applications, plus its fabed in .18 Micron CMOS which means the .13 Micron versions probably have 8 Mbytes, and it only uses 3 metal layers, which in an age of 8 metal layer chips should mean good yeilds which means low costs. It seems to use a fairly standard CMOS process which means it will be able to leverage all the general CMOS improvements. It uses less operating power than DRAM, has faster cycle times than FLASH and being magnetic, I am guessing is non-volatile. Plus this isn't a commerical product yet, they said clearly they still have a long way to go in reducing size before then. All in all it actually sounds pretty good. I look forward to the day when all memory is non-volatile, I think we will find that it will change the way we design and look at products.

  31. Re:16M? by bhtooefr · · Score: 3, Informative

    However, there are 8 to 16 chips on a DIMM. So, multiply by 8 to get 16MB for a single-sided DIMM, or 16 to get 32MB for a double-sided DIMM. Not good, but for a new memory type, it's catching up quick.

  32. Memory errors are RAMPANT--one every 90 minutes! by NigritudeUltramarine · · Score: 5, Insightful

    There are very little volatile-memory related software bugs.....

    Oh, are you SURE about that? You should research such statements first, my friend, rather than assuming.

    Take a look at this review from last year of power supplies by Anandtech.

    They ran a six-hour memory test 54 times--and found that with 512MB of RAM, after each six hour test there were an average of four bits that had flipped! That means there is a memory error on a 512MB PC--on average--every 90 minutes!

    If that error occurs in a code segment in a driver, you may get a system crash. In a Windows DLL, perhaps some system instability. In an application, perhaps an application crash. If it's in a data segment, your important manuscript may suddenly lose a paragraph or skip a couple pages as a linked list pointer jumps to the wrong spot, or you may find a bunch of junk replacing normal text.

    Memory errors are a serious problem that very few people acknowledge. Why people still buy non-ECC RAM is beyond me. (Of course, even with ECC RAM, there are still various places inside the PC where failure can occur--along the various buses for exmaple, which don't all have ECC. So this is only part of the solution.)

    More reliable RAM would definitely be a step in the right direction.

  33. It is much more disrruptive technology then that by salec · · Score: 5, Interesting

    The magnetoresistive cell can change the way ANY sequential logic circuit operates. It can make much denser CPUs, ASICs and FPGAs, because now you can make the clock input be THE power supply line.

    It can also make your timepiece battery last ... well, longer.

    You just need to look at it in a different view then Yet Another Non-PowerCycle-Erasable Storage.

  34. EROS by nacturation · · Score: 5, Interesting
    The EROS project (Extremely Reliable Operating System) is an attempt to achieve this -- continual persistence with fine grained capability-based security. Essentially, *everything* is serializable to disk and is done so periodically (eg: every 30 seconds). This has the benefit that you can have the power go out unexpectedly, reboot the system, and only lose half a minute worth of work as all your apps will be restored to their last state. An amusing anecdote about the predecessor to EROS, KeyKOS, from this page... true story:
    • At the 1990 uniforum vendor exhibition, key logic, inc. found that their booth was next to the novell booth. Novell, it seems, had been bragging in their advertisements about their recovery speed. Being basically neighborly folks, the key logic team suggested the following friendly challenge to the novell exhibitionists: let's both pull the plugs, and see who is up and running first.


    • Now one thing Novell is not is stupid. They refused.

      Somehow, the story of the challenge got around the exhibition floor, and a crowd assembled. Perhaps it was gremlins. Never eager to pass up an opportunity, the keykos staff happily spent the next hour kicking their plug out of the wall. Each time, the system would come back within 30 seconds (15 of which were spent in the bios prom, which was embarassing, but not really key logic's fault). Each time key logic did this, more of the audience would give novell a dubious look.

      Eventually, the novell folks couldn't take it anymore, and gritting their teeth they carefully turned the power off on their machine, hoping that nothing would go wrong. As you might expect, the machine successfully stopped running. Very reliable.

      Having successfully stopped their machine, novell crossed their fingers and turned the machine back on. 40 minutes later, they were still checking their file systems. Not a single useful program had been started.

      Figuring they probably had made their point, and not wanting to cause undeserved embarassment, the keykos folks stopped pulling the plug after five or six recoveries.
    --
    Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
  35. How 'bout core? by Octorian · · Score: 3, Interesting

    You know, the core memory of "way back when" was also magnetic, and nonvolitile. Actually, it was destructive-on-read, so you only had to refresh a bit it when reading it. Otherwise, you could turn the machine off and it would keep its contents.

    (No, I'm not that old. But I had some friends in college who played around with an old PDP-11/45 we found, which used core.)

  36. Re:lost by Anonymous Coward · · Score: 2, Funny

    Yeah, you're missing an s :)

  37. Re:Memory errors are RAMPANT--one every 90 minutes by rugger · · Score: 4, Interesting

    Err, then the PC and ram Anandtech have been using are dodgy.

    Due to the design of Dynamic RAM chips, memory bit flip errors are not influenced by how long the memory sits "idle". I emphise idle here because Dynamic ram is never really idle. Each cell in a DRAM chip contains a capacitor and a transistor. If a DRAM cell is left to its own devices, the capacitor soon discarges and the cell looses its state. To stop this from happening, in the background, the RAM controller on the chip is constantly recharging the capacitors. Each cell is read and rewritten about every few milliseconds.

    Because DRAM chips are never idle, the whole methodolgy of the anandtech test is WRONG, and the most obvious conclusion is that anandtech is using dodgy ram, or is simply pushing the RAM beyond their specs to forcibly generate errors.

  38. Sensitive data lying around after turn off? by doshell · · Score: 4, Insightful

    Perhaps I'm being too paranoid, but I see some potential for abuse here. Imagine a program that deals with passwords or credit card numbers... They could be still lying around in your non-volatile memory after the machine is switched off.

    An intelligent program should then zero out those passwords before freeing memory. Even so, would this kind of storage suffer from the security issue already discussed here and here (ability to retrieve data from many previous writes)?

    --
    Score: i, Imaginary
  39. Re:Memory errors are RAMPANT--one every 90 minutes by pe1rxq · · Score: 2, Insightful

    So according to you when I trip over the power cord and all software disappears from RAM its a software bug?

    The HARDWARE failed and thus its a hardware bug.
    (In the power cord example its an operator bug)

    Jeroen

    --
    Secure messaging: http://quickmsg.vreeken.net/
  40. Re:Memory errors are RAMPANT--one every 90 minutes by NigritudeUltramarine · · Score: 5, Interesting

    And how exactly is one expected to code against this?

    It's not difficult.

    Just add ECC in software.

    I've done this before in some of the software I've written for hospitals and banks; it's been a design requirement for the software to detect when there is a failure, and to correct if possible.

    And, yes, failures ARE detected, AND corrected.

    The way it works is you divide memory up into blocks (for example, 512 bytes of 1KB). You do this for both your data and code. For each memory block, store the ECC data (usually, in a separate area of memory, so it's non-intrusive to the program design).

    A thread runs in the background, often on a second CPU, continuously checking the program's data and code to ensure that the ECC data is valid. When an error is detected, it is logged and corrected if possible.

    When modifying data, a flag is set for that memory block that it has been altered; a new ECC value is calculated as soon thereafter as possible. (This is done automatically by setting the CPU to generate an exception when writing to a particular segment. It's a feature built into Intel processors and available through high-level calls in both Windows and Linux.)

    I'm sure you remember the Java exploit from a couple of years back, where the security model was bypassed completely by blowing a hairdryer on the RAM until a byte code error was induced in very-carefully-constructed code. Software ECC is the kind of thing you need to do to mitigate those types of attacks.

  41. Re:Wouldn't this actually make the problem much wo by Elledan · · Score: 2, Informative

    No need for something so complex. All one has to do to recover from such a state is to extend (or emulate one of volatile RAM's 'features', if you wish) the 'reset'-function:

    The moment you push the 'reset' button, not only does the system reboot, but the memory is also wiped, after which a non-corrupted copy is loaded from the 'HDD' (or whatever is used for storage).

    So in other words, the 'power'-button would be used to power the system down, while the entire state would be preserved (like the hibernate feature).
    The 'reset'-button would literally reset the system to its default state, just like when you boot a system employing volatile RAM.

    --
    Site & blog: http://www.mayaposch.com
  42. I rarely hear of RAM as the failure by erroneus · · Score: 4, Insightful

    While it's possible, RAM is a hardware failure and can rarely be connected with software.

    On the other hand, our handy ability to shut down and clear out bad programming is a luxury that might become more difficult with the new RAM technology.

    This could mean that viruses and other malware could remain even more resistant to removal than before!

  43. Re:Memory errors are RAMPANT--one every 90 minutes by NigritudeUltramarine · · Score: 5, Informative

    No, that's wrong. The truth is that errors in dynamic RAM can be introduced on each refresh. As you said yourself, dynamic RAM needs to be refreshed every few milliseconds--read and rewritten. Each time that happens, it's possible for an error to be introduced. If the refresh circuitry reads the value incorrectly, you get an error. If it writes the value incorrectly, you get an error. The longer the RAM sits around, the more refresh cycles, so the greater the chance for errors. If the voltages aren't stable enough, for example, you'll find a "1" bit refreshed with slightly too low of a current so that when the next refresh comes around, it's read as a "0" as it's been discharging over time and falls just below the threshhold to be read as a "1".

    As far as errors not being introduced when the memory is "idle," you're thinking of static RAM. Static RAM doesn't need to be refreshed, and thus actually CAN be idle. So it holds a huge advantage here. Without the refresh cycle, there's no place for errors to be introduced except during the actual reads and writes by the processor.

  44. There'll be uses for this stuff... by Julian+Morrison · · Score: 3, Interesting

    ...but they won't be the same as uses for RAM or for hard disk.

    Using it for RAM would be silly - RAM is supposed to be transient, keeping it around would be a security and stability loss.

    Using it for hard disk would be silly - the price per megabyte would be ridiculous unless you're doing stock-market data crunching or some such.

    Some uses I can immediately see for it:

    - boot the OS, and save a snapshot for an instant reboot

    - use it to store persistent caches of binaries, libraries, etc

    - use it for filesystem and database journals

    - do RAID4 and use it to hold the parity volume

    1. Re:There'll be uses for this stuff... by addaon · · Score: 2, Insightful

      How would it be a security loss? Any program concerned about security today is already aware that any of its memory may be swapped out at any time... and that swap files can, on many architectures, survive between boots. The only safe way to ensure that stuff you write in memory is not persisted, today, is to clear it by hand. How is this different with MRAM?

      How would it be a stability loss? I just don't see it... all this talk about 'but when you reboot, you'll be in the same state.' No, when you reboot, your memory will be in the same state, and your processor will be in the reset state. Does ANY software on ANY platform using DRAM assume that memory is initialized to a known state at startup?

      --

      I've had this sig for three days.
  45. Re:Memory errors are RAMPANT--one every 90 minutes by 12357bd · · Score: 4, Insightful

    Without the refresh cycle, there's no place for errors to be introduced except during the actual reads and writes by the processor.

    What about external influences (heat, cosmic radiation, etc)?

    --
    What's in a sig?
  46. This might actually cause more crashes. by zerofoo · · Score: 2, Informative

    One of the interesting aspects of MRAM is the ability to not lose system memory "state". You turn off the machine, and the contents of memory remain for the next session.

    Can you imagine a windows XP "state" that has never been rebooted? How about a continually running process that has a memory leak?

    Eventually all machines need to be rebooted (some much less than others). That means re-creating a "clean" system state in memory.

    -ted

    1. Re:This might actually cause more crashes. by iggymanz · · Score: 2, Insightful

      back in the day of magnetic core, you could boot and choose whether you wanted to execute a little routine that would shuffle zeros from one location to the next to clear out the machine, or continue running with what you had (any other slashdotters out there ever work on IBM 1620 or 1720 or magcore models in the 360/370 line?) I think it's funny that this is once again may be an option.

  47. Re:Memory errors are RAMPANT--one every 90 minutes by afidel · · Score: 3, Informative

    Yes and it just gets worse as chip densities increases. That's why IBM invented Chipkill (which is essentially RAID-5 for ECC RAM banks). The error rate for 1GB ECC memory-equipped server is 9 outages per 100 servers over 3 years IBM whitepaper, pdf. Non-ECC ram is probably rediculously high!

    --
    There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
  48. Re:Lazier? by RevAaron · · Score: 3, Insightful

    The ones who aren't lazy are too busy reading slash dot.

    Umm... I'm not sure in what world you live, but Slashdot isn't the meeting place for the world's best and most ambitious programmers. *We* are the lazy ones, reading /. when we should be working.

    --

    Working toward a usable PDA environment in the spirit of Newton OS: Dynapad
  49. hrmm by athlon02 · · Score: 2, Interesting

    From the article: "Before we go to commercial production there remains a lot of work to do."

    Man I wish they'd just release some anyways. I don't care if the 1st generation is 1.42 microns^2 per cell, I'd just like to have the stuff. I've been waiting on the stuff ever since I first heard about it ages ago. But it's good to see they are still moving forward.