SRAM and DRAM access times
Access times for Flash and disk drives
Memory hierarchy of a computer in ascending order?
Fastest to slowest
Storage for registers, SSDs and HDDs
Different levels of caches and their storage sizes
What is nearline storage?
Archives of tapes controlled by robot.
Why do fast processors need to be small in size?
Why is there a hierarchy in the different types of memory.
If a processor has a clock cycle of 4GHz ( 4 billion clock cycles in 1 second ), then it can complete one clock cycle in about .25 nano seconds ( after doing the math ). Light can travel about 7.5 cm in that time (.25 ns) which is the time taken for one clock cycle. The speed of electric signals is about 2/3 of that of light at the best. Therefore, the farthest it can travel is about (2/3) * 7.5 = 5cm for one clock cycle. Therefore, the smaller the size, the less distance is to be travelled.
What are some other factors ( 7 ) that are to be considered while designing a process apart from speed.
Most efficient way to make use of the memory technologies?
Disadvanatages of keeping a working copy of the data in the fast memory.
What is the concept of virtual memory and how does it work?
Virtual memory is the concept of using disks to create the illusion of extra RAM .
Combines:
Apart from extra RAM, what else is virtual memory used for and what are the drawbacks?
Virtual memory is also used for multi-tasking as each process gets its own virtual address space
Need to make sure that there is protection by making sure that stray pointers in one V address space cannot access another address space
What are the basics of caching.
In caching, data is split into small chunks or lines or pages
The address is split into a chunk identifier and an offset which refers to data within chunks
How does caching work?
Data is divided into chunks for caching and some of these chunks are stored within the fast memory. When the user tries to access a chunk of data, one of 2 things can happen.
What is spatial locality?
Memory that is accessed is often near memory that was accessed recently
Give an example
What is temporal locality?
Memory that is accessed frequently is often grouped together.
Give an example
Direct Mapped Caching
Each chunk is allocated a specific place in memory and these can be occupied by multiple chunks one at a time.
There is a specific overhead to determine which chunk in the fast memory holds which chunk in the slow memory.
Fully Associative Caching
Name three instruction groups and give examples for those?
3 Instructions groups are:
Which instruction exchanges source and destination?
The xchg instruction does this.
What is write through?
Write through is when
What is write back?
In write back:
Writing to the cache is delayed