this post was submitted on 04 Aug 2023
181 points (97.9% liked)

Explain Like I'm Five

14243 readers
31 users here now

Simplifying Complexity, One Answer at a Time!

Rules

  1. Be respectful and inclusive.
  2. No harassment, hate speech, or trolling.
  3. Engage in constructive discussions.
  4. Share relevant content.
  5. Follow guidelines and moderators' instructions.
  6. Use appropriate language and tone.
  7. Report violations.
  8. Foster a continuous learning environment.

founded 1 year ago
MODERATORS
 

In a similar vein, why can we not use the technology of RAM to prolong the life-cycle of an SSD?

you are viewing a single comment's thread
view the rest of the comments
[–] naught@sh.itjust.works 7 points 1 year ago (3 children)
[–] al177@lemmy.sdf.org 9 points 1 year ago* (last edited 1 year ago) (1 children)

If you ever have the chance to use an old Apple II computer, run a text mode program, wait til the owner is looking in the other direction and turn the power off and back on quickly.

For about a second, before you hear the loud BOOP and the screen clears, you'll see whatever was on the screen just before you powered it off. But a few characters will be corrupted. Try it again, and wait a half a second longer than before. More characters will be corrupted.

For that brief second you're looking at the contents of the video RAM, then the ROM (Apple called what we call BIOS now "ROM") clears the contents and puts up the familiar text banner. The longer the power stays off, the more the contents of those RAM cells decay, and any bit flip will show up as a different character at the corresponding location on the screen.

On a side note, there was an article in the early '80s in Circuit Cellar by Steve Ciarcia showing how you could make a rudimentary digital camera by prying the top off a DRAM chip (some were ceramic with metal lids, or just metal cans) and adding a CCTV camera lens at the right distance. Light can deplete the charge in DRAM cells even faster, and by writing all 1s to the memory, exposing it to light, and reading back the contents, you could get a black and white image of whatever's shining on the chip.

[–] grahamsz@kbin.social 3 points 1 year ago

The camera hack is really cool - i love stuff like that.

[–] rickdgray@lemmy.world 4 points 1 year ago

Dynamic RAM tracks bits by using a capacitor for each bit. Caps' charge bleeds out so you have to top it off again every so often. The way you do that is to just write the same data back again. So it reads and writes the same data to itself every refresh. The opposition to this is static RAM which does not use a capacitor and is just a clever arrangement of transistors. No refresh needed. It's not typically used commercially except under special requirements, though as transisters are significantly more expensive. So the refresh strategy is the better choice for consumer hardware. DRAM has been dominant for decades.