Consider a machine with two level caches. The Level 1 (L1) cache is of size 16K...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider a machine with two level caches. The Level 1 (L1) cache is of size 16K words with hit time of 1ns. The level 2 (L2) cache is of size 8M word with hit time of 6ns. The L1/L2 cache system is not block-based, i.e. when there is a cache miss in L1, the corresponding word (not block) is read from L2. The block size for L2 cache/main memory system is 128 bytes. The main memory can access four 32-bit words in parallel. The access time for the first four words is 60ns, and each subsequent four words require 12ns. Assuming that the cache hit rate for level 1 cache is 65% and that of level 2 cache is 95%. (i) Calculate the miss penalty of the level 2 cache, i.e. the time to move a block from main memory to level 2 cache. (ii) (1) What is the memory access time if the data is in L1 cache. (2) What is the memory access time if the data is in L2 cache but not in L1 cache? (3) What is the memory access time if the data is not in both L1 and L2 cache, but in the main memory? (4) What is the average memory access time, assuming there is no virtual memory in the system. (iii) Consider a programming language that uses column major scheme for storing 2D arrays, i.e. the mapping between the 2D array and the 1D memory is like this: a [0,0] a[1,0] a[0,1] a[1,1] ⠀ a [n-1,0] a [n-1,1] ... a [0,n-1] a[1,-1] a [n-1,n-1] a[0,0] a[1,0] a[2,0] a[n-1,0] a[0,1] a[1,1] You are writing a program to go through each array element once. Write down the nested for-loop stucture to access the array elements (for example, printing out the value of each element) so as to reduce the memory access time, assuming there is a cache memory in the system. Explain why the memory access time can be reduced. Consider a system with 8 HDDs, each of size 12TB. (i) What is the usable HDD storage if RAID 1 is used. (ii) What is the usable HDD storage if RAID 5 is used. (iii) What is the usable HDD storage if RAID 6 is used. (iv) Write down the reliability of the the above RAID in decreasing order by comparing the number of HDD failures that can be endured. Consider a machine with two level caches. The Level 1 (L1) cache is of size 16K words with hit time of 1ns. The level 2 (L2) cache is of size 8M word with hit time of 6ns. The L1/L2 cache system is not block-based, i.e. when there is a cache miss in L1, the corresponding word (not block) is read from L2. The block size for L2 cache/main memory system is 128 bytes. The main memory can access four 32-bit words in parallel. The access time for the first four words is 60ns, and each subsequent four words require 12ns. Assuming that the cache hit rate for level 1 cache is 65% and that of level 2 cache is 95%. (i) Calculate the miss penalty of the level 2 cache, i.e. the time to move a block from main memory to level 2 cache. (ii) (1) What is the memory access time if the data is in L1 cache. (2) What is the memory access time if the data is in L2 cache but not in L1 cache? (3) What is the memory access time if the data is not in both L1 and L2 cache, but in the main memory? (4) What is the average memory access time, assuming there is no virtual memory in the system. (iii) Consider a programming language that uses column major scheme for storing 2D arrays, i.e. the mapping between the 2D array and the 1D memory is like this: a [0,0] a[1,0] a[0,1] a[1,1] ⠀ a [n-1,0] a [n-1,1] ... a [0,n-1] a[1,-1] a [n-1,n-1] a[0,0] a[1,0] a[2,0] a[n-1,0] a[0,1] a[1,1] You are writing a program to go through each array element once. Write down the nested for-loop stucture to access the array elements (for example, printing out the value of each element) so as to reduce the memory access time, assuming there is a cache memory in the system. Explain why the memory access time can be reduced. Consider a system with 8 HDDs, each of size 12TB. (i) What is the usable HDD storage if RAID 1 is used. (ii) What is the usable HDD storage if RAID 5 is used. (iii) What is the usable HDD storage if RAID 6 is used. (iv) Write down the reliability of the the above RAID in decreasing order by comparing the number of HDD failures that can be endured.
Expert Answer:
Answer rating: 100% (QA)
The following nested forloop structure can be used to access the array elements in column major scheme for int i 0 i numcols i for int j 0 j numrows j Access the element at row j and column i arrayj n... View the full answer
Related Book For
Computer Organization and Design The Hardware Software Interface
ISBN: 978-0124077263
5th edition
Authors: David A. Patterson, John L. Hennessy
Posted Date:
Students also viewed these operating system questions
-
A good example of the enterprise theory at work occurred during Prohibition when the passage of the what ? restricted manufacturing and distributing of alcoholic beverages, but demand for the product...
-
Consider a machine with a byte addressable main memory of 216 bytes and block size of 8 bytes. Assume that a direct mapped cache consisting of 32 lines is used with this machine. a. How is a 16-bit...
-
In this exercise, we will look at the different ways capacity affects overall performance. In general, cache access time is proportional to capacity. Assume that main memory accesses take 70 ns and...
-
The use of prenumbered checks in disbursing cash is an application of the principle of: (a) establishment of responsibility. (b) segregation of duties. (c) physical controls. (d) documentation...
-
1. The call letters of radio stations in the United States consist of either three or four letters, where the first letter is K or W. How many different call letters are possible? 2. A group of...
-
Bell Computers purchases integrated chips at $350 per chip. The holding cost is $35 per unit per year, the ordering cost is $120 per order, and sales are steady, at 400 per month. The companys...
-
What procedures can be used to determine whether all transactions that should be recorded are recorded?
-
Reed Corporations income statement for the year ended June 30, 2014, and its comparative balance sheets as of June 30, 2014 and 2013, follow. During 2014, the corporation sold at a loss of $8,000...
-
Your boss comes up to you with the following problem, "Hi there, it's me, your boss and (obviously) best friend Mrs. Bossenstein. I have a list of all of our employees and I want to figure out the...
-
1. XYZ Ltd. ("XYZ") yesterday issued a $1,000 par value 5 year bond ("the Bond"), In evaluating any capital budgeting proposal, XYZ has, historically, utilized a Required Rate of Return of 25%. As a...
-
Real Greens Produce is starting home delivery of fresh produce via internet ordering. They analyzed both a new and a used delivery van using incremental rate-of-return analysis, as shown in the...
-
Why do conventional files tend be have duplication of data?
-
Meet local small business owners or representatives of as profit organizations. Find a company or organization that will host your team to produce a web site for them (nonmonetary, of course). Find...
-
How does a rise in the rental price of capital affect a firm's demand for labor in the long run?
-
Why is it important to synchronize data and process models?
-
Although database systems have become the systems of choice for new and reengineered systems, are there any situations where a relational file-based system might be chosen instead? Explain your answer
-
The working time for coloring is 78 minutes. The hourly wage of a hairdresser is EUR 10.40. The overheads are 135%, the profit is estimated at 30%, the tax office is entitled to 19% VAT. How much...
-
Listed below are common types of current liabilities, contingencies, and commitments: a. Accounts payable b. Bank loans and commercial paper c. Notes payable d. Dividends payable e. Sales and excise...
-
What is 4365 - 3412 when these values represent signed 12-bit octal numbers stored in sign-magnitude format? The result should be written in octal. Show your work.
-
This exercise is intended to help you understand the relationship between delay slots, control hazards, and branch execution in a pipelined processor. In this exercise, we assume that the following...
-
A simple check for overfl ow during addition is to see if the CarryIn to the most significant bit is not the same as the CarryOut of the most significant bit. Prove that this check is the same as in...
-
In an audit of a corporation that has a bond issue outstanding, the trust indenture is reviewed and confirmation as to the issue is obtained from the trustee. List eight matters of importance to the...
-
Robertson Company had accounts receivable of \(\$ 200,000\) at December 31, 200X, and had provided an allowance for uncollectible accounts of \(\$ 6,000\). After performing all normal auditing...
-
Tom Jones, CPA, is auditing the financial statements of a manufacturing company with a significant amount of trade accounts receivable. Jones is satisfied that the accounts are properly summarized...
Study smarter with the SolutionInn App