2.5 Cache
2.5 Cache
CACHE
Giảng viên: Phan Thị Thanh Ngọc
Khoa: Điện tử Viễn thông
Trường: Đại học Điện lực
Hệ thống phân cấp bộ nhớ
Phân cấp bộ nhớ
Question 1: A computer has a cache, main memory, and a hard
disk drive. If a referenced word is in the cache, 10 ns are
required to access it. If it is in main memory but not in the
cache, 80 ns are needed to load it into the cache, and then
the reference is started again. If the word is not in main
memory, 10 ms are required to fetch the word from disk,
followed by 80 ns to copy it to the cache, and then the
reference is started again. The cache hit ratio is 0.9 and the
main-memory hit ratio is 0.7. What is the average time in ns
required to access a referenced word on this system?
H2 = 0.7
H1 = 0.9
Hard
10 ns 80 ns Main 10 ms Disk
CPU Cache Memory Drive
Memory
Your answer :