公羊很便宜,為什麼我們不把所有的東西都從它身上拿走呢?

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
  • 閱讀 ( 33 )
  • 分類:網際網路

你可能感興趣的文章

如何重用舊的ram模組:您可以做的7件事

...、社群中心)需要任何他們能得到的硬體。那就是你的老公羊進來的地方。 ...

  • 發佈於 2021-03-10 20:05
  • 閲讀 ( 63 )

感覺沒有靈感?10項辦公室調整,以更新您的工作效率

...色會對我們的態度、心態和心理產生微妙而真實的影響。為什麼我們不以同樣的方式對待桌面桌布呢?如果你覺得房間不新鮮,你就把它漆成新的。為什麼不改造一下你的桌面呢? ...

  • 發佈於 2021-03-12 14:37
  • 閲讀 ( 50 )

舊技術不可抗拒的吸引力:為什麼我們要努力放手

...們錯了,因為美國核武器部隊仍然使用軟盤來儲存資料。為什麼?很可能是因為在這樣一個複雜而關鍵的環境中,升級到現代技術所涉及的物流。這是可以理解的,即使很難消化。 ...

  • 發佈於 2021-03-17 11:26
  • 閲讀 ( 35 )

為什麼道德駭客是合法的,為什麼我們需要它

... 為什麼道德駭客必須合法 ...

  • 發佈於 2021-03-19 05:01
  • 閲讀 ( 58 )

如何升級mac上的ram

...Mac電腦,以及如何更換它的簡單影片。公司甚至為你的老公羊提供以舊換新服務。 ...

  • 發佈於 2021-03-20 01:17
  • 閲讀 ( 56 )

漫畫家的起源:為什麼那麼多人討厭它?

...縮。你很清楚我說的是什麼字型(即使你忽略了標題),為什麼每個人都討厭連環畫? 漫畫Sans是一種似乎永遠存在的字型。在字型世界中,它和Times New Roman和Arial一樣具有標誌性。誰創造了漫畫?它總是像今天一樣被人憎恨嗎...

  • 發佈於 2021-03-31 18:52
  • 閲讀 ( 67 )

為什麼你應該超頻你的記憶體(很容易!)

...,任何小小的效能改進都會有所幫助。不過,在遊戲中,公羊的速度實際上可以有一個明顯的影響。每個幀可能只有幾毫秒的時間來處理大量資料,因此如果您正在玩的遊戲受CPU限制(如CSGO),更快的RAM可以提高幀速率。看看Li...

  • 發佈於 2021-04-03 04:08
  • 閲讀 ( 51 )

為什麼好的鏡頭如此重要?

...,昂貴的鏡頭在整個影象中也往往更清晰。由於鏡片價格便宜,**商無法在材料或研究上投入那麼多資金。他們盡力做到最好,但必須做出妥協,而影象質量是受到影響的因素之一。 相關報道:為什麼相機鏡頭又大又重? 現在...

  • 發佈於 2021-04-04 05:55
  • 閲讀 ( 60 )

如何開始使用立式辦公桌

...西上花很多錢!如果你看過立式辦公桌,你就知道它們不便宜。 這就是為什麼我選擇了一個便宜的,臨時的解決方案。最後我花了大約25美元買了一張便宜的邊桌、一個架子和幾個支架。 我把那個裝置放在桌子上,然後把膝上...

  • 發佈於 2021-04-05 06:19
  • 閲讀 ( 60 )

智慧手機攝像頭有多好?

...樣好的攝像頭。中端Android**只落後一兩年。 相關報道:為什麼我的iphone7plus有兩個攝像頭? iPhone7有一個12毫米的攝像頭,固定焦距鏡頭相當於全畫幅相機的28毫米,光圈為f/1.8。相機的快門速度範圍為1/3秒到1/8000秒。它的ISO範圍...

  • 發佈於 2021-04-07 14:08
  • 閲讀 ( 70 )
sw12343
sw12343

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦