The History of Virtualization
Although virtualization has, over the past few years, become one of the hottest topics in computing, it’s not a new idea. IBM, more than 50 years ago, had a virtual operating system that allowed a mainframe computer to run multiple copies of the same or different operating systems. Further, most operating systems support virtual memory, which, as shown in FIGURE 8-1 , combines random access memory (RAM) and a page file on disk to create the illusion that a process (running program) has much more physical RAM than is present in the computer. Windows, Linux, macOS, and other operating systems all support virtual memory.
FIGURE 8-1 Virtual memory combines random access memory with a page file on disk to create the illusion of running programs on a vast amount of RAM.
CASE 8-1 Virtual Memory
Virtual memory is not physical memory (RAM). Instead, virtual memory combines RAM and space on a connected disk, called a page file, to create the illusion that programs are running on a vast amount of RAM.
Before the CPU can execute a program, the program’s instructions and data must reside within RAM. Virtual memory takes advantage of the fact that not all of the program’s instructions or data must be in RAM at the same time. Rather, the CPU needs only the instructions and data with which it is currently working to reside in RAM.
A virtual memory operating system breaks a program’s instruction and data into fixed-size chunks called pages. When the CPU needs specific instructions or data, the operating system loads the corresponding page from disk into RAM. When the CPU no longer needs a set of instructions or data, the operating system can move the pages from RAM back to disk. This process of moving pages between RAM and the page file on disk is called paging.
Virtual memory has the following advantages:
A running program (process) appears to have unlimited memory.
The operating system can easily manage several different programs, running at the same time, keeping each program’s data and instructions secure.
The operating system can take advantage of disk storage, which is considerably less expensive than RAM.
The disadvantage of virtual memory is that the paging process (the process of moving instructions and data between RAM and disk) adds overhead, mostly because disk drives are much slower than RAM.
Case Study: With computers supporting larger amounts of physical memory, some users argue that there are applications for which users should turn off virtual memory to improve performance. Discuss whether you agree.
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.