Preview

virtual memory

Satisfactory Essays
Open Document
Open Document
340 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
virtual memory
Clearly virtual memory has benefits for the operating system. But if there are benefits, then there must be costs as well. What are the costs and benefits of memory virtualization? Under what conditions might the costs outweigh the benefits?

Virtual memory is a feature of an operating system (OS) that allows a computer to compensate for shortages of physical memory by temporarily transferring pages of data from random access memory (RAM) to disk storage.
Eventually, the OS will need to retrieve the data that was moved to temporarily to disk storage -- but remember, the only reason the OS moved pages of data from RAM to disk storage to begin with was because it was running out of RAM. To solve the problem, the operating system will need to move other pages to hard disk so it has room to bring back the pages it needs right away from temporary disk storage. This process is known as paging or swapping and the temporary storage space on the hard disk is called a pagefile or a swap file.
Swapping, which happens so quickly that the end user doesn't know it's happening, is carried out by the computer’s memory manager unit (MMU). The memory manager unit may use one of several algorithms to choose which page should be swapped out, including Least Recently Used (LRU), Least Frequently Used (LFU) or Most Recently Used (MRU).
One of the major advantages of virtual memory is that it is the helping hand for computer to effectively manage physical memory and solves major problems of processes and their address space, it illustrate much larger memory than physical memory which can be used for applications which are even larger than the physical memory.
I think there is couple of reasons that could outweigh cost like it helps manage physical memory better; it swaps the process address back and forth to protect user data and code from being demolished by other processes.

Reference:
Rouse, M. (2014, Sep 15). virtual memory. Retrieved from Tech Target:

You May Also Find These Documents Helpful

  • Good Essays

    Some OS routines directly support application programs as they run and thus must be resident. Other transient routines are stored on disk and read into memory only when needed. Fixed-length partitions can also be used to allocate the set amount of memory that a particular program needs to run. Under dynamic memory management, the transient area is treated as a pool of unstructured free space. When the system decides to load a particular program, a region of memory just sufficient to hold the program is allocated from the pool. Using segmentation, programs are divided into independently addressed segments and stored in noncontiguous memory. Paging breaks a program into fixed-length pages.…

    • 7085 Words
    • 29 Pages
    Good Essays
  • Satisfactory Essays

    SD1230 Lab 1

    • 239 Words
    • 2 Pages

    2. What is meant by swapping? – Taking a whole or piece of memory and store it completely on a device.…

    • 239 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    RAM is the random access memory and it is volatile. It holds program instructions and data. The CPU can find…

    • 204 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Exam 11A

    • 1635 Words
    • 16 Pages

    Page files are used when the CPU runs out of physical memory. The disadvantage of this is that ________…

    • 1635 Words
    • 16 Pages
    Good Essays
  • Good Essays

    Lab 1

    • 822 Words
    • 4 Pages

    For server (web) performance. Swap space is an area on a disk that temporarily holds a process memory image. When physical memory demand is sufficiently low, process memory images are brought back into physical…

    • 822 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    1. Your OS will use the hard drive as a "swap file" or virtual memory, if your PC runs out of RAM while you are working away. Using your hard drive as memory causes a serious performance hit, as hard drives are slower than RAM. You must have enough memory, adding more does not help if you are not doing anything that needs more memory. Today, a modern PC and a modern OS need about 4 gigs to achieve this for most standard users. You want enough RAM so the OS doesn't start using the hard drive as memory.…

    • 268 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Memory management is an important characteristic of an operating system. Main memory is divided into two parts one for resident programs, and the other for the program currently in use. The user part must be subdivided to accommodate multiple processes (Stallings, 2012). When a few processes are in the memory then much of the time all of the processes will have to wait for input /output and the processor will be idle. According to Stallings (2012),. The requirements that memory management is supposed to satisfy are Relocation, Protection, Sharing, Logical organization, and Physical…

    • 573 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Memory – Memory is the part of the computer that temporarily stores applications, documents, and stem operating information.…

    • 2127 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    BTEC ICT Unit 2 P1

    • 944 Words
    • 4 Pages

    There are two types of memory which we need and use on our computers one of them is RAM and the other one is cache.…

    • 944 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Random-access-memory (RAM) is a very important specification of the computer. By ensuring you have enough RAM, the faster your system processes, you can store more data, and allow more programs to run at the same time. As the OS allows the different task to complete for the processor, the RAM is used as temp storage, when the processor no longer needs them the OS clears it. Virtual memory is the hard drive space borrowed to use if there isn’t enough…

    • 580 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    It250 Exam Review

    • 856 Words
    • 4 Pages

    5. (Page 34)Where are programs and data temporarily stored when there is not enough RAM to hold all the information it is processing? Swap file…

    • 856 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Computer Memory Hacking

    • 820 Words
    • 2 Pages

    Another reason a person or person(s) would want to access a computer systems RAM without…

    • 820 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Assignment 1,Section I

    • 326 Words
    • 2 Pages

    Several methods have been devised that increase the effectiveness of memory management. Virtual memory systems separate the memory addresses used by a process from actual physical addresses, allowing separation of processes and increasing the effectively available amount of RAM using paging or swapping to secondary storage. The quality of the virtual memory manager can have an extensive effect on overall system performanc…

    • 326 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Relocation addresses the issue of where processes are located once they are loaded into main memory. When processes are no longer active, the system will swap them out to disc, or remove them from main memory and put them in a designated location on either secondary storage or tertiary storage. After a process gets swapped out to disc, the location it held in memory is now open to be used by other active processes. The act of swapping an inactive process out allows the system to operate faster and more efficiently. However, once the process becomes active again, the system needs to load it back into main memory. The second time the process gets loaded into main memory it is loaded into a different area of memory and this is known as relocation.…

    • 730 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The other reason relates to cost. Updating your RAM is not always cheap – especially if you also need to buy a new motherboard. Therefore, you might want to figure out how to make programs run fast with less RAM.…

    • 877 Words
    • 4 Pages
    Good Essays