Monday, October 15, 2018

History of the Computer - Cache Memory Part 2 of 2

(Times and speeds quoted are typical, but do not refer to any specific hardware, merely give an illustration of the principles involved.)

Now we introduce a 'high speed' memory with a cycle time of, say 250 nanoseconds between the CPU and the core memory. When we request the first instruction, at location 100, the cache memory requests addresses 100,101,102 and 103 from the core memory all at the same time, and retains them 'in cache'. Instruction 100 is passed to the CPU for processing, and the next request, for 101, is filled from the cache. Similarly 102 and 103 are handled at the much increased repeat speed of 250ns. In the meantime the cache memory has requested the next 4 addresses, 104 to 107. This continues until the predicted 'next location' is incorrect. The process is then repeated to reload the cache with data for the new address range. A correctly predicted address, when the requested location is in cache is known as a cache 'hit'.

If the main memory is not core, but a slower chip memory, the gains are not as great, but still an improvement. Expensive high speed memory is only required for a fraction of the capacity of the cheaper main memory. Also programmers can design programs to suit the cache operation, for instance by making a branch instruction in a loop take the next instruction for all cases except the final test, maybe count=0, when the branch occurs.

Now consider the speed gains to be made with disks. Being a mechanical device, a disk works in milliseconds, so loading a program or data from disk is extremely slow in comparison, even to core memory - 1000 times faster! Also there is a seek time and latency to be considered. (This is covered in another article on disks.)

You may have heard the term DMA in relation to PCs. This refers to Direct Memory Access. Which means that data can be transferred to or from the disk directly to memory, without passing through any other component. In a mainframe computer, typically the I/O or Input/Output processor has direct access to memory, using data placed there by the Processor. This path is also boosted by using cache memory.

In the PC, the CPU chip now has built-in cache. Level 1, or L1, cache is the primary cache in the CPU which is SRAM or Static RAM. This is high speed (and more expensive) memory compared to DRAM or Dynamic RAM, which is used for system memory. L2 cache, also SRAM, may be incorporated in the CPU or externally on the Motherboard. It has a larger capacity than L1 cache.













Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : History of the Computer - Cache Memory Part 2 of 2

0 comments:

Post a Comment

  • Amaranth: Soak It For Maximum Nutrition Amaranth is nutritious and high in zinc, iron, and calcium. Amaranth has a nutty flavor and serves as a good complement to many bean dishes but it also makes a good main dish when combined with tasty vegetables as does the grain bulghur when…
  • Self-Help Tips to Stop OvereatingOvereating can be a root cause for many serious health problems such as obesity, diabetes, high blood pressure etc. People who overeat do not do so intentionally but their addiction to food makes them do so. If you are not able to control your…
  • Computer IT Support to Solve Your IT-Related Problems Most people consider computer IT support really helpful to solve their computer and IT problems. Heaps of people use computers, but when it comes to solving problems with the tools that use - the hardware and software - that's when it gets…
  • Use Reverse Phone Lookup to Stop Harassing and Obscene Calls Within 45 Seconds Every body receives irregular calls at any time. Some callers use threatening and obscene language when they call, some just get silenced to get your angry response and want to make you irritated and some take heavy breaths to terrify you and…
  • Compare Cheap Car Insurance Quotes OnlineThe main reason you need to go on the net to rate shop is simple. First, many carriers that market their coverage on-line have direct insurance prices. This means they have a business model that excludes expensive brokers and sell polices directly…
History of the Computer - Cache Memory Part 2 of 2
Important: This article is about the History of the Computer - Cache Memory Part 2 of 2, The best of History of the Computer - Cache Memory Part 2 of 2 inspiration updated regularly with new designs and info, and featuring the best History of the Computer - Cache Memory Part 2 of 2
Originally Answered: What are the best sites?
History of the Computer - Cache Memory Part 2 of 2 April 2025, We Always give correct and complete information about History of the Computer - Cache Memory Part 2 of 2, This document provides History of the Computer - Cache Memory Part 2 of 2 We want to improve the quality of content for all. By using information about the content you have received, those involved in providing info in April 2025.

Advertisement