![Essentials of Computer Organization and Architecture](https://www.bartleby.com/isbn_cover_images/9781284123036/9781284123036_largeCoverImage.gif)
a)
Given:
TLB hit=5ns
Cache hit =12ns
Main memory=25ns (Memory reference)
Hard drive=200ms (Disk reference)
Hit ratio TLB=90%
Hit ratio cache=98%
Rate of Page fault=0.001%
a)
![Check Mark](/static/check-mark.png)
Explanation of Solution
TLB (Translation Look aside Buffer) hit and cache Hit:
- Translation Look aside buffer is special type of cache that is used to store the contents of the page table.
- The content of the TLB cache includes pairs of virtual page number, physical frame numbers.
- The page number that is required can be looked up inside the TLB.
- If the requested page number is found it is considered to be a hit and it indicates that the page number is being mapped with the frame number that is present in the main memory.
- The contents of the cache will also be accessed to find whether the data is present in the cache as well and if the same contents are present it is meant to be a hit.
Therefore, this type of access is possible and the total access time is calculated as shown below:
Therefore, the total access time is 17ns.
b)
Given:
TLB hit=5ns
Cache hit =12ns
Main memory=25ns (Memory reference)
Hard drive=200ms (Disk reference)
Hit ratio TLB=90%
Hit ratio cache=98%
Rate of Page fault=0.001%
b)
![Check Mark](/static/check-mark.png)
Explanation of Solution
TLB (Translation Look aside Buffer) miss, page table hit and cache Hit:
- Translation Look aside buffer is special type of cache that is used to store the contents of the page table.
- The content of the TLB cache includes pairs of virtual page number, physical frame numbers.
- The page number that is required can be looked up inside the TLB.
- If the requested page number is found it is considered to be a miss, then the page number that is required is searched in the main memory’s page table.
- If the page entry is found in the page table, the address of the virtual memory is mapped with the main memory.
- The contents of the cache will also be accessed to find whether the data is present in the cache as well and if the same contents are present it is meant to be a hit.
Therefore, this type of access is possible and the total access time is calculated as shown below:
Therefore, the total access time is 42ns.
c)
Given:
TLB hit=5ns
Cache hit =12ns
Main memory=25ns (Memory reference)
Hard drive=200ms (Disk reference)
Hit ratio TLB=90%
Hit ratio cache=98%
Rate of Page fault=0.001%
c)
![Check Mark](/static/check-mark.png)
Explanation of Solution
TLB (Translation Look aside Buffer) miss, page table hit and cache Miss:
- Translation Look aside buffer is special type of cache that is used to store the contents of the page table.
- The content of the TLB cache includes pairs of virtual page number, physical frame numbers.
- The page number that is required can be looked up inside the TLB.
- If the requested page number is found it is considered to be a miss, then the page number that is required is searched in the main memory’s page table.
- If the page entry is found in the page table, the address of the virtual memory is mapped with the main memory.
- The contents of the cache will also be accessed to find whether the data is present in the cache as well and if the same contents are not present it is meant to be a miss, then the access is being transferred to main memory and the block that is required is transferred again to the cache.
Therefore, this type of access is possible and the total access time is calculated as shown below:
Therefore, the total access time is 67ns.
d)
Given:
TLB hit=5ns
Cache hit =12ns
Main memory=25ns (Memory reference)
Hard drive=200ms (Disk reference)
Hit ratio TLB=90%
Hit ratio cache=98%
Rate of Page fault=0.001%
d)
![Check Mark](/static/check-mark.png)
Explanation of Solution
TLB (Translation Look aside Buffer) miss, page table miss and cache hit:
- Translation Look aside buffer is special type of cache that is used to store the contents of the page table.
- The content of the TLB cache includes pairs of virtual page number, physical frame numbers.
- The page number that is required can be looked up inside the TLB.
- If the requested page number is found it is considered to be a miss, then the page number that is required is searched in the main memory’s page table.
- If the page entry is not found in the page table, there occurs a page fault .
- The access is made with the hard drive to bring the required data into the main memory.
- There is no possibility of the cache being hit in this scenario because the address is not present in the main memory itself
Therefore, this type of access is not possible.
e)
Given:
TLB hit=5ns
Cache hit =12ns
Main memory=25ns (Memory reference)
Hard drive=200ms (Disk reference)
Hit ratio TLB=90%
Hit ratio cache=98%
Rate of Page fault=0.001%
e)
![Check Mark](/static/check-mark.png)
Explanation of Solution
TLB miss and page table miss:
- Translation Look aside buffer is special type of cache that is used to store the contents of the page table.
- The content of the TLB cache includes pairs of virtual page number, physical frame numbers.
- The page number that is required can be looked up inside the TLB.
- If the requested page number is found it is considered to be a miss, then the page number that is required is searched in the main memory’s page table.
- If the page entry is not found in the page table, there occurs a page fault.
- The access is made with the hard drive to bring the required data into the main memory.
- The access will be getting restarted at this stage.
- The page number that is required can be looked up inside the TLB.
- If the requested page number is found it is considered to be a miss, then the page number that is required is searched in the main memory’s page table.
- Now the request page number is found at the page table of the main memory.
- There occurs a page hit.
- The value that is requested and found in the main memory may not be reflected at the cache.
- There occurs a cache miss.
- Then the main memory is accessed to bring the block to the cache.
Therefore, this type of access is possible and the total access time is calculated as shown below:
Therefore, the total access time is
Effective Access time (EAT):
- EAT is a measure of Hierarchal memory performance.
- A weighted average that utilizes the hit ratio and the relative access time of the levels present in successful order of the memory hierarchy is called as effective access time.
- The actual time of the access is based on the technology that is utilized to access the contents present at each level of the hierarchy.
Formula for the effective access time:
The formula for effective access time where the memory contains two levels that includes a main memory and the cache memory is obtained as shown below:
In the above formula,
Any access that is made is being split up into following ways:
- Virtual access
- Main memory access
If the contents are present in the TLB then it is called as hit, and if the element is not present in the TLB then the element is accessed at the page table.
If the element is present at the page table then it is a hit, if the contents are not present then the access is made at the main memory to bring the elements to the cache.
Now again the contents are searched at the cache now the data found is considered as a hit.
Want to see more full solutions like this?
Chapter 6 Solutions
Essentials of Computer Organization and Architecture
- Microsoft Excelarrow_forwardIn cell C16, enter a formula to calculate the price of the vehicle minus your available cash (from cell A3 in the Data worksheet). Use absolute references where appropriate—you will be copying this formula across the row what fomula would i use and how do i solve itarrow_forwardWhat types of data visualizations or tools based on data visualizations have you used professionally, whether in a current or past position? What types of data did they involve? What, in your experience, is the value these data views or tools added to your performance or productivity?arrow_forward
- Question: Finding the smallest element and its row index and column index in 2D Array: 1. Write a public Java class min2D. 2. In min2D, write a main method. 3. In the main method, create a 2-D array myArray with 2 rows and 5 columns: {{10, 21, 20, 13, 1}, {2, 6, 7, 8, 14}}. 4. Then, use a nested for loop to find the smallest element and its row index and column index. 5. Print the smallest element and its row index and column index on Java Consolearrow_forward(using R)The iris data set in R gives the measurements in centimeters of the variables sepal length and width andpetal length and width, respectively, for 50 flowers from each of 3 species of iris, setosa, versicolor, andvirginica. Use the iris data set and the t.test function, test if the mean of pepal length of iris flowers isgreater than the mean of sepal length.The iris data set in R gives the measurements in centimeters of the variables sepal length and width andpetal length and width, respectively, for 50 flowers from each of 3 species of iris, setosa, versicolor, andvirginica. Use the iris data set and the t.test function, test if the mean of pepal length of iris flowers isgreater than the mean of sepal length.arrow_forwardRecognizing the Use of Steganography in Forensic Evidence (4e)Digital Forensics, Investigation, and Response, Fourth Edition - Lab 02arrow_forward
- Write a Java Program to manage student information of a university. The Javaprogram does the following steps:a) The program must use single-dimensional arrays to store the studentinformation such as Student ID, Name and Major.b) The program asks the user to provide the number of students.c) The program asks the user to enter the Student IDs for the number of studentsand stores them.d) The program asks the user to enter the corresponding names for the numberof students and stores them.e) The program then asks the user to provide the corresponding major for thestudents and stores them.f) The program then should display the following options:1. ID Search2. Major Enrollment3. Exitg) On selecting option 1, the user can search for a student using Student ID. Theprogram asks the user to enter a Student ID. It then should print thecorresponding student’s details such as Name and Major if the user providedStudent ID number is present in the stored data. If the user’s Student IDnumber does not…arrow_forward(a) Algebraically determine the output state |q3q2q1q0> (which is a 4-qubitvector in 16-dimensional Hilbert space). Show all steps of your calculations. (b) Run a Qiskit code which implements the circuit and append threemeasurement gates to measure the (partial) output state |q2q1q0> (which is a 3-qubit vector in 8-dimensional Hilbert space). this is for quantum soft dev class, you can use stuff like Deutsch Jozsa if u wantarrow_forwardWrite a C++ program that will count from 1 to 10 by 1. The default output should be 1, 2, 3, 4, 5, 6 , 7, 8, 9, 10 There should be only a newline after the last number. Each number except the last should be followed by a comma and a space. To make your program more functional, you should parse command line arguments and change behavior based on their values. Argument Parameter Action -f, --first yes, an integer Change place you start counting -l, --last yes, an integer Change place you end counting -s, --skip optional, an integer, 1 if not specified Change the amount you add to the counter each iteration -h, --help none Print a help message including these instructions. -j, --joke none Tell a number based joke. So, if your program is called counter counter -f 10 --last 4 --skip 2 should produce 10, 8, 6, 4 Please use the last supplied argument. If your code is called counter, counter -f 4 -f 5 -f 6 should count from 6. You should count from first to last inclusively.…arrow_forward
- Write a program that will count from 1 to 10 by 1. The default output should be 1, 2, 3, 4, 5, 6 , 7, 8, 9, 10 There should be only a newline after the last number. Each number except the last should be followed by a comma and a space. To make your program more functional, you should parse command line arguments and change behavior based on their values. Argument Parameter Action -f, --first yes, an integer Change place you start counting -l, --last yes, an integer Change place you end counting -s, --skip optional, an integer, 1 if not specified Change the amount you add to the counter each iteration -h, --help none Print a help message including these instructions. -j, --joke none Tell a number based joke. So, if your program is called counter counter -f 10 --last 4 --skip 2 should produce 10, 8, 6, 4 Please use the last supplied argument. If your code is called counter, counter -f 4 -f 5 -f 6 should count from 6. You should count from first to last inclusively. You…arrow_forwardWas What is the deference betwem full At Adber and Hold?arrow_forwardI need help making this EER diagram in Chen Notation.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
![Text book image](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)