Presentation is loading. Please wait.

Presentation is loading. Please wait.

Cache By: Thanh Nguyen.

Similar presentations


Presentation on theme: "Cache By: Thanh Nguyen."— Presentation transcript:

1 Cache By: Thanh Nguyen

2 What is cache? Cache is a high speed storage mechanism that speed up your data processing speed.

3 Cache - example A librarian without cache

4 Cache - example A librarian with some cache 5

5 Cache - example Even more cache.. 5

6 Terms Hit/ miss L1 L2

7 Idea Overall, the idea of cache technology is the use of a faster but smaller memory type to accelerate a slower but larger memory type

8 Normal caching system L1 cache – Memory accesses at full microprocessor speed (10 nanoseconds, 4 kilobytes to 16 kilobytes in size) L2 cache – Memory access of type SRAM (around 20 to 30 nanoseconds, 128 kilobytes to 512 kilobytes in size) Main memory – Memory access of type RAM (around 60 seconds, 32 megabytes to 128 megabytes in size) Hard disk – Mechanical, slow (around 12 milliseconds, 1 gigabyte to 10 gigabytes in size) Internet – Incredibly slow (between 1 second and 3 days, unlimited size)

9 Common question “If L1 is so fast, why not make all of the computer’s memory run at the same speed as L1 cache, so no caching would be required?”

10 Answer Yes, we could but the general idea is:
Build something small but fast Build something large but slow Build something large but fast

11 Cache in everything.. Types of cache Browser cache Memory cache
Disk cache Processor cache

12 Source http://goo.gl/JoOf14 Librarian image
Shopping cart image Backpack image


Download ppt "Cache By: Thanh Nguyen."

Similar presentations


Ads by Google