additional cache notes l.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Additional Cache Notes PowerPoint Presentation
Download Presentation
Additional Cache Notes

Loading in 2 Seconds...

play fullscreen
1 / 19

Additional Cache Notes - PowerPoint PPT Presentation


  • 227 Views
  • Uploaded on

Additional Cache Notes. Dan Nguyen Spring 2005 - Lee. Cache Review. Cache is used to improve computer performance by giving faster access times. IE. Internet web browsers, or even simple examples such as shops Cache RAM is fast, operates at CPU level

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Additional Cache Notes' - Lucy


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
additional cache notes

Additional Cache Notes

Dan Nguyen

Spring 2005 - Lee

cache review
Cache Review
  • Cache is used to improve computer performance by giving faster access times. IE. Internet web browsers, or even simple examples such as shops
  • Cache RAM is fast, operates at CPU level
  • LRU and FIFO replacement policies are the most common way to increase cache hit ratio
common cache found in computers
Common Cache Found In Computers
  • Memory Cache
  • Disk Cache
memory cache
MEMORY CACHE
  • A bank of memory that connects main memory and CPU
  • Data is transferred in cache blocks
  • Uses “look-ahead” algorithm
    • Basically, the more instructions executed, the better the system performance
    • LRU, FIFO
l1 l2 l3 caches
L1, L2, L3 Caches

A type of memory cache.

Computer systems use multi-level cache hierarchies.

  • L1 cache is embedded on processor chip
  • L2 cache is external to the processor
  • L3 is built into physical memory

These “level” caches increase functionality in chips.

Multi-level caches make the cost of accessing memory

approximately the same as the cost of accessing a register.

Example: going to a movie rental store

A)Customer asks clerk for a popular movie. Clerk checks main storage room of all movies (one level cache)

B)Customer checks the movie shelves, not found->asks clerk. Clerk checks in storage room (two level cache)

more on l1 l2 l3
More on L1, L2, L3
  • Closer to the CPU
    • If closer to the CPU, stores recently accessed data from RAM
    • Contains instructions that are executed next

Processor L1 L2 L3

Itanium 32KB 256KB 3MB, 4MB, 6MB

Itanium 32KB 96KB 2 MB, 4MB

Xeon MP 8KB 256KB, 512KB 512KB,1MB,2Mb

P4 8KB 512KB --

l1 l2 l3 summary
L1,L2,L3 Summary
  • The main concept is that we want to have more instructions executed in a fast memory location that is close to CPU.
disk cache
DISK CACHE
  • A section of memory on disk controller that connects disk to CPU
  • When disk is read, it is copied into disk cache. This is usually a larger block of data.
data writing
Data Writing
  • During idle times, if cache data needs to be written, that data will be lined up to be written to disk at high speeds.
    • Example: MS Word Auto Save feature
write back cache
Write Back Cache
  • Supports cache writing
  • Data written to disk, is first written to cache
  • Improves performance, faster than RAM
    • Example: MS Word Temp files
write through cache
Write Through Cache
  • Supports cache writing
  • Slower for writing, but very good for reading data
    • Example: floppy disks
pipeline burst cache
Pipeline Burst Cache
  • For data that is read much, less access times to those memory locations for that data.
    • Related to pipelining later in semester
look a side cache
Look-a-side Cache
  • Cache that shares the computer system bus with main memory
inline cache
Inline Cache
  • Next to the CPU
  • Faster than look-a-side because next to the CPU
  • Slower than back side cache
backside cache
Backside Cache
  • Very fast
  • Has a special connection to the CPU
  • Can operate at CPU level
disk cache summary
Disk Cache Summary
  • Cache used directly with the disk, ie hard disks
  • backside > inline > look-a-side
  • Used to increase data transfer between different systems of the computer
sources
Sources
  • Class textbook
  • www.answers.com
  • www.howstuffworks.com