公羊很便宜,为什么我们不把所有的东西都从它身上拿走呢?

RAM模块比以往任何时候都便宜,所以为什么我们不使用超高速的RAM库来运行我们的整个操作系统呢?...

公羊很便宜,为什么我们不把所有的东西都从它身上拿走呢?

RAM模块比以往任何时候都便宜,所以为什么我们不使用超高速的RAM库来运行我们的整个操作系统呢?

今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。

问题

超级用户阅读器pkr298想知道为什么我们没有运行基于RAM的机器,而不是基于磁盘的机器。他写道:

RAM is cheap, and much faster than SSDs. It’s just volatile. So why don’t computers have a LOT of RAM, and on power up, load everything to the RAM from the hard drive/SSD and just run everything from there, assuming there’s no real need to persist anything outside of memory? Wouldn’t computers be much faster?

Of course, current operating system may not support this at all, but is there any reason RAM isn’t used this way?

从表面上看,他的调查是有道理的,但很明显,我们并没有沉浸在基于RAM的计算机构建中;背后的故事是什么?

答案

SuperUser contributor Hennes提供了一些关于为什么我们仍然使用基于磁盘的系统的见解:

There are a few reas*** RAM is not used that way:

  1. Common desktop (DDR3) RAM is cheap, but not quite that cheap. Especially if you want to buy relatively large DIMMs.
  2. RAM loses its contents when powered off. Thus you would need to reload the content at boot time. Say you use a SSD sized RAMDISK of 100GB, that means about two minutes delay while 100GB are copied from the disk.
  3. RAM uses more power (say 2–3 Watt per DIMM, about the same as an idle SSD).
  4. To use so much RAM, your motherboard will need a lot of DIMM sockets and the traces to them. Usually this is limited to six or less. (More board space means more costs, thus higher prices.)
  5. Lastly, you will also need RAM to run your programs in, so you will need the normal RAM size to work in (e.g. 18GiB, and enough to store the data you expect to use).

Having said that: Yes, RAM disks do exist. Even as PCI board with DIMM sockets and as appliances for very high IOps. (Mostly used in corporate databases before SSD’s became an option). These things are not cheap though. Here are two examples of low end RAM disk cards which made it into production:

007Ys3FFgy1gpfw2chcq0j30i206i755

Note that there are way more ways of doing this than just by creating a RAM disk in the common work memory.

You can:

  1. Use a dedicated physical drive for it with volatile (dynamic) memory. Either as an appliance, or with a SAS, SATA or PCI[e] interface.
  2. You can do the same with battery backed storage (no need to copy initial data into it since it will keep its contents as long as the backup power stays valid).
  3. You can use static RAMs rather then DRAMS (simpler, more expensive).
  4. You can use flash or other permanent storage to keep all the data (Warning: flash usually has a limited number of write cycles). If you use flash as only storage then you just moved to SSDs. If you store everything in dynamic RAM and save to flash backup on power down then you went back to appliances.

I am sure there is way more to describe, from Amiga RAD: reset surviving RAM disks to IOPS, wear leveling and G-d knows what, However I will cut this short and only list one more item:

DDR3 (current DRAM) prices versus SSD prices:

  • DDR3: € 10 per GiB, or € 10,000 per TiB
  • SSDs: Significantly less. (About 1/4th to 1/10th.)

如果您想阅读更多关于RAM磁盘的内容,请查看RAM磁盘解释:它们是什么以及为什么您可能不应该使用它们。


有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。

 

  • 发表于 2021-04-11 16:33
  • 阅读 ( 137 )
  • 分类:互联网

你可能感兴趣的文章

如何重用旧的ram模块:您可以做的7件事

... 按照DIY或makerspace的理念,为什么不将RAM模块连接到Arduino爱好者板上以获得额外的存储空间呢? ...

  • 发布于 2021-03-10 20:05
  • 阅读 ( 842 )

你现在可以做10个预算的arduino星球大战项目

...这个假日季将既有圣诞节的欢乐气氛,也有原力的一面。为什么不把两者结合起来,**一个高科技的星球大战启发LED圣诞树呢? ...

  • 发布于 2021-03-12 05:05
  • 阅读 ( 277 )

32款手机和平板电脑天才diy黑客

...能**作为安全摄像头,而且你可能有一个旧**躺在某处,为什么不把它使用?这篇文章涵盖了使用突出的眼睛,以保护您的住所,而你出去,以及两个其他选择,以保护您的财产。 ...

  • 发布于 2021-03-14 03:20
  • 阅读 ( 336 )

你的公羊即将失败的5个迹象和症状

... 今天,我们将看一些坏公羊的迹象。如果您看到这些问题中的任何一个,这可能是RAM失败迫在眉睫的迹象。 ...

  • 发布于 2021-03-17 16:18
  • 阅读 ( 222 )

linux正在吃掉你的公羊吗?如何管理你的记忆

...安装Linux的前提是它比Windows需要更少的系统资源。那么,为什么你的系统突然内存不足呢? ...

  • 发布于 2021-03-23 08:31
  • 阅读 ( 313 )

为什么你应该超频你的内存(很容易!)

...诉系统,“嘿,我知道DDR4应该只支持2666mhz的速度,但是为什么你不把我的速度超频到盒子上的速度呢?“这是一个超频从工厂,已经预调,测试,并准备去。它通过RAM上的一个芯片(称为串行存在检测芯片)在硬件级别实现了...

  • 发布于 2021-04-03 04:08
  • 阅读 ( 160 )

从windows电脑上完全删除itunes和其他苹果软件

...而放弃iTunes,完全卸载它可能是一件麻烦的事。在这里,我们向您展示如何完全删除它的所有痕迹,包括QuickTime、iTunes Helper、Bonjour…所有这些。 我们最近向您展示了如何让iTunes在Windows计算机上运行得更快。尽管这些技巧确实...

  • 发布于 2021-04-13 11:15
  • 阅读 ( 116 )

普林斯刚离开spotify,我的播放列表全被套住了

...把我最喜欢的五个播放列表搞砸了。虽然这完全是他作为我们这个时代音乐天才的权利,但这让我的音乐完全混乱。简单地说,我不能没有王子的歌曲播放列表,我认真考虑切换到潮汐只是为了让我的队伍在一起。
 
 
...

  • 发布于 2021-04-30 16:07
  • 阅读 ( 119 )

人的山羊睾丸,猪的人体器官:异种移植的过去和未来

...导致1万人死亡”。 但是,随着基因组编辑技术的进步,我们也许能够绕过其中的一些问题。就在几个月前,科学家首次发现了世界上第一个人类-猪嵌合体,也就是猪胚胎注射了人类干细胞。这些猪不能发育到胎儿期,它们开始...

  • 发布于 2021-05-11 15:52
  • 阅读 ( 213 )

你桌子上现在有什么,为什么在那里?

...三杯饮料,但这也是我拥有这株植物的原因之一,也是我为什么在书桌前的墙上贴满了亲朋好友寄来的明信片、各种度假纪念品等等(如果你好奇的话,我在家工作。)当我看这些东西的时候,它会让我很高兴,当我要看笔记本...

  • 发布于 2021-05-13 17:04
  • 阅读 ( 83 )
sw12343
sw12343

0 篇文章

相关推荐