2012年3月27日 星期二

第四週 Chp:4 系統單元的組成元件

Cache

In addition to clock speed and architecture, a processor's cache and front side bus (FSB) speed also determine a computer's overall power. In brief, cache is a form of very fast memory integrated into the processor chip, and used to store up instructions (work for the processor) so that it has to slow down as little as possible between tasks. Cache is measured in megabytes (MB), with (for example) low-end Celeron processors having as little as 0.25MB of cache (256KB), and high-end Itaniums having up to 24MB. The simple message is, the more cache the better -- though high levels of cache still come at a very significant price.
除了時鐘速度架構處理器的高速緩存前端總線(FSB)速度也決定了計算機的整體實力簡而言之,緩存是一個非常快的內存集成到處理器芯片用於存儲指令處理器工作因此,它有減緩任務之間盡可能少形式緩存是衡量兆字節(MB例如低端賽揚0.25MB緩存(256KB)處理器高端安騰24MB簡單的消息更多的緩存更好 - 雖然仍處於一個非常重要價格層次的緩存
From: explainingcomputers.com

(1)CPU cache
Small memories on or close to the CPU can operate faster than the much larger main memory. Most CPUs since the 1980s have used one or more caches, and modern high-end embedded, desktop and server microprocessors may have as many as half a dozen, each specialized for a specific function. Examples of caches with a specific function are the D-cache and I-cache (data cache and instruction cache).
回憶靠近CPU可以操作速度比大得多主存儲器20世紀80年代大部分的CPU使用一個或多個高速緩存,現代高端嵌入式,桌面服務器微處理器中可能多達一半每個專門特定的功能具有特定功能高速緩存例子D-cache和緩存數據緩存和指令高速緩存

(2)Disk cache


While CPU caches are generally managed entirely by hardware, a variety of software manages other caches. The page cache in main memory, which is an example of disk cache, is managed by the operating system kernel.
While the hard drive's hardware disk buffer is sometimes misleadingly referred to as "disk cache", its main functions are write sequencing and read prefetching. Repeated cache hits are relatively rare, due to the small size of the buffer in comparison to the drive's capacity. However, high-end disk controllers often have their own on-board cache of hard disk data blocks.
Finally, fast local hard disk can also cache information held on even slower data storage devices, such as remote servers (web cache) or local tape drives or optical jukeboxes. Such a scheme is the main concept of hierarchical storage management. 
雖然CPU緩存一般是完全由硬件各種軟件管理緩存這是一個磁盤高速緩存例子在主內存中頁面緩存管理操作系統的內核

硬盤驅動器的硬件磁盤緩衝區誤導有時簡稱為“磁盤高速緩存其主要職能預取重複緩存命中率比較少見,由於緩衝區驅動器的容量比較大小然而,高端磁盤控制器通常自己的板上緩存硬盤中的數據

最後,快速的本地硬盤也可以緩存更慢數據存儲設備,如遠程服務器Web緩存本地磁帶驅動器光盤庫掌握的信息這項計劃分層存儲管理主要概念

 

 

沒有留言:

張貼留言