PCDVD數位科技討論區

PCDVD數位科技討論區 (https://www.pcdvd.com.tw/index.php)
-   儲存媒體討論區 (https://www.pcdvd.com.tw/forumdisplay.php?f=20)
-   -   請問硬碟的2M 8M 16M要幹麻的? (https://www.pcdvd.com.tw/showthread.php?t=552298)

dmwc 2005-10-27 02:47 PM

引用:
作者kkk
我認為那是因為硬碟讀取的速度跟 傳輸到memory的速度不同步
為了不使這兩個傳輸介面互相影響 所以中間有個暫存記憶體

所以我認為他是buffer

http://www.seagate.com/pdf/marketing/PO-Cuda7200.9.pdf
是Cache 不是 Buffer,是Buffer那就和容量大小無關了,因為只要夠緩衝後,再多也沒用,如果FIFO下 FO > FI ,無論2M 8M都不會增加效能

HDD Buffer應該在控制器內就已經有了或是他會從那Cache切一塊去當Buffer也有可能,但不管怎麼樣,連廠商都說那塊是Cache就不應去誤解為Buffer

lawson7212 2005-10-27 06:17 PM

定義Cache & Buffer...(當然大家都能接受的...)

就不會有爭執了...

kkk 2005-10-27 07:51 PM

引用:
作者dmwc
http://www.seagate.com/pdf/marketing/PO-Cuda7200.9.pdf
是Cache 不是 Buffer,是Buffer那就和容量大小無關了,因為只要夠緩衝後,再多也沒用,如果FIFO下 FO > FI ,無論2M 8M都不會增加效能

HDD Buffer應該在控制器內就已經有了或是他會從那Cache切一塊去當Buffer也有可能,但不管怎麼樣,連廠商都說那塊是Cache就不應去誤解為Buffer



如果傳輸方向是單向的 容量再多也沒用

不過硬碟是雙向的傳輸 所以buffer愈大還是有用

因為一個方向 FIFO FO>FI 另一個方向就是FI>FO

要知道 硬碟能讀 也能寫

不過我真的很懷疑為何要cache
硬碟資料的傳輸 不都是使用者決定的??? 為何還要開個cache 去預測要抓什資料
需要嗎???

Xforce 2005-10-27 08:29 PM

引用:
作者dmwc
http://www.seagate.com/pdf/marketing/PO-Cuda7200.9.pdf
是Cache 不是 Buffer,是Buffer那就和容量大小無關了,因為只要夠緩衝後,再多也沒用,如果FIFO下 FO > FI ,無論2M 8M都不會增加效能

HDD Buffer應該在控制器內就已經有了或是他會從那Cache切一塊去當Buffer也有可能,但不管怎麼樣,連廠商都說那塊是Cache就不應去誤解為Buffer


http://www.seagate.com/support/kb/disc/tp/cache.html

Since computers tend to access the disc drive in a sequential or predictably ordered manner, performance can be greatly increased by reading extra data into a memory cache before the computer asks for it. This way, when the computer asks for the next bit of data, it is already in memory, and data retrieval from memory can be several thousand times faster than having to get it from the disc. Tests show that if a computer requests data from a certain location, there is an 80% to 90% chance the next request will be for data in the following location. Unfortunately, using a cache to improve performance is a gamble. We make the effort to read the extra data based on the 80% chance it will be used next.

Caching, in effect, anticipates requests for certain data (usually the next in line) and draws that data into memory before the system needs it. Because the caching program reads information into memory before it is needed, it is often also called a Read Look-Ahead Buffer. Caching occurs at many levels within a company, so it is not necessary for the cache to reside with the host computer's main memory. A disc drive can handle the caching for itself, leaving the host computer free from the burden of managing the cache for that device.

>>>Caching is often also called a Read Look-Ahead Buffer

http://www.seagate.com/support/glos...che_buffer.html

Cache Buffer
A bank of solid-state memory on a drive that stores some data from the discs. The system may then refer to this memory for information instead of going to the media, increasing the processing speed.

Cache Buffer 比較完整的說法

有夠呆 2005-10-28 03:49 AM

叫緩衝記憶体~
也可以叫磁碟緩衝暫存區~
有人叫他Cache 也有人叫他Buffer(看個人,應該不會有人會為了這個在吵架吧,知道在講什麼就好)
他有Cache的功用,也有Buffer的功用~
雖然是愈大愈好,不過其實非常大的話.
對一般使用者而言應該是沒什麼差別~

dmwc 2005-10-28 12:51 PM

引用:
作者kkk
如果傳輸方向是單向的 容量再多也沒用

不過我真的很懷疑為何要cache
硬碟資料的傳輸 不都是使用者決定的??? 為何還要開個cache 去預測要抓什資料
需要嗎???

雙相傳輸只是Buffer變兩塊,IO方向變了而已,也是容量再多也沒用,只要Buffer永遠空不了就足夠了,就和你用燒錄軟體開10MB buffer或1G buffer,只要Buffer空不了燒錄速度就不會變慢,越多只是在等的資料越多而已

Cache原理很簡單,而且是很重要的,硬碟的資料傳輸是使用者決定的沒錯,但如果沒有Cache,資料分布會呈現線性,例如讀1>4>7>10 ... ,但是其他2,3,5,6 時間就可能浪費掉的,硬碟就可以順便把那些資料放入Cache,Cache就是把多餘的時間利用而已,某些HDD甚至會對FAT去做Cache

寫入Cache就像Buffer,就比較沒那麼特殊神奇,但也是一樣很重要,他可以對要寫入的區域做整理後整批寫入,和純Buffer 不同於Buffer一定要 FIFO ,不能插隊

Cache 也有人說他是 Buffer 的一種,但Buffer 不是 Cache的一種

rabbit100 2005-10-28 02:03 PM

叫 快取 Cache 或 Buffer 緩衝 都可以啦 這個沒有一個明確的定義
兩者都一樣啦 就是畫出一塊記憶體 供資料當作快取用
只是在不同的裝置上運作的方式不同而已 如何運作當看程式的設計

希捷 那個資料 只是用於公司內部統一辨識用 外界並沒有那麼明確的定義

maxalan 2005-10-28 02:23 PM

是Buffer才對,首先您要知道這緩衝區有何功用,是硬碟的讀寫臂受牽扯至碟片上方時,是需要時間的,這時南橋就可先將資料先存進緩衝區內,等磁頭定位後在由緩衝區取出資料進行寫入,相反的,當南橋繁忙時,這時硬碟磁頭便可先將資料先存進緩衝區內,等南橋忙完後再由緩衝區內取出資料來處理,這樣可節省些等待時間,所以這是當做緩衝使用,而不是當做快取來使用的......

kkk 2005-10-28 03:19 PM

引用:
作者Xforce
http://www.seagate.com/support/kb/disc/tp/cache.html

Caching, in effect, anticipates requests for certain data (usually the next in line) and draws that data into memory before the system needs it. Because the caching program reads information into memory before it is needed, it is often also called a Read Look-Ahead Buffer. Caching occurs at many levels within a company, so it is not necessary for the cache to reside with the host computer's main memory. A disc drive can handle the caching for itself, leaving the host computer free from the burden of managing the cache for that device.
...


-->A disc drive can handle the caching for itself, leaving the host computer free from the burden of managing the cache for that device.

硬碟可以處理自己的快取,使得host 端不用再負擔硬碟的快取動作

蠻有趣的設計

kkk 2005-10-28 03:22 PM

引用:
作者dmwc
雙相傳輸只是Buffer變兩塊,IO方向變了而已,也是容量再多也沒用,只要Buffer永遠空不了就足夠了,就和你用燒錄軟體開10MB buffer或1G buffer,只要Buffer空不了燒錄速度就不會變慢,越多只是在等的資料越多而已



此言差矣

如果是執行硬碟寫入, host 端愈早寫完,他的memory bus,HTT bus, 南橋的bus
愈早釋放出來給別人用。 當然 buffer 愈大愈好。
主機上又不只一顆硬碟,也不只有硬碟這種device


所有的時間均為GMT +8。 現在的時間是08:42 AM.

vBulletin Version 3.0.1
powered_by_vbulletin 2026。