實體記憶體和虛擬記憶體

shiyihai發表於2007-03-05

實體記憶體(physical memory)
(不用闡述了)

虛擬記憶體(virtual memory)
virtual memory uses a disk as an extension of RAM so that the effective size of usable memory grows correspondingly. The kernel will write the contents of a currently unused block of memory to the hard disk so that the memory can be used for another purpose. When the original contents are needed again, they are read back into memory.This is all made completely transparent to the user; programs only see the larger amount of memory available and don't notice that parts of them reside on the disk
from time to time. Of course, reading and writing the hard disk is slower (on the order of a thousand times slower) than using real memory, so the programs don't run as fast. The part of the hard disk that is used as virtual memory is called the swap

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/38542/viewspace-902704/,如需轉載,請註明出處,否則將追究法律責任。

相關文章