Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The base CPI of a computer is 0 . 5 , which includes the TLB and cache access time. The clock rate is 4 GHz

The base CPI of a computer is 0.5, which includes the TLB and cache access time. The clock rate is 4GHz. The TLB miss rate is 3% and the cache miss rate is 5%. The main memory access time is 20 nanoseconds. In addition, the page fault rate is 0.3%. The hard drive transfer rate is 400 MB/s, and the hard drive overhead (including all the latency other than transfer time) is 0.012 milliseconds. The page size is 4096 bytes and the sector size is 512 bytes. The probability that all the sectors are contiguous is 0.4. A cache block to be replaced is dirty with 0.04 probability, and a page to be replaced is dirty with 0.06 probability. Assume there is no write buffer for writing to memory or hard drive. The cache and page table are full initially.
What is the probability of having TLB hit and cache hit?
Assuming TLB hit and cache hit, what is the average CPI?
What is the probability of having TLB hit and cache miss?
Assuming TLB hit and cache miss, what is the average CPI?
Assuming TLB hit, what is the average CPI?
What is the probability of having TLB miss and cache hit?
Assuming TLB miss, cache hit, what is the average CPI?
What is the probability of having TLB miss and cache miss and no page fault?
Assuming TLB miss, cache miss, and no page fault, what is the average CPI?
Assume a page is stored on contiguous sectors, what is the average number of cycles to read/write the page from/to the hard drive?
Assume a page is stored on random sectors, what is the average number of cycles to read/write the page from/to the hard drive?
What is the average number of cycles to read/write a page from/to the hard drive?
What is the probability of having TLB miss and page fault?
Assuming TLB miss and page fault, what is the average CPI?
What is the overall average CPI?
In the answers, round all the probabilities to the fifth decimal place. Round the average CPI to the nearest tenth. All the decimal places must be present even if they are zero. Keep more digits for intermediate results to avoid large accumulated errors. Separate the answers by commas.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions