Disk Caching

  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Disk Caching as PDF for free.

More details

  • Words: 631
  • Pages: 2
I7t7itDisk Caching ,Disk Compression & virtual Memory Memory Caching 1. Memory cache is a portion of CPU made of SRAM to help keeping information, instruction or data that user often used or access to avoid using of DRAM which is very slow. 2. some CPU have memory cache for example 80486 CPU contains 8K memory cache ,Pentium has 16K cache & they are call internal cache level 1(LI) ,most modern PC have external cache memory call external cache memory or secondary cache reside on a separate chip from the CPU Level 2 (L2), L2 cache sit between CPU & DRAM . Disk Caching 1. It function similar to cache memory ,the difference is they use conventional memory, the most recently use information, instruction or data are stored in memory buffer, when accessing a program it will first check disk cache then hard disk ,it much faster this way ,because the speed of accessing data in RAM is thousand times faster than accessing hard disk, this technique is also know as smart caching. 2. Both memory caching & Disk caching is a high speed storage mechanism ,for reserve section of main memory . Disk Compression 1. compressed version of files on the hard disk, it’s site between operating system & hard disk window disk compression utility is call Drive space Virtual memory

What is "virtual memory"? Virtual memory is a common part of most operating systems on desktop computers. It has become so common because it provides a big benefit for users at a very low cost. Most computers today have something like 64 or 128 megabytes of RAM (randomaccess memory) available for use by the CPU (central processing unit). Often, that amount of RAM is not enough to run all of the programs that most users expect to run at once. For example, if you load the Windows operating system, an e-mail program, a Web browser and word processor into RAM simultaneously, 64 megabytes is not enough to hold it all. If there were no such thing as virtual memory, your computer would have to say, "Sorry, you cannot load any more applications. Please close an application to load a new one." With virtual memory, the computer can look for areas of RAM that have not been used recently and copy them onto the hard disk. This frees up space in RAM to load the new application. Because it does this automatically, you don't even know it is happening, and it makes your computer feel like is has unlimited RAM space even though it has only 32 megabytes installed. Because hard-disk space is so much cheaper than RAM chips, virtual memory also provides a nice economic benefit. The area of the hard disk that stores the RAM image is called a page file. It holds pages of RAM on the hard disk, and the operating system moves data back and forth

between the page file and RAM. (On a Windows machine, page files have a .SWP extension.) Of course, the read/write speed of a hard drive is much slower than RAM, and the technology of a hard drive is not geared toward accessing small pieces of data at a time. If your system has to rely too heavily on virtual memory, you will notice a significant performance drop. The key is to have enough RAM to handle everything you tend to work on simultaneously. Then, the only time you "feel" the slowness of virtual memory is in the slight pause that occurs when you change tasks. When you have enough RAM for your needs, virtual memory works beautifully. When you don't, the operating system has to constantly swap information back and forth between RAM and the hard disk. This is called thrashing, and it can make your computer feel incredibly slow.

Related Documents

Disk Caching
October 2019 53
Caching
November 2019 47
Disk
October 2019 37
Disk.
November 2019 32
Eye-caching
July 2020 30