[小惡魔的電腦教室] 5-1. 認識硬碟

hdd 上的是 "buffer" ,
buffer 是 "儲放 預先讀取及稍後寫入的資料".
因為機械裝置移動比較慢的緣故,
所以在讀取某一區域時,預先把鄰近區域的資料先讀取進來,
同理,寫入時先儲放在BUFFER,待較空閒時再寫回磁盤.
( http://en.wikipedia.org/wiki/Buffer_%28computer_science%29 英文內容和我的理解不一定一樣)

CPU cache或 OS 的disk cache,
則是 "最近處理過的資料或指令,因為相依性的關係,最近被處理過的資料或指令,通常會有很高的機會再被使用,所以找一個地方還放這些資料或指令"
(http://en.wikipedia.org/wiki/Cache 英文內容和我的理解不一定一樣)


好像是這樣分.
找kiwi 也說是很多人會誤解.
kiwi 中對兩者的比較:
(http://en.wikipedia.org/wiki/Cache#The_difference_between_buffer_and_cache)
======================
The difference between buffer and cache
The terms are not mutually exclusive and the functions are frequently combined; however, there is a difference in intent. A buffer is a temporary memory location, that is traditionally used because CPU instructions cannot directly address data stored in peripheral devices. Thus, addressable memory is used as intermediate stage. Additionally such buffer may be feasible when a large block of data is assembled or disassembled (as required by a storage device), or when data must be delivered in a different order than that in which it is produced. Also a whole buffer of data is usually transferred sequentially (for example to hard disk), so buffering itself sometimes increases transfer performance. These benefits are present even if the buffered data are written to the buffer once and read from the buffer once.

A cache also increases transfer performance. A part of the increase similarly comes from the possibility that multiple small transfers will combine into one large block. But the main performance gain occurs because there is a good chance that the same datum will be read from cache multiple times, or that written data will soon be read. Cache's sole purpose is to reduce accesses to the underlying slower storage. Cache is also usually an abstraction layer that is designed to be invisible from the perspective of neighboring layers.
======================

mafio11 wrote:
那就得送回原廠的無塵室進行拆解才能存取磁碟片上的資料


第一點現在原廠也沒有回收硬碟進行處理。有些只是打掉賣廢料.
有時候也不見得需要分解才可以拿資料。
個案狀況都不一樣。


大YG wrote:
是接上後只聽到嗒..搭..嗒...然後電腦完全抓不到

有敲擊音這個大約幾個可能

1.讀寫頭變形
2.讀寫頭訊號RW控制器故障
3.碟片受損
4.軸承故障
5.讀寫頭連接線斷
6.讀寫頭污染

AF35 wrote:
讀寫頭飄離了磁碟片了.

這種說法是幻想....
我對於文中所提及的SATA硬碟的照片有問題
介面介紹那裏
範例中是用WD的硬碟來做講解電源與信號配置圖
但是好像電源和訊號寫反了喔
比較小的是訊號吧
感謝樓上大大們的回覆與鼓勵
SATA部分的圖片已經修正完畢(可能做太多圖,眼花了,不好意思勒

至於Buffer或Cache的問題
的確,硬碟的緩衝記憶體正確來說是Buffer
不過當初在寫到這部分時
考量到現在幾乎沒有人說Buffer了
所以沿用一般通稱的Cache Memory

不過既然會造成誤會
那我們還是把它正名回Buffer

PS:感謝syntech大的回覆,文中的"硬碟的緩衝記憶體"部分已修正。

至於SAS介面,則是與SATA介面一樣,可以直接參考


sas 跟sata 介面不一樣吧

sata


sas
不知道mobile01能不能PO膜拜文..
大大的這篇文章真是寓教於樂,用心良苦啊
在這裡讓小弟膜拜一下
記得是以碟片的材質來稱呼
硬碟的"蝶片"是金屬
軟碟的"碟片"是塑膠

硬碟與軟碟的名稱區別應該不是以"外殼"的材質不同而稱呼的吧!
看完真的補了好多對於硬碟似懂非懂的觀念

感謝樓主辛苦分享
Mason L wrote:
硬碟之所以會「硬」,就是因為外面有一層「鐵殼」保護,軟碟之所以是「軟的」,顧名思義,就是它少了「鐵殼」的保護(只有塑膠殼啦)。


印象中不是這樣:
軟碟是指"方便抽換", 硬碟是"固定不動".
跟GF大的一樣,太精采了

實在學到很多東西呢..
123
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!